This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/18405] implement java.lang.Package#isCompatibleWith(String)


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]