Project: JDT
Bug 65866 ASTFlattener generate code with syntax error visiting ArrayCreation
Reported: 2004-06-05 07:45:46 | Status: verified fixed

The "public boolean visit(ArrayCreation node)" method of "org.eclipse.jdt.internal.corext.dom.ASTFlattener" appends an "=" between array type and the (optional) initializer. example of code produced: new Class[] = {List.class, ArrayList.class} instead of: new Class[] {List.class, ArrayList.class} To fix the bug simply remove the "fResult.append('=');" line in the visit method.

Files changed in fix:
org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTFlattener.java