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 AWT
Java Events
Java Graphics
Java HotSpot
Java Plugin
Java Security
Drag action modifier key issues.
There were serveral issues caused by some fundamental mismatches between the Mac OS X drag-and-drop system and the Java drag-and-drop system:
A DragSource
was
not notified of drag action changes (via DragSourceListener.dropActionChanged()
)
during the drag.
Once the drag was complete, the DragSource
was
not always notified of the correct final drag action nor was it
correctly informed of the success or failure of the drop.
The DropTarget
received
drag action change notifications, but the notifications were often
wrong.
All of the above have now been fixed. The current drag action modifier key behavior is detailed in Table 2-1:
Modifier Style |
Copy |
Move |
Link |
Behavior |
---|---|---|---|---|
Java |
Control |
Shift |
Control+Shift |
Within and between Java applications; from native applications to Java applications. |
Mac OS X |
Option |
Command |
Command+Option |
Within and between Java applications; between native and Java applications. |
If you want to determine which action is taking place regardless
of the modifier style used, check for ACTION_COPY
, ACTION_LINK
,
and ACTION_MOVE
using DragSourceDragEvent.getUserAction()
.
Image background color problems.
Images would display with a black background.
Images are now contained within components and use the component's background color when drawing.
AWT component issues.
Every time a heavyweight AWT component was added to a container, it would validate and lay out the container.
Adding a component no longer forces the container to validate and lay itself out.
Font style changes to Italic and Italic & Bold do not work for Dialog and Serif mode.
Microsoft Office installs fonts into ~/Library/Fonts/
.
Once installed, these fonts are used by Java applications instead
of those installed with the system. This causes problems with the
standard Dialog
and Serif
fonts,
Arial and Times New Roman.
When conflicting fonts are present, the system-installed copies are used.
Element dragging displays an oddly-shaped outline.
Dragging a JList
, JTable
,
or JTree
element causes
an outline much larger than the element to be displayed during the
drag.
Dragging an element now outlines just the element.
Right-button drag-and-drop operations disable all further drag-and-drop operations.
Mac OS X does not support right-button drag-and-drop operations.
This caused an ASSERT
and
disabled all drag-and-drop operations for a Java application.
A right-button drag-and-drop operation no longer causes an ASSERT
.
Note that right-button drag-and-drop behavior is still unsupported.
DropTargets fail to register as valid.
Sometimes a DropTarget
failed
to register, causing drag-and-drop operations to fail.
All DropTarget
components
now register properly.
Non-serializable objects could not be dragged.
In some cases, non-serializable objects could not be dragged within an application because they were not properly registered with the Mac OS X drag-and-drop system.
Non-serializable objects can now be dragged within an application.
Drag-and-drop coordinate system issues.
During drag-and-drop, a DragSourceListener
can
be registered to receive notifications about the progress of the
drag operation. The notifications contain events that can be queried
for the location of the mouse cursor at the time of the event. Previously,
you were supplied with the cursor location in window-relative coordinates,
even though Java specifies that the cursor location be supplied
in screen coordinates.
The mouse cursor location is now returned in screen coordinates.
Full screen mode support.
Full screen mode was problematic and frequently caused issues.
Full screen mode now functions as expected.
Long variables and the PowerPC G5.
Long variables could be put into an unknown state when running a Java application on a G5-equipped machine.
Long variables are now properly handled.
MaxPermSize increased.
Server Java applications were hitting against memory size limitations.
The default MaxPermSize
for
all Java applications has been increased to 64MB.
Java profiling agent library locations.
Java profiling agent libraries had to be installed in /System/Library/Frameworks/JavaVM.framework/Libraries/
.
Java profiling agent libraries can now be installed in /System/Library/Java/Extensions/
or /Library/Java/Extensions/
.
Applet cache is invisible to the user.
The Java applet cache was stored in ~/.java/deployment/
,
which is not visible to the user. If the user was low on disk space
and had run a number of applets, the only way to free up space was
to run the Java 1.4.2 Plugin Settings application.
The Applet cache has been moved to ~/Library/Caches/Java
Applets/
. This change makes it clearer to
identify large directories that can safely be removed.
Various Java Plugin improvements.
There were various issues involving the Java Plugin and AWT events, applet sizing, and standard Java applet properties.
The Java Plugin now uses more standard Java Plugin code from Sun when running applets. Due to these changes, AWT Events are now delivered properly. Dynamically sized applets and standard Java applet properties are also supported.
Note that in fixing these issues, these files have been removed:
/Library/Internet
Plug-Ins/JavaPluginCocoa.bundle/Contents/Resources/AppletsInCocoa.jar
/Library/Internet Plug-Ins/JavaPluginCocoa.bundle/Contents/MacOS/libAppletsInCocoa.jnilib
Keystore issues between Java versions.
A JCE keystore written by the Java 1.4.1 virtual machine (VM) could not be read using the Java 1.4.2 VM.
The Java 1.4.2 VM can now read JCE keystores written by the Java 1.4.1 VM. This is related to Sun bug 4887561, as fixed in the Java 1.4.2_05 VM.
© 2004 Apple Computer, Inc. All Rights Reserved. (Last updated: 2004-08-11)