This discussion is archived
0 Replies Latest reply: Sep 5, 2013 10:12 AM by 978810a3-cdce-439d-82a9-a640f18a7df5 RSS

I am able to compile a java file in eclipse inspite of compilation errors shown in eclipse and a .class file is generated

978810a3-cdce-439d-82a9-a640f18a7df5 Newbie
Currently Being Moderated

Hi,

 

I had a java file with compilation errors as shown in eclipse IDE.

But the class file is still generated in the classes folder on building and pressing clean the project.

I confirmed that the class file has an updated time stamp and also that a System.out.println() statement that i added was indeed printed out when this class was encountered during the running of a web application in which this class was called somewhere.

(The java class has no subclasses and it is a single class with public modifier).

 

How does it happen so?

 

Regards,

 

 

Karthik.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points