Community
Participate
Working Groups
Possibility to use the JDT compiler via official API outside of a running workbench Remarks: If we had ASTParser out side of a running workbench our problems would be solved, but it lives inside the context of I(Java)Project. Therefore we use “Compiler” it is standalone but internal and undocumented. If the things done in http://www-128.ibm.com/developerworks/opensource/library/os-ast/ could be considered “official documentation” our problems would be solved. Summary of current problems: We are using the compiler for AST-based static code analysis outside of a running workbench environment, e.g. in a build environment. We are forced to use the internal org.eclipse.jdt.internal.compiler.ast.* classes instead of the official org.eclipse.jdt.core.dom.* API.
The DOM AST can now be used again outside Eclipse.
*** This bug has been marked as a duplicate of 87852 ***