Date: Tue, 7 Aug 2007 19:14:07 +1000 From: "Justen Stepka" <jstepka@jstepka.name> To: freebsd-java@freebsd.org Subject: 6.2-STABLE JDK 1.5 compilation errors Message-ID: <c80586cc0708070214h1f8dd9a6xca861ca764f3e285@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
It's been a while since I've compiled the JDK -- but it's good to see things are still the same :). Today I ran into some compiling errors with the 1.5 JDK on 6.2-STABLE (as of this morning). Here are the compilation errors: /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:226: <identifier> expected Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:226: unclosed character literal Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:227: ')' expected private static final class Aliases ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:389: <identifier> expected Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:389: unclosed character literal Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:390: ')' expected private static final class Classes ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:429: <identifier> expected Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:429: unclosed character literal Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:430: ')' expected private static final class Cache ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:226: cannot find symbol symbol : class TM location: class sun.nio.cs.StandardCharsets Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:226: cannot find symbol symbol : class Java location: class sun.nio.cs.StandardCharsets Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:389: cannot find symbol symbol : class TM location: class sun.nio.cs.StandardCharsets Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:389: cannot find symbol symbol : class Java location: class sun.nio.cs.StandardCharsets Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:429: cannot find symbol symbol : class TM location: class sun.nio.cs.StandardCharsets Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:429: cannot find symbol symbol : class Java location: class sun.nio.cs.StandardCharsets Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed ^ ../../../src/share/classes/java/io/ObjectStreamClass.java:896: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Object for a varargs call cast to java.lang.Object[] for a non-varargs call and to suppress this warning return cons.newInstance(null); ^ ../../../src/share/classes/java/io/ObjectStreamClass.java:976: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Object for a varargs call cast to java.lang.Object[] for a non-varargs call and to suppress this warning readObjectNoDataMethod.invoke(obj, null); ^ ../../../src/share/classes/java/io/ObjectStreamClass.java:1004: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Object for a varargs call cast to java.lang.Object[] for a non-varargs call and to suppress this warning return writeReplaceMethod.invoke(obj, null); ^ ../../../src/share/classes/java/io/ObjectStreamClass.java:1033: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Object for a varargs call cast to java.lang.Object[] for a non-varargs call and to suppress this warning return readResolveMethod.invoke(obj, null); ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:226: missing method body, or declare abstract Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:389: missing method body, or declare abstract Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:429: missing method body, or declare abstract Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:470: cannot reference this before supertype constructor has been called super("sun.nio.cs", new Aliases(), new Classes(), new Cache()); ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:470: cannot reference this before supertype constructor has been called super("sun.nio.cs", new Aliases(), new Classes(), new Cache()); ^ /usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:470: cannot reference this before supertype constructor has been called super("sun.nio.cs", new Aliases(), new Classes(), new Cache()); ^ ../../../src/share/classes/sun/misc/ProxyGenerator.java:335: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Class for a varargs call cast to java.lang.Class[] for a non-varargs call and to suppress this warning hashCodeMethod = Object.class.getMethod("hashCode", null); ^ ../../../src/share/classes/sun/misc/ProxyGenerator.java:338: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Class for a varargs call cast to java.lang.Class[] for a non-varargs call and to suppress this warning toStringMethod = Object.class.getMethod("toString", null); ^ ../../../src/share/classes/sun/security/jca/ProviderConfig.java:243: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Object for a varargs call cast to java.lang.Object[] for a non-varargs call and to suppress this warning obj = cons.newInstance(new String[] { argument }); ^ ../../../src/share/classes/javax/xml/transform/TransformerException.java:329: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Class for a varargs call cast to java.lang.Class[] for a non-varargs call and to suppress this warning null); ^ ../../../src/share/classes/javax/xml/transform/TransformerException.java:334: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Object for a varargs call cast to java.lang.Object[] for a non-varargs call and to suppress this warning exception = (Throwable) meth.invoke(exception, null); ^ ../../../src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java:1223: warning: non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Object for a varargs call cast to java.lang.Object[] for a non-varargs call and to suppress this warning return (IOException)ctr.newInstance(args); ^ Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 21 errors 10 warnings gmake[3]: *** [.compile.classlist] Error 1 gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java/java' gmake[2]: *** [all] Error 1 gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make' gmake: *** [j2se-build] Error 2 *** Error code 2 Stop in /usr/ports/java/jdk15. *** Error code 1 Stop in /usr/ports/java/jdk15. sls-ae4p4# uname -a FreeBSD sls-ae4p4.sea2.superbservers.com 6.2-STABLE FreeBSD 6.2-STABLE #0: Mon Aug 6 23:01:02 UTC 2007 jstepka@sls-ae4p4.sea2.superbservers.com:/usr/obj/usr/src/sys/GENERIC i386 Is there a workaround for this? Thanks in advance and looking forward to my new Java/FreeBSD server. Justen -- Justen Stepka http://www.jstepka.name/blog/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c80586cc0708070214h1f8dd9a6xca861ca764f3e285>