Community
Participate
Working Groups
The attached code creates an AST, modifies an annotation in that AST, then attempts to write out the modified AST using CompilationUnit.rewrite(...). It fails with a CoreException regarding end of file as shown in the attached stack trace.
Created attachment 17353 [details] Code fragment to reproduce
Created attachment 17354 [details] Stack trace The original CoreException mentioned in the bug report gets turned into the IllegalArgument exception shown here. The obvious suspect is the use of ITerminalSymbols.TokenNameLESS in ASTRewriteAnalyzer.visit(org.eclipse.jdt.core.dom.NormalAnnotation).
This was in 3.1 M4.
fixed > 20050121
Verified in I20050214-0927