https://bz.apache.org/bugzilla/show_bug.cgi?id=63457

            Bug ID: 63457
           Summary: Error using ant-1.10.6 with jdk8
           Product: Ant
           Version: 1.10.6
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: notifications@ant.apache.org
          Reporter: dpe...@divisait.com
  Target Milestone: ---

Although ant-1.10.6.jar is compiled with jdk8 compatibility is not possible to
run it with a jdk 8 Runtime.

If you run with a jdk8 runtime you would get the following error:

Caused by: java.lang.NoSuchMethodError:
java.nio.ByteBuffer.limit(I)Ljava/nio/ByteBuffer;
                at
org.apache.tools.zip.Simple8BitZipEncoding.encode(Simple8BitZipEncoding.java:250)
                at
org.apache.tools.zip.ZipOutputStream.getName(ZipOutputStream.java:1646)
                at
org.apache.tools.zip.ZipOutputStream.writeLocalFileHeader(ZipOutputStream.java:1059)
                at
org.apache.tools.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:769)


Run with jdk11 runtime works without problem. Seems like a linking problem for
me.

Version 1.10.5 works perfect using both jdk8 and jdk11 runtimes.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to