Menu

#185 Instrumented enum that uses @Nonnull breaks test compilation

open
nobody
None
5
2013-03-22
2013-03-22
No

The java compiler fails to compile tests that depend on enums that use @javax.annotations.Nonnull. The cobertura instrumented version of the class causes compilation errors like the following: "Compilation failure [line number reference to test class] error: cannot access [name of enum]"

My original question about this issue on http://stackoverflow.com/questions/15547673 explains the details of how I found this.

Discussion

  • Sindri Traustason

    Example of instrumented enum with the problem

     
  • Sindri Traustason

    Same class before instrumentation

     

Log in to post a comment.