Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Regression in Java 1.5.0_16 on Core Duo and G5



Hi,

I tested the new Java 1.5.0_16 version released yesterday, and miserably I've got a regression on Java Web Start version of Sweet Home 3D available at http://sweethome3d.sourceforge.net/SweetHome3D.jnlp
On a MacBook Core Duo and an Imac G5, some resource files aren't found and some belonging to the same JAR are found! But on an iMac Core 2 Duo, everything works fine (with Java 5 as default Java version for applications).
You may test this bug easily in Sweet Home 3D : images are not found in help pages, meaning JEditorPane can't resolve relative paths, and furniture added to home appears as red in 3D view at bottom right, meaning the URL of the 3D model couldn't be resolved. On the contrary, in furniture tree, the furniture icons are correctly displayed even if the URL of these images are built the same way as the URL of the 3D models ?!?


These URLs are built with Class#getResource method (then they are handled by instances of JNLPCachedJarURLConnection in Java Web Start). And one very astonishing thing is that these URLs don't mention any file and don't have a ! separator.
For example, an URL is "jar:com/eteks/sweethome3d/io/resources/ door.obj" instead of "jar:file:/Users/manu/Developer/Java/SweetHome3D/ deploy/lib/SweetHome3D.jar!/com/eteks/sweethome3d/io/resources/ door.obj".


I first suspected the customized ClassLoader I use in Sweet Home 3D (see http://sweethome3d.cvs.sourceforge.net/sweethome3d/SweetHome3D/src/com/eteks/sweethome3d/SweetHome3DBootstrap.java?revision=1.7&view=markup ), but this problem is not related to it. If you try the version that don't use the classloader at http://sweethome3d.sourceforge.net/SweetHome3DNoCustomizedClassLoader.jnlp , you'll get the same bug.

Any idea will be welcomed.

By the way, I noticed also that "sun.swing.enableImprovedDragGesture" property doesn't work on an iMac Core 2 Duo / Java 5, but works on a MacBook Core Duo. :-(
Are the Intel 32 bit / Intel 64 bits versions so different ???


Best regards
--
Emmanuel PUYBARET
Email  : email@hidden
Web    : http://www.eteks.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.