Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2007

Tip: Looking for answers? Try searching our database.

Is ther a master list of all warnings/errors that the java compiler     can produce.

Thread view: 
Wazza - 05 Dec 2007 02:00 GMT
Hi,

Im writing a utility to inspect output from makefiles....

Part of the task involves checking the text output against a list of
known compiler warnings and errors.  I cant seem to find such a list
for the java compiler... (I found "some" stuff for error messages...
but not warnings).

Does anybody know of such a list?

thanks,

-dm

BTW: I know may would be thinking "you dont need a list of all errors
to find a java error in a mkaefile log..."; unfortuntly in this
circumstance it is nessesary....
Lew - 05 Dec 2007 02:55 GMT
> Hi,
>
[quoted text clipped - 14 lines]
> to find a java error in a mkaefile log..."; unfortuntly in this
> circumstance it is nessesary....

I don't have such a list, but several things complicate the compilation of
such a list.  Compilers change over time, they come from several vendors, and
Java compilation is built in to the language itself now, allowing all sorts of
custom compilers to happen, even at runtime.  Even within a single, standard
compiler at a certain version, there are options that turn on and off
different errors and warnings, or change how the same ones are reported.

Undoubtedly there is such a list, if only in the source code that Sun
provides.  I suggest taking any such list as a useful subset of the
potentially infinite-sized complete list, and include an "other" category for
unrecognized errors.  That way you don't have to keep up with changes or
quirks quite so aggressively, and you'll still catch 99.9repeating% of the cases.

Signature

Lew

Wazza - 05 Dec 2007 05:19 GMT
Thanks goof Idea;will hit the source code.

As for the difficulties the app is only for internal use and the java
compiler changes about once a year... so it's not a big hassle.

-dm
Thomas Fritsch - 06 Dec 2007 00:47 GMT
>> Im writing a utility to inspect output from makefiles....
>>
[quoted text clipped - 4 lines]
>>
>> Does anybody know of such a list?
[...]
> Undoubtedly there is such a list, if only in the source code that Sun
> provides.
[...]
The actual list is in file "<JDKdirectory>/lib/tools.jar", in member
"sun/tools/javac/resources/javac.properties". It contains all ~300 error
messages in english language.

Signature

Thomas

Roedy Green - 06 Dec 2007 09:31 GMT
>Part of the task involves checking the text output against a list of
>known compiler warnings and errors

see http://mindprod.com/jgloss/errormessages.html

It splits into compile time and run time.

The list is not complete, but it has the common ones, and it contains
translations into English of what the errors mean, and their possible
causes.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.