Sun announced JDK 1.2.2, a maintenance release of the Java 2 SDK and Java 2 Runtime Environment (J2RE) that contains performance enhancements and bug fixes.
The size of the download bundle for the Win32 J2RE has been decreased by more than a third by compacting JAR files, removing line numbers and debug data from runtime class files, including only one font (LucidaSansRegular), and removing the color-management profile (PYCC.pf).
The Win32 runtime environment comes with version 1.2.2 of the Java Plugin, which offers enhancements for enabling the HTTPS protocol and support for RSA digital signature verification (on Windows 9x and NT 4.0 with Service Pack 3).
Swing components have been enhanced in this version so that buttons, labels, and menu items can now contain HTML text. The
JViewport class also scrolls more quickly.
This release does contain the following bugs, which may break compatibility with existing 1.2-based code:
TREE_MODEL_PROPERTY and INVOKES_STOP_CELL_EDITING_PROPERTY in class JTree have changed since version 1.2FOCUS_ACCELERATOR_KEY in class javax.swing.tree.JTextComponent has changed from focusAcceleratorKey to focusAccelerator since version 1.2JToolBar.getComponentAtIndex(int) to throw ArrayIndexOutOfBoundsException when the int input parameter is out of boundsNullPointerException to be thrown when making a selection in a JComboBox objectExpect these bugs to be repaired in the final 1.2.2 release.
Fixes and enhancements to the AWT packages include:
PaintEvent coalescing has been added, so that feature is supportedEventQueue and EventDispatchedThread instance
Java 2D functionality has been improved by performance enhancements to the constructive area geometry methods (add, subtract, intersect, and exculsiveOr) of class java.awt.geom.Area and to the hit-testing methods (intersects and contains) of classes java.awt.geom.Area, java.awt.Polygon, and java.awt.geom.GeneralPath. Also, many of the PCL and PostScript printer problems have been ironed out.
There are several Java 2D bugs that are related to image-rendering problems under GDI mode on Windows 95:
These problems can be avoided by using DirectDraw (part of the DirectX technology) and the latest video driver.