-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
9, 10, 11
ADDITIONAL SYSTEM INFORMATION :
LinuxMint 18.2
uname -a : Linux olaf 4.13.0-39-generic #44~16.04.1-Ubuntu SMP Thu Apr 5 16:43:10 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
java - version
java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
A DESCRIPTION OF THE PROBLEM :
Java 10 fails to compile a file that compiles under Java 8 (build 1.8.0_144-b01). Processing @OnStart annotation fails to create a file that the compiler expects.
REGRESSION : Last worked in version 8u172
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compile test file with
javac -d build -classpath lib/org-openide-modules-RELEASE802.jar:lib/org-openide-util-lookup-RELEASE802.jar Test.java
from jars downloaded at
http://bits.netbeans.org/maven2/org/netbeans/api/org-openide-modules/RELEASE802/org-openide-modules-RELEASE802.jar
http://bits.netbeans.org/maven2/org/netbeans/api/org-openide-util-lookup/RELEASE802/org-openide-util-lookup-RELEASE802.jar
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Java 8 Compiler creates
./build/META-INF/namedservices/Modules/Start/java.lang.Runnable
./build/Test.class
where ./build/META-INF/namedservices/Modules/Start/java.lang.Runnable contains a single line with the class name
ACTUAL -
Javac error:
java.nio.file.NoSuchFileException: /.../build/META-INF/namedservices/Modules/Start/java.lang.Runnable
---------- BEGIN SOURCE ----------
import org.openide.modules.OnStart;
@OnStart
public class Test implements Runnable {
@Override
public void run() { }
}
---------- END SOURCE ----------
FREQUENCY : always
LinuxMint 18.2
uname -a : Linux olaf 4.13.0-39-generic #44~16.04.1-Ubuntu SMP Thu Apr 5 16:43:10 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
java - version
java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
A DESCRIPTION OF THE PROBLEM :
Java 10 fails to compile a file that compiles under Java 8 (build 1.8.0_144-b01). Processing @OnStart annotation fails to create a file that the compiler expects.
REGRESSION : Last worked in version 8u172
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compile test file with
javac -d build -classpath lib/org-openide-modules-RELEASE802.jar:lib/org-openide-util-lookup-RELEASE802.jar Test.java
from jars downloaded at
http://bits.netbeans.org/maven2/org/netbeans/api/org-openide-modules/RELEASE802/org-openide-modules-RELEASE802.jar
http://bits.netbeans.org/maven2/org/netbeans/api/org-openide-util-lookup/RELEASE802/org-openide-util-lookup-RELEASE802.jar
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Java 8 Compiler creates
./build/META-INF/namedservices/Modules/Start/java.lang.Runnable
./build/Test.class
where ./build/META-INF/namedservices/Modules/Start/java.lang.Runnable contains a single line with the class name
ACTUAL -
Javac error:
java.nio.file.NoSuchFileException: /.../build/META-INF/namedservices/Modules/Start/java.lang.Runnable
---------- BEGIN SOURCE ----------
import org.openide.modules.OnStart;
@OnStart
public class Test implements Runnable {
@Override
public void run() { }
}
---------- END SOURCE ----------
FREQUENCY : always