Bug#898459: libjna-java: FTBFS with Java 10 due to javah removal

Emmanuel Bourg ebourg at apache.org
Fri May 11 21:56:40 BST 2018


Package: libjna-java
Severity: serious
Tags: sid buster
User: debian-java at lists.debian.org
Usertags: default-java10

libjna-java fails to build with Java 10 due to the removal of javah:

  compile:
      [javac] Using javac -source 1.6 is no longer supported, switching to 1.7
      [javac] Using javac -target 1.6 is no longer supported, switching to 1.7
      [javac] Compiling 61 source files to /build/1st/libjna-java-4.5.1/build/classes
      [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
      [javac] /build/1st/libjna-java-4.5.1/src/com/sun/jna/Structure.java:1870: warning: [deprecation] newInstance() in Class has been deprecated
      [javac]             Structure s = (Structure)type.newInstance();
      [javac]                                          ^
      [javac]   where T is a type-variable:
      [javac]     T extends Object declared in class Class
      [javac] /build/1st/libjna-java-4.5.1/src/com/sun/jna/IntegerType.java:120: warning: [deprecation] newInstance() in Class has been deprecated
      [javac]             IntegerType number = getClass().newInstance();
      [javac]                                            ^
      [javac]   where T is a type-variable:
      [javac]     T extends Object declared in class Class
      [javac] /build/1st/libjna-java-4.5.1/src/com/sun/jna/Memory.java:180: warning: [deprecation] finalize() in Object has been deprecated
      [javac]     protected void finalize() {
      [javac]                    ^
      [javac] /build/1st/libjna-java-4.5.1/src/com/sun/jna/CallbackReference.java:379: warning: [deprecation] finalize() in Object has been deprecated
      [javac]     protected void finalize() {
      [javac]                    ^
      [javac] /build/1st/libjna-java-4.5.1/src/com/sun/jna/CallbackReference.java:485: warning: [deprecation] isAccessible() in AccessibleObject has been deprecated
      [javac]             if (!callbackMethod.isAccessible()) {
      [javac]                                ^
      [javac] /build/1st/libjna-java-4.5.1/src/com/sun/jna/NativeLibrary.java:621: warning: [deprecation] finalize() in Object has been deprecated
      [javac]     protected void finalize() {
      [javac]                    ^
      [javac] /build/1st/libjna-java-4.5.1/src/com/sun/jna/Native.java:232: warning: [deprecation] finalize() in Object has been deprecated
      [javac]         protected void finalize() {
      [javac]                        ^
      [javac] /build/1st/libjna-java-4.5.1/src/com/sun/jna/NativeMappedConverter.java:61: warning: [deprecation] newInstance() in Class has been deprecated
      [javac]             return (NativeMapped)type.newInstance();
      [javac]                                      ^
      [javac]   where T is a type-variable:
      [javac]     T extends Object declared in class Class
      [javac] /build/1st/libjna-java-4.5.1/src/com/sun/jna/PointerType.java:82: warning: [deprecation] newInstance() in Class has been deprecated
      [javac]             PointerType pt = getClass().newInstance();
      [javac]                                        ^
      [javac]   where T is a type-variable:
      [javac]     T extends Object declared in class Class
      [javac] Note: Some input files use unchecked or unsafe operations.
      [javac] Note: Recompile with -Xlint:unchecked for details.
      [javac] 10 warnings
  
  javah:
  
  BUILD FAILED
  /build/1st/libjna-java-4.5.1/build.xml:672: javah does not exist under Java 10 and higher, use the javac task with nativeHeaderDir instead



More information about the pkg-java-maintainers mailing list