Project: JDT
Bug 149114 [quick fix] 'create class' quickfix with varargs finds wrong superclass
Reported: 2006-06-29 02:48:02 | Status: verified fixed

(place cursor on 'UnknownClass', hit quick fix, choose 'create class') import java.util.*; public class Strange { { // suggests "class UnknownClass implements Number[]" (doesn't do varargs) Arrays.<Number>asList( new UnknownClass() ); // suggests "class UnknownClass" (same issue, I assume) Arrays.<Number>asList( new Integer(42), new UnknownClass() ); // now this is the weird one // suggests "class UnknownClass implements Arrays[]" Arrays.asList( new UnknownClass() ); } } This is with build i20060602-1317

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/UnresolvedVariablesQuickFixTest.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ASTResolving.java