Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » EclipseCompiler working standalone but not in plugin
EclipseCompiler working standalone but not in plugin [message #1103075] Fri, 06 September 2013 10:59
jonas b is currently offline jonas bFriend
Messages: 23
Registered: July 2013
Junior Member
Hi,

In my plugin I want to use org.eclipse.jdt.internal.compiler.tool.EclipseCompiler to compile code in-memory. I want to reuse code which I have successfully tested in a standalone java project. The code is more or less copied from here: http://blog.nobel-joergensen.com/2008/07/16/using-eclipse-compiler-to-create-dynamic-java-objects-2/

While this works well for a standalone project, it doesn't work inside my plugin. The code provides its own implementation of ClassLoader which performs lookup in a hashtable. However this custom classloader's findClass() method is never called. In the standalone version it is called.

There is this bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=188796 but I cannot confirm if I'm affected by it since it's only in the plugin context where it's not working.

Is there anything special to be done when running this inside a plugin?
Previous Topic:Installing JDT plugins offline into Eclipse CDT
Next Topic:null for integral types ?
Goto Forum:
  


Current Time: Sat Apr 20 04:17:10 GMT 2024

Powered by FUDForum. Page generated in 0.03225 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top