Powered by XP-Dev.com - Agile Software Development Tools | You are currently not logged in. Login Now | Don't have a XP-Dev.com account ? Create one for FREE
Open Source Project

HiberObjects

Bug #26: Unit tests failed with new Groovy plugin

Lots of unit tests started to fail after I installed the new Groovy plugin.
The problem is in ASTBuilder:
protected void analyzeCode(Document doc)
{
ASTParser parser = ASTParser.newParser(javaLevel);
parser.setSource(doc.get().toCharArray());
compilationUnit = (CompilationUnit) parser.createAST(null);
compilationUnit.recordModifications();
ast = compilationUnit.getAST();
}
parser.createAST gives a NullPointerException. Perhaps because it calls JavaCore.getPlugin() to get a log object.

Estimated Hours 0 State Closed
Assigned To Profile+Picture lars.hoidahl Closed
Revision Author Commited Message
89 Profile+Picture lars.hoidahl Fri 05 Feb, 2010 22:00:01 +0000

Use old jdt plugin (without Groovy) for unit testing code generation. Fixes #26

Rss Bug #26: Unit tests failed with new Groovy plugin    Rss Bug and Comments #26: Unit tests failed with new Groovy plugin