[Bug 331680] New: java 1.6. 0_01-b06 getPackage isCompatibleWith Empty version string AMD86
https://bugzilla.novell.com/show_bug.cgi?id=331680#c1 Summary: java 1.6.0_01-b06 getPackage isCompatibleWith Empty version string AMD86 Product: openSUSE 10.3 Version: Final Platform: x86-64 OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: Java AssignedTo: bnc-team-java@forge.provo.novell.com ReportedBy: swansoncw@yahoo.com QAContact: qa@suse.de Found By: Beta-Customer more /proc/version # opensuse 10.3 beta 3 Linux version 2.6.22.5-29-default (geeko@buildhost) (gcc version 4.2.1 (SUSE Linux)) #1 SMP 2007/09/20 15:19:04 UTC carl@duma:/tmp> java -version java version "1.6.0_01" Java(TM) SE Runtime Environment (build 1.6.0_01-b06) Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_01-b06, mixed mode) more test.java public class test { public static void main( String args[]) { if ( ! Package.getPackage("java.lang").isCompatibleWith("1.6") ) { System.out.println("Java JRE 1.6 or newwer is required"); } } } java test Exception in thread "main" java.lang.NumberFormatException: Empty version string at java.lang.Package.isCompatibleWith(Package.java:210) at test.main(test.java:3) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=331680 User mvyskocil@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=331680#c1 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mvyskocil@novell.com Status|NEW |ASSIGNED --- Comment #1 from Michal Vyskocil <mvyskocil@novell.com> 2007-12-05 02:56:36 MST --- Looks like similar problem as describes in #340247. The 1.6.0.u3 fails too. I'll try to inspect it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=331680 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-java@forge.provo.novell.com |mvyskocil@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=331680 User mvyskocil@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=331680#c2 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jengelh@gmx.de --- Comment #2 from Michal Vyskocil <mvyskocil@novell.com> 2007-12-05 05:54:02 MST --- *** Bug 340247 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=340247 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=331680 User mvyskocil@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=331680#c3 --- Comment #3 from Michal Vyskocil <mvyskocil@novell.com> 2007-12-05 05:55:13 MST --- This is the a case from #340247 import java.util.Arrays; public class Main { public static void main(String args[]) { Package all_packages[]; System.out.println("Prop : " + System.getProperty("java.specification.version")); all_packages = Package.getPackages(); for (Package e : Arrays.asList(all_packages)) System.out.println(e.getName() + " : " + e.getSpecificationVersion()); } } -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=331680 User mvyskocil@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=331680#c4 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |LATER --- Comment #4 from Michal Vyskocil <mvyskocil@novell.com> 2007-12-05 08:59:57 MST --- So, the problem is that build process calls the jar -i command to produce index. But in fact this command also damage the rt.jar, which is necessary for Java. Fortunately this damage is not significant, because many of the Java programs works without this problem. The workaround is to download the proper version of JDK from [https://jdk-distros.dev.java.net/developer.html], unpack it (sh jdk-6u3-dlj-linux-[i586|amd64].bin --accept-license --unpack) and type mv jdk1.6.0_03/jre/lib/rt.jar /usr/lib64/jvm/java-1.6.0.u3.sr2-sun-1.6.0.u3/jre/lib/rt.jar After that, both of the tests will produce the proper results: $ java test package java.lang, Java Platform API Specification, version 1.6 $ java Main Prop : 1.6 sun.util : 1.6 java.util : 1.6 java.net : 1.6 java.lang.annotation : 1.6 sun.reflect.misc : 1.6 sun.security.provider : 1.6 sun.net.www.protocol.jar : 1.6 sun.security.action : 1.6 java.nio.charset : 1.6 java.io : 1.6 sun.nio : 1.6 sun.net.www : 1.6 java.lang.ref : 1.6 java.lang : 1.6 sun.misc : 1.6 sun.net.www.protocol.file : 1.6 java.util.concurrent : 1.6 java.util.concurrent.atomic : 1.6 java.nio.charset.spi : 1.6 java.nio : 1.6 java.util.concurrent.locks : 1.6 sun.reflect : 1.6 java.security : 1.6 java.lang.reflect : 1.6 sun.security.util : 1.6 sun.nio.cs : 1.6 java.security.cert : 1.6 It will be fixed in a next update of Java. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=331680 User jengelh@gmx.de added comment https://bugzilla.novell.com/show_bug.cgi?id=331680#c5 --- Comment #5 from Jan Engelhardt <jengelh@gmx.de> 2008-03-28 10:56:22 MST --- Not in u4. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=331680 User mvyskocil@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=331680#c6 --- Comment #6 from Michal Vyskocil <mvyskocil@novell.com> 2008-04-28 09:31:45 MST --- Sorry for that, I've forgot include this change in next release. Fixed for u6 (will be released soon). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com