Bug 83032 - VerifyError for anonymous declaration using variable arguments
Summary: VerifyError for anonymous declaration using variable arguments
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 84883 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-17 16:43 EST by Piotr Kaminski CLA
Modified: 2005-02-16 12:26 EST (History)
2 users (show)

See Also:


Attachments
Class that causes a verify error (5.00 KB, text/plain)
2005-01-17 16:44 EST, Piotr Kaminski CLA
no flags Details
Apply on HEAD (962 bytes, patch)
2005-01-17 21:58 EST, Olivier Thomann CLA
no flags Details | Diff
Apply on HEAD of jdt.core compiler tests project (1.47 KB, patch)
2005-01-17 21:59 EST, Olivier Thomann CLA
no flags Details | Diff

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