Notification upon completion of compilation

Gunnar Morling gunnar at
Sat Jan 5 22:04:33 UTC 2019


I'm exploring the (unsupported) plug-in API of javac. Java 9 added a
task event kind TaskEvent.Kind.COMPILATION which allows a listener to
react to the completion of the compilation.

Is there a way to achieve the same under Java 8? JDK-8033414 [1],
which introduced the new event kind states "there is no easy way to be
notified when the compilation is complete". What way would that be,
from looking into the code I couldn't see any approach, be it easy or
more complex.




More information about the compiler-dev mailing list