Joint compilation of Java, Groovy, @NotNull

Currently I am using javac2 to compile my Java code including processing of @NotNull annotations.
Now I'd like to write single classes in Groovy.

How do I get joint compilation of Java and Groovy without loosing the bytecode instrumentation for the @NotNull annotations?
Is there a way to instrument the byte code with @NotNull checks _after_ compilation?

1 comment
Comment actions Permalink

Hello Stephen,

Currently I am using javac2 to compile my Java code including
processing of @NotNull annotations. Now I'd like to write single
classes in Groovy.

How do I get joint compilation of Java and Groovy without loosing the
bytecode instrumentation for the @NotNull annotations?

Is there a way to instrument the byte code with @NotNull checks
after compilation?


Yes. You can use the InstrumentIdeaExtensions task instead of javac2 for
this - it accepts the same options but doesn't perform the actual compilation.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.