Bug 84883 - java.lang.VerifyError on anonymous constructor with varargs Object...
Summary: java.lang.VerifyError on anonymous constructor with varargs Object...
Status: RESOLVED DUPLICATE of bug 83032
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-10 08:32 EST by Immanuel Scholz CLA
Modified: 2005-02-10 10:24 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***