Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Comprehensive List of Java Compile-Time Errors

user5569006Jan 2 2016 — edited Jan 2 2016

Hello.  Is there a list of all possible compiler errors that can be output (all levels--warnings, errors, whatever) by a Javac compile?  Of course, I would not expect Oracle to keep such a list for any JDK that was not authored at Oracle.

For this to be helpful, it would at least give a recognizable category (Generics, or Classloading, perhaps).  One would expect it to have the full, constant part of the text of the exception (some blanks get filled in for your specific error--those would be left out).  It would ideally have more in-depth text to explain things. But often that is not possible.

I ask because I saw a question about this in a forum on another site, and it got me curious.  Does Oracle keep such a list?  Is there a javac parameter to just spit such a list out?  Can a grep across the source code of the compiler, show such a list?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 30 2016
Added on Jan 2 2016
0 comments
856 views