The issues discussed here represent some specific bugs that have been fixed since the Java 1.4.1 Developer Preview 10 release. This listing is not a complete list of bugs that have been fixed, but a snapshot of issues that might be of interest. If you still have problems with any of the issues, please file a bug, as described in“Filing and Tracking Bugs.”
Each issue is broken down as follows:
A Radar number that Apple uses to the issue is followed by a brief statement of the issue.
The Description field provides more details about the issue.
A Resolution or Workaround field tells you what Apple has done to address the issue or suggests actions that you may need to take.
Java AWT
Java Engine
Java Events
Java HotSpot
Java Sound
Java Swing
Java Text
Drag and Drop actions result in bus errors.
If the window is resized after performing drag and drop operations, a segmentation fault or other error is generated.
This has been fixed.
Java 1.3.1 code compiled with Java 1.4.1 compiler fails.
Compiling some Java 1.3.1 code with the 1.4.1 version of javac causes a java.lang.NoSuchMethodError
when it is run. Java 1.4.1 adds an append(StringBuffer)
method to the StringBuffer
class. If you have code that calls append
with a StringBuffer as an argument, the Java 1.3.1 version of javac
compiles this to append(Object)
. The Java 1.4.1 version of javac
compiles the same code to append(StringBuffer)
. Running the version compiled with the Java 1.4.1 version of javac
in a Java 1.3.1 environment returns a java.lang.NoSuchMethodError
.
To get your code to run on Java 1.3.1, just cast your argument to java.lang.Object
. For example, append((Object) stringBufArg)
Return key does not generate the expected event.
The Return key does not work in some applications.
This has been fixed.
Copy command does not work.
When the Copy command is applied to selected text, it does not always copy that text to the pasteboard.
This has been fixed.
Cut, Copy, and Paste are not automatically handled in text fields.
TextAreas
are not providing built in support for Cut (Command-X), Copy (Command-C), and Paste (Command-V) operations. They should.
This has been fixed so that these features are available by default.
JBuilder 7 does not launch.
Once Java 1.4.1 has been installed, JBuilder 7 stops working.
You can modify JBuilder to allow it to launch again under Java 1.3.1. Alternatively, you can launch JBuilder in Java 1.4.1, but only from the command line.
To launch JBuilder 7 in Java 1.3.1:
In your JBuilder7 folder, navigate to JBuilder.framework/bin/.
Open the jdk.config
file in a text editor. You may need to do this from the shell with the sudo
command depending on how the permissions to JBuilder7 are set. For example, type sudo vi jdk.config
.
Add the following line: javapath /System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Libraries/libjvm_compat.dylib.
Save the file and launch JBuilder7 by double clicking the icon.
To launch JBuilder7 in Java 1.4.1 from the command line, navigate to the JBuilder.framework/bin
directory inside of the JBuilder7 folder and enter the following command:
System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Commands/java - |
Xbootclasspath/p:../lib/lawt.jar:/System/Library/Java/Extensions/ |
MRJToolkit.jar -cp ../lib/activation.jar:../lib/ant.jar:../lib/ |
beandt.jar:../lib/borlandxml.jar:../lib/bsf.jar:../lib/castor-xml.jar:../ |
lib/castor.jar:../lib/cx.jar:../lib/dbswing.jar:../lib/dbswingdt.jar:../lib/ |
dbtools.jar:../lib/dt.jar:../lib/dx.jar:../lib/gnuregexp.jar:../lib/ |
help.jar:../lib/ias_common60.jar:../lib/ias_common65.jar:../lib/ |
iastools.jar:../lib/internetbeans.jar:../lib/jakarta-regexp-1.1.jar:../lib/ |
javaws.jar:../lib/jbcl.jar:../lib/jbuilder.jar:../lib/jdbcx.jar:../lib/ |
jdom.jar:../lib/jds.jar:../lib/jdsremote.jar:../lib/jdsserver.jar:../lib/ |
junit.jar:../lib/lawt.jar:../lib/linuxDesktopConfigurator.jar:../lib/ |
mail.jar:../lib/optional.jar:../lib/sqltools.jar:../lib/unittest.jar:../lib/ |
webserverglue.jar:../lib/xalan.jar:../lib/xerces.jar:../lib/xml4j.jar:../ |
lib/xmlbeans.jar:../lib/xmldbms.jar:../lib/bes/agentclient.jar:../lib/bes/ |
asrt.jar:../lib/bes/client.jar:../lib/bes/guicore.jar:../lib/bes/ |
jaas.jar:../lib/bes/jcert.jar:../lib/bes/jnet.jar:../lib/bes/jsse.jar:../ |
lib/bes/lm.jar:../lib/bes/vbdev.jar:../lib/bes/vbejb.jar:../lib/bes/ |
vbjdev.jar:../lib/bes/vbjorb.jar:../lib/bes/vbsec.jar:../lib/bes/xmlrt.jar |
com.borland.jbuilder.JBuilder |
Applications that use java.endorsed.dirs generate errors.
If an application specifies JAR files to load with java.endorsed.dirs
that application generates an error noting that sharing is disabled.
Using java.endorsed.dirs
no longer generates this message. Note that using java.endorsed.dirs
prepends the boot classpath. This means that the shared archive normally used in Mac OS X to decrease memory usage and launch time of Java applications, cannot be used. If you use java.endorsed.dirs
in an application, that application will not make use of the default shared archive.
Audio input doesn't work.
Audio input is not implemented through JavaSound.
Audio input is implemented through JavaSound, but it is important to note that only 44100 frame rate (in PCM encoding, mono or stereo, 8 or 16 bits per sample) is currently supported for sampled sound input. If you need a different frame rate please resample in your application.
JFileChooser.setAccessory does not work.
Adding accessories to a JFileChoose
with setAccessory
does not do anything. The JFileChooser
just displays as normal.
This has been fixed.
Font errors in the Console or command line.
Some of the fonts provided in the underlying operating system have errors. These errors may be displayed when you run your Java application. The errors usually relate to how the font reports its pitch and advance.
These are not Java issues, and there is nothing you should change in your code to correct these errors. The issue is being pursued at the operating system level.
Typing ALT (option) + a mnemonic character generates a character instead of giving a field focus.
Mac OS X uses the Option key to generate some special characters, and as such it cannot be used as an accelerator key on its own.
The accelerator to use with mnemonics is Control-Option.
© 2003 Apple Computer, Inc. All Rights Reserved. (Last updated: 2003-06-11)