The issues discussed here are known issues with the Mac OS X implementation of Java 1.4.1 Update 1. These issues may or may not be resolved in a future release of Java for Mac OS X.
Each issue is broken down as follows:
A Radar number that Apple uses to track the issue is followed by a brief statement of the issue.
The Description field provides more details about the issue.
The Workaround field may give you additional information about how you can work around that particular issue in your code. If it says, “None,” there is at the moment no currently a suggested work around for that particular problem.
Java AWT
Java Developer Documentation
Java Graphics
Java Plugin
MRJ OpenDocument events require running applications.
The deprecated MRJToolkit OpenDocument method does not work if the application has not been launched. If the application is running, then the OpenDocument event will be delivered.
Move to the new com.apple.eawt. See http://developer.apple.com/documentation/Java/Java.html. Click on the link “Java 1.4.1 API Reference: Apple Extensions”.
java.lang.NumberFormatException when using mrj.version.
Please note that the system property “mrj.version” returns a String, not a double. For some releases, it may be “3.3.3” or “70”. It is not valid to parse the result as a number. It should be compared against a String.
None.
Do not use com.apple.mrj.application.apple.menu.about.name.
In the Java 1.4.1 Release Notes, com.apple.mrj.application.apple.menu.about.name
is listed as a Supported System property under “Integration with the native application environment.”
Use CFBundleName
for the “About Menu Name” field in the Properties tab in Jar Bundler. Jar Bundler has been changed to reflect this.
DrawLine for diagonal lines is very thick.
In an effort to fix a related bug, the default stroke width for lines was made very thick. The result is now lines are always drawn, but they are much thicker than they should be.
This can be addressed programmatically by setting the stroke to a smaller value than the default (0.5).
((Graphics2D) g).setStroke( new BasicStroke(strokeWidth) ); |
Alternatively, it can be addressed on the command line with the option:
-Dapple.awt.antialiasing=on |
Neither of these solutions work effectively on systems using 10.2.6 or earlier. If you use the work around of setting line thickness to a smaller value, you may have cases where some lines don’t draw at all.
Quartz APIs using ATS are not thread-safe.
Some of the Quartz APIs that use ATS internally are not thread-safe. You can determine if a program crash was caused by this problem if your stack crawl shows two threads in ATS.
None.
Java https security warning dialog has no yes/no/always buttons.
Occasionally the https/signed applet security warning dialog shows up with an incorrect size.
Press Return to trust the certificate or press Escape to not trust it.
© 2003 Apple Computer, Inc. All Rights Reserved. (Last updated: 2003-09-02)