This chapter lists high-visibility bugs that have been addressed in this release. It is not a complete listing of all of the bugs addressed. If you still have issues with any of these bugs, please file a new bug at http://bugreport.apple.com/ under the Java (new bugs)
component, Version X
. Refer to the bug number indicated below in your new bug if you believe it is the same issue.
Java Applets
Java Application Support
Java Aqua LAF
Java Events
Java HotSpot
Java JavaLib
Java Tools
Java Web Start
Safari sometimes crashes when users click the Back button to return to a page that contains an applet.
If a page with an applet is loaded, another page is loaded, and then the Back button is used to return to the page with the applet, Safari may crash.
This has been corrected in Java 1.4.2 and Safari should no longer crash.
JBoss and Tomcat do not start after installing the Java 1.4.2 update.
The run.conf script for starting the JBoss server has a hard-coded reference to the 1.4.1 JVM. Installing the Java 1.4.2 update removes the Java 1.4.1 installation and JBoss/Tomcat services will not be able to launch. This is applicable only for Mac OS X users who have installed the Java Application Servers Development package from the Xcode Tools or users of Mac OS X Server.
For Mac OS X Server, download the JBoss update available through Software Update or from http://www.info.apple.com/support/downloads.html. For Mac OS X, open /Library/JBoss/3.2/bin/run.conf
in a text editor and change the line:
JAVA=/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Home/bin/java |
to
JAVA=/usr/bin/java |
WebObjects 5.2 is not supported with Java 1.4.2
Although there are no known issues with WebObjects 5.2 and Java 1.4.2, WebObects 5.2 has not been qualified for Java 1.4.2. This means that you may experience unexpected and unsupported issues with WebObjects 5.2 and Java 1.4.2. For example, Java 1.4.2 has a different XML parser than 1.4.1 and could cause problems serializing/deserializing WebO bjects classes.
Qualification is being evaluated for a future update or release of WebObjects.
ComboBox.font and TableHeader.font do not return correct fonts.
In the Aqua LAF, the UIDefaults ComboBox.font is 14-point Lucida Grande Regular. The Apple Human Interface Guidelines specify that this value should be 13-point Lucida Grande Regular. The UIDefaults TableHeader.font is 13-point Lucida Grande Regular. The Apple Human Interface Guidelines specify that this value should be 11-point Lucida Grande Regular.
This has been corrected. ComboBox.font now gives 13-point Lucida Grande Regular and TableHeader.font now gives 11-point Lucida Grande Regular.
NullPointerException when double-click on an alias.
In JFileChoosers, if a user double clicks on an alias, Java would throw a NullPointerException.
This has been fixed in Java 1.4.2; users can now safely double-click aliases in JFileChooser dialogs.
control-drag generates mouseMoved, not mouseDragged.
Moving the cursor with the Control key and the mouse key held down generates mouseMoved events.
Do not use the Control key as the modifier. On Mac OS X, the Control key in conjunction with a mouse click opens a contextual menu.
KeyEvent.consume does not work in TextFields and TextAreas.
In java.awt.TextFields or java.awt.TextAreas (or classes derived from them), when consume is called on the KeyEvent in processKeyEvent it does not function properly. It should prevent the character being added to the text component, but does not and the character is added.
This has been fixed in Java 1.4.2. The correct behavior is now observed where characters are no longer added when consume is called.
Java does not generate keyLocation values.
In previous releases the ability to distinguish between the left and right Shift, Control or Alt (Option) keys was not supported.
The left and right locations are now reported correctly on all keyboards (USB and ADB) where the hardware can tell the difference. Some keyboards cannot tell the difference and always return KEY_LOCATION_LEFT
. Note that you should not bind any action to a specific (left or right) version of these modifier keys. It assumes key layout that may not be present on all keyboards.
The MaxFDLimit flag is not active in Mac OS X
Java on Solaris includes a flag (MaxFDLimit) to increase the file descriptor limit to the maximum. Mac OS X should include this flag as well.
This option is now available for the HotSpot VM in Java 1.4.2 as the -XX:+ MaxFDLimit
flag to the java command. See Java 1.4 VM Options for more information on this and other options available to the Java VM.
Java should use kqueue() instead of select().
Mac OS X allows the use of the kqueue() call. Since this allows for faster performance of Networking and NIO, it should be used instead of select().
In Java 1.4.2 kqueue() is used by default. If you want your applications to use select() instead, set the java.nio.preferSelect system property to true.
gdb is the default Java debugger in Xcode AWT projects .
If you create a new Java AWT Applet project in Xcode, the default debugger is gdb. Therefore, breakpoints in Java code are not observed.
In the “Groups & Files” pane of the project window there should be a group of executables. Open this group and double-click on the appletviewer executable. A window opens. Near the bottom of that window is a group of Launch Configuration settings. Change the “Launch using” setting to “Java Debugger.”
Security Advisory dialog box hangs application
In the Java Web Start Application Manager, when Security Advisory dialogs were dismissed, it could cause the application to freeze. The only way to recover at this point was to force quit the application.
This has been resolved in Java 1.4.2.
© 2004 Apple Computer, Inc. All Rights Reserved. (Last updated: 2004-08-11)