JavaDoc Error on @RequiredArgsConstructor(onConstructor=@__(@Inject))

4,752 views
Skip to first unread message

IanLim

unread,
Feb 20, 2016, 1:56:58 PM2/20/16
to Project Lombok
Dear All

I am getting error when trying to generate JavaDoc using JDK 8 for the line above.

The more detailed error is as follows:

 error: cannot find symbol
[ERROR] @RequiredArgsConstructor(onConstructor=@__(@Inject))
[ERROR] ^
[ERROR] symbol: class __

Any advice will be much appreciate on how to resolve the error.

Thanks
Ian Lim

Martin Grajcar

unread,
Feb 21, 2016, 4:58:21 PM2/21/16
to project...@googlegroups.com
This looks like delombok not working with Java 8. The annotation should go away and a constructor should be generated. But on Java 8, the output and input files are identical.

I was just encountering the same problem and the cause seem to be non-ASCII characters in the input. I'm using UTF-8 everywhere, but the system it runs on does not. Adding "-Dfile.encoding=UTF-8" solved the above delombok problem!

Regards,
Martin.

--
You received this message because you are subscribed to the Google Groups "Project Lombok" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-lombo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Martin Grajcar

unread,
Feb 22, 2016, 9:00:35 AM2/22/16
to project...@googlegroups.com
I see I was speaking about delombok, but you might not be using it at all. The common practice is to generate javadoc from the delomboked code. This is probably necessary, as fields are usually private and therefore omitted from the javadoc.
Reply all
Reply to author
Forward
0 new messages