[Bug libgcj/18405] implement java.lang.Package#isCompatibleWith(String)
tromey at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Nov 9 22:18:00 GMT 2004
------- Additional Comments From tromey at gcc dot gnu dot org 2004-11-09 22:18 -------
Actually we have Package.isCompatibleWith, what we don't
have is any version setting on java.lang or other built-in
packages.
Strangely the BEA JRE dies on this:
opsy. java t
java.lang.NumberFormatException: Empty version string
at java.lang.Package.isCompatibleWith(Ljava.lang.String;)Z(Unknown Source)
at t.main([Ljava.lang.String;)V(t.java:7)
public class t
{
public static void main(String[] args)
{
Package p = Package.getPackage("java.lang");
System.out.println(p.isCompatibleWith("1.4"));
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18405
More information about the Gcc-bugs
mailing list