< Previous PageNext Page > Hide TOC

Known Issues

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:

In this section:

Java AWT
Java Developer Documentation
Java Graphics
Java Plugin


Java AWT

Radar #3315279

MRJ OpenDocument events require running applications.

Description:

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.

Workaround:

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”.

Radar #3326953

java.lang.NumberFormatException when using mrj.version.

Description:

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.

Workaround:

None.

Java Developer Documentation

Radar #3242332

Do not use com.apple.mrj.application.apple.menu.about.name.

Description:

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.”

Workaround:

Use CFBundleName for the “About Menu Name” field in the Properties tab in Jar Bundler. Jar Bundler has been changed to reflect this.

Java Graphics

Radar #3308134

DrawLine for diagonal lines is very thick.

Description:

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.

Workaround:

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.

Radar #3253236

Quartz APIs using ATS are not thread-safe.

Description:

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.

Workaround:

None.

Java Plugin

Radar #3195064

Java https security warning dialog has no yes/no/always buttons.

Description:

Occasionally the https/signed applet security warning dialog shows up with an incorrect size.

Workaround:

Press Return to trust the certificate or press Escape to not trust it.



< Previous PageNext Page > Hide TOC


© 2003 Apple Computer, Inc. All Rights Reserved. (Last updated: 2003-09-02)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.