Bug in Javac2 - @NotNull Annotation compiler is never executed!

as you can see from code below if there are no forms in the project
compile() method will exit never calling instrumentNotNull()

protected void compile(){
// compile java
super.compile();

// we instrument every file, because we cannot find which files should
not be instrumented without dependency storage
final ArrayList formsToInstrument = myFormFiles;

if (formsToInstrument.size() == 0){
log("No forms to instrument found", Project.MSG_VERBOSE);
return;
}

...........

//NotNull instrumentation
instrumentNotNull(getDestdir());
}



1 comment

Hello Alex,

That's a major problem indeed. Thanks for reporting!

http://www.jetbrains.net/jira/browse/IDEADEV-9677

AR> as you can see from code below if there are no forms in the project
AR> compile() method will exit never calling instrumentNotNull()
AR>
AR> protected void compile(){
AR> // compile java
AR> super.compile();
AR> // we instrument every file, because we cannot find which files
AR> should
AR> not be instrumented without dependency storage
AR> final ArrayList formsToInstrument = myFormFiles;
AR> if (formsToInstrument.size() == 0){
AR> log("No forms to instrument found", Project.MSG_VERBOSE);
AR> return;
AR> }
AR> ...........
AR>
AR> //NotNull instrumentation
AR> instrumentNotNull(getDestdir());
AR> }
--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.