Bug 39020 - Class causes java.lang.VerifyError: Illegal target of jump or branch
Summary: Class causes java.lang.VerifyError: Illegal target of jump or branch
Status: RESOLVED DUPLICATE of bug 37621
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 3.0 M2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-17 11:05 EDT by Vladimir Lahoda CLA
Modified: 2003-06-17 15:10 EDT (History)
0 users

See Also:


Attachments
Source code (647 bytes, text/plain)
2003-06-17 11:06 EDT, Vladimir Lahoda CLA
no flags Details
Eclipse compiled classfile (750 bytes, application/octet-stream)
2003-06-17 11:07 EDT, Vladimir Lahoda CLA
no flags Details
JDK compiled class file (577 bytes, application/octet-stream)
2003-06-17 11:08 EDT, Vladimir Lahoda CLA
no flags Details
Disassembled eclipse classfile (1.18 KB, text/plain)
2003-06-17 11:08 EDT, Vladimir Lahoda CLA
no flags Details
Disassembled JDK classfile (1.13 KB, text/plain)
2003-06-17 11:09 EDT, Vladimir Lahoda CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Lahoda CLA 2003-06-17 11:05:00 EDT
The attached class Testik.java throws exception java.lang.VerifyError: (class: 
com/amaio/Testik, method: test signature: ()V) Illegal target of jump or 
branch. when compiled by JDT incremental compiler.
The same class compiled by standard JDK 1.4 compiler works fine.
I enclose the javap disassembly file (disassembled.eclipse), the problem is 
apparently caused by the line "25 goto 38" which attempts to jum to non-
existing label 38.

(The awkward sourcecode in Testik.java was originally generated by javacc...)
Comment 1 Vladimir Lahoda CLA 2003-06-17 11:06:33 EDT
Created attachment 5211 [details]
Source code
Comment 2 Vladimir Lahoda CLA 2003-06-17 11:07:32 EDT
Created attachment 5212 [details]
Eclipse compiled classfile
Comment 3 Vladimir Lahoda CLA 2003-06-17 11:08:11 EDT
Created attachment 5213 [details]
JDK compiled class file
Comment 4 Vladimir Lahoda CLA 2003-06-17 11:08:55 EDT
Created attachment 5214 [details]
Disassembled eclipse classfile
Comment 5 Vladimir Lahoda CLA 2003-06-17 11:09:25 EDT
Created attachment 5215 [details]
Disassembled JDK classfile
Comment 6 Philipe Mulet CLA 2003-06-17 13:16:13 EDT
Which Eclipse build are you using ?
Comment 7 Philipe Mulet CLA 2003-06-17 13:17:40 EDT
Suspect this to be a dup of bug 37040
Comment 8 Philipe Mulet CLA 2003-06-17 13:18:52 EDT
We may consider backporting this fix for 2.1 maintenance stream as well.
Comment 9 Philipe Mulet CLA 2003-06-17 13:21:17 EDT
Actually, I was wrong. This is a dup of bug 37621 which already backported to 
2.1.1.
Comment 10 Philipe Mulet CLA 2003-06-17 15:10:51 EDT

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