For the same code, Eclipse shows warnings about unused variables, but compiling with "javac" (v1.6) does not. Does Eclipse use a different compiler or parser? How can I get javac to show the same warnings?
Quote from JDT core (Eclipse's editor infrastructure)
JDT Core is the Java infrastructure of the Java IDE. It includes:
An incremental Java compiler. Implemented as an Eclipse builder, it is based on technology evolved from VisualAge for Java compiler. In particular, it allows to run and debug code which still contains unresolved errors.
It is the incremental Java compiler that shows the warning.
There are no ways to enable that warning in Sun/Oracle javac
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With