Bug 202165

Summary: compiler bug when compiling loop + label + case and continue
Product: [Eclipse Project] JDT Reporter: mike andrews <mra>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: jerome_lanneluc, Olivier_Thomann
Version: 3.3   
Target Milestone: 3.3.1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description mike andrews CLA 2007-09-04 11:22:24 EDT
the following code produces error on console when run -- i'm using jdk1.6.0_02 for amd64 from sun & eclipse 3.3.0 I20070625-1500 ---

Exception in thread "main" java.lang.ClassFormatError: Invalid pc in LineNumberTable in class file com/sac/eclipse/bugs/CompilerBugMain
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)



package com.sac.eclipse.bugs;

public class CompilerBugMain {

	public static void main(String... args) throws Exception {
		int integerVariable = 0;
		MY_LABEL: for (;;) {
			switch (integerVariable) {
			case 1:
				continue MY_LABEL;
			}

		}
	}
}
Comment 1 Olivier Thomann CLA 2007-09-04 15:45:07 EDT

*** This bug has been marked as a duplicate of bug 195317 ***
Comment 2 Eric Jodet CLA 2007-09-06 06:30:03 EDT
Verified for 3.3.1 using build M20070831-2000