Bug 83032

Summary: VerifyError for anonymous declaration using variable arguments
Product: [Eclipse Project] JDT Reporter: Piotr Kaminski <piotr>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: immanuel.scholz, philippe_mulet
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Class that causes a verify error
none
Apply on HEAD
none
Apply on HEAD of jdt.core compiler tests project none

Description Piotr Kaminski CLA 2005-01-17 16:43:21 EST
The attached standalone class compiles, but causes a verify error when loaded:

java.lang.VerifyError: (class: com/ideanest/reef/db/NamespaceMap, method:
<clinit> signature: ()V) Expecting to find unitialized object on stack

Eclipse build 200412162000, JDK 1.5.0-b64
Comment 1 Piotr Kaminski CLA 2005-01-17 16:44:27 EST
Created attachment 17217 [details]
Class that causes a verify error
Comment 2 Olivier Thomann CLA 2005-01-17 17:08:14 EST
This is reproducable in latest. The problem comes from the fact that varargs is
not supported in anonymous type creation.
Comment 3 Olivier Thomann CLA 2005-01-17 21:58:36 EST
Created attachment 17228 [details]
Apply on HEAD
Comment 4 Olivier Thomann CLA 2005-01-17 21:59:34 EST
Created attachment 17229 [details]
Apply on HEAD of jdt.core compiler tests project

New regression test.
Comment 5 Olivier Thomann CLA 2005-01-17 22:27:45 EST
Fixed and released in HEAD.
Regression test added in VarArgTest.
Philippe, please review the fix
Comment 6 Olivier Thomann CLA 2005-02-10 10:24:09 EST
*** Bug 84883 has been marked as a duplicate of this bug. ***
Comment 7 Philipe Mulet CLA 2005-02-10 10:59:57 EST
Fix looks good
Comment 8 Frederic Fusier CLA 2005-02-16 12:26:08 EST
Verified with 3.1 M5 candidate (I20040215-2300)