Bug 202165 - compiler bug when compiling loop + label + case and continue
Summary: compiler bug when compiling loop + label + case and continue
Status: VERIFIED DUPLICATE of bug 195317
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.3.1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-04 11:22 EDT by mike andrews CLA
Modified: 2007-09-06 06:31 EDT (History)
2 users (show)

See Also:


Attachments

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