Use Compiler API in jEdit plugin
Status: Inactive
Brought to you by:
vocaro
The jEdit plugin invokes the modified javac compiler by executing it directly. The code would probably be simpler if the Compiler API were used to invoke the compiler instead.
To do this, Peter von der Ahé says:
"You have to use the ServiceLoader mechanism, not the ToolProvider:
https://openjdk.dev.java.net/nonav/compiler/guide/compilerAPI.html#ServiceLoader
It is really not that hard to set up a service provider, but we may make it even simpler in JDK 7; however, for now, you have to create the service configuration file as described in the docs for ServiceLoader (META-INF/services/javax.tools.JavaCompiler)."
Logged In: YES
user_id=720008
Originator: YES
The discussion of how to do this continued:
http://thread.gmane.org/gmane.comp.java.openjdk.compiler.devel/255