Eclipse Compilation Problem

Is there a way to set the compilation of an Eclipse report in the same way as javac?

I stumble upon a few cases when something works in eclipse and cannot be compiled with javac. I understand that eclipse uses ECJ and it cannot be changed, but is it possible to establish anywhere that everything that cannot be compiled with javac is a compilation error in Eclipse? (since in Eclipse you can make compilation errors even if they are ok)

Examples are from @SuiteClasses({A.class,B.class,})(the last comma is a problem), to subtle common problems that I do not fully understand.

+3
source share
4 answers

Eclipse ECJ Java Builder, Java, ( ), .

ECJ , Java-; . . , Ant build script, javac Sun JDK.

+2

eclipse build ant, , , javac.

+1

, Eclipse Compiler Java (ECJ) Javac, Java (JLS) , , .

, . , , JLS , - . ECJ , .

0

, Eclipse javac - . , - / !

0
source

Source: https://habr.com/ru/post/1718387/


All Articles