使用 Open JDK9 构建失败并显示 java.lang.NullPointerException

Build fails with java.lang.NullPointerException with Open JDK9

我正在尝试在 Ubuntu 17.10 平台上使用 Open JDK9 从源代码构建 Jmeter 4_0。 构建失败并出现以下错误:

init-version:
     [echo] jmeter.version = 4.0
     [echo] display.version = 4.0.20180223
     [echo] implementation.version = 4.0.20180223

compile-jorphan:
    [javac] Compiling 61 source files to /root/apache-jmeter-4.0/build/jorphan
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.8
    [javac] 1 warning
    [javac] An exception has occurred in the compiler (9-Ubuntu). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
    [javac] java.lang.NullPointerException
    [javac]     at jdk.zipfs/jdk.nio.zipfs.JarFileSystem.getVersionMap(JarFileSystem.java:137)
    [javac]     at jdk.zipfs/jdk.nio.zipfs.JarFileSystem.createVersionedLinks(JarFileSystem.java:112)
    [javac]     at jdk.zipfs/jdk.nio.zipfs.JarFileSystem.<init>(JarFileSystem.java:85)
    [javac]     at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:134)
    [javac]     at jdk.compiler/com.sun.tools.javac.file.JavacFileManager$ArchiveContainer.<init>(JavacFileManager.java:517)
    [javac]     at jdk.compiler/com.sun.tools.javac.file.JavacFileManager.getContainer(JavacFileManager.java:319)
    [javac]     at jdk.compiler/com.sun.tools.javac.file.JavacFileManager.list(JavacFileManager.java:715)

遵循的步骤:

installed openjdk-9-jdk 
wget http://redrockdigimark.com/apachemirror//jmeter/source/apache-jmeter-4.0_src.zip 
unzip apache-jmeter-4.0_src.zip 
cd apache-jmeter-4.0 
ant download_jars 
ant

尝试过

git clone http://git.apache.org/jmeter.git
git checkout v4_0

参考:http://jmeter.apache.org/download_jmeter.cgi

如果我遗漏了什么,请告诉我。

根据 https://whosebug.com/users/5318223/kiril-s 回答(应该回答而不是评论 :-) 的人将获得奖励)。

这是一个 JDK 错误:

已在 JDK11 中修复,待发布。希望它能被移植。