This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/18405] implement java.lang.Package#isCompatibleWith(String)
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Nov 2004 22:18:27 -0000
- Subject: [Bug libgcj/18405] implement java.lang.Package#isCompatibleWith(String)
- References: <20041109164632.18405.vadimn@redhat.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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