Bug 39020

Summary: Class causes java.lang.VerifyError: Illegal target of jump or branch
Product: [Eclipse Project] JDT Reporter: Vladimir Lahoda <vlahoda>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3    
Version: 2.1   
Target Milestone: 3.0 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
Source code
none
Eclipse compiled classfile
none
JDK compiled class file
none
Disassembled eclipse classfile
none
Disassembled JDK classfile none

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 ***