Bug 84883

Summary: java.lang.VerifyError on anonymous constructor with varargs Object...
Product: [Eclipse Project] JDT Reporter: Immanuel Scholz <immanuel.scholz>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Immanuel Scholz CLA 2005-02-10 08:32:04 EST
Assume the following:

class C {
	public C(Object... p) {}

	public static void main(String[] args) {
		new C(){};
	}
}

This gives me a

java.lang.VerifyError: (class: Objekttyp, method: main signature:
([Ljava/lang/String;)V) Expecting to find object/array on stack

when compiled with eclipse.

Eclipse "Release" 3.1M4
Version: 3.1.0
Build id: 200412162000
Comment 1 Olivier Thomann CLA 2005-02-10 10:24:08 EST

*** This bug has been marked as a duplicate of 83032 ***