-
Bug
-
Resolution: Duplicate
-
P3
-
6
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2158321 | 6-pool | Jonathan Gibbons | P3 | Closed | Duplicate |
Using -implicit:none works as expected if no annotation processing is done (ie no processorpath specified). In this case it generates classes as expected for source files on the command line.
But, specify -processorpath, and no class files get generated. Ever.
For any trivial casse Foo, try the following:
gzilla[6u10-issues]% ./build/solaris-sparc/installvm/bin/javac -processorpath ../nofp/dist/nofp.jar -implicit:none play/Foo.java
gzilla[6u10-issues]% ls play
Foo.java Foo.java~
gzilla[6u10-issues]% ./build/solaris-sparc/installvm/bin/javac -implicit:none play/Foo.java
gzilla[6u10-issues]% ls play
Foo.class Foo.java Foo.java~
gzilla[6u10-issues]%
But, specify -processorpath, and no class files get generated. Ever.
For any trivial casse Foo, try the following:
gzilla[6u10-issues]% ./build/solaris-sparc/installvm/bin/javac -processorpath ../nofp/dist/nofp.jar -implicit:none play/Foo.java
gzilla[6u10-issues]% ls play
Foo.java Foo.java~
gzilla[6u10-issues]% ./build/solaris-sparc/installvm/bin/javac -implicit:none play/Foo.java
gzilla[6u10-issues]% ls play
Foo.class Foo.java Foo.java~
gzilla[6u10-issues]%
- backported by
-
JDK-2158321 -processorpath interferes with -implicit:none
- Closed
- duplicates
-
JDK-6935638 -implicit:none prevents compilation with annotation processing
- Closed