Code line with warning messages ?
Hello,
I use IntlliJ IDEA 9.0.3, when I compile one class, the compiler would give messages for example:
Error:(16, 9) cannot find symbol class Strin
Warning: Note: C:\Test\src\Wrong.java uses unchecked or unsafe operations.
Could you please teach me what to do, in order to have the number of the line of code, which generates the Warning. The same as the Error message line above.
Thanh you very much.
请先登录再写评论。
> Error:(16, 9) cannot find symbol class Strin
errr
why can't you just double click on this text and cursor will jump to error line?
> Warning: Note: C:\Test\src\Wrong.java uses unchecked or unsafe operations.
Sun java compiler doesn't provide line number in this warning message. After double-click Idea will only open the file. Idea can't know where to jump.
Thank you for the reply.
More info: Because I read the book "Java Generics and Collections" by Maurice Naftalin, Philip Wadler, published by O'Reilly in October 2006.
I get jealous to read how they compile java classes with code line infomation in the warning messages as extracted below:
From Part I, Chapter 6, Section 6.2
source code:
compile result:
Maybe, you know anything about javac command line, and teach me. Highly appreciate.