Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Incomplete
-
2.10.4
-
None
-
None
-
Maven home: /usr/local/Cellar/maven/3.5.0/libexec
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.13.1", arch: "x86_64", family: "mac"Maven home: /usr/local/Cellar/maven/3.5.0/libexec Java version: 1.8.0_131, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "10.13.1", arch: "x86_64", family: "mac"
Description
I have a very weird case where the plugin alters my generated sources in such a way that the code doesn't even compile anymore, and then fails to generate a Javadoc report. Not sure if this is caused by the plugin or Javadoc itself.
My code is as follows:
A.java
public class A { @AllArgsConstructor public class B { String s; } }
C.java
public class C { @Value public class D { A a; public B test(String s) { return a.new B(s) {} // This compiles perfectly fine } } }
The problem is within C.java, where its contents get replaced with
public class C { @Value public class D { A a; public B test(String s) { return new B(a<*nullchk*>, s) {} // This is the part that won't compile } } }
Which its somewhat similar to the underlying bytecode but certainly not correct code! I am also quite surprised that the plugin seems to alter my generated source code files.