Bug 78160 - Invalid classfile for problem type
Summary: Invalid classfile for problem type
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-09 08:03 EST by Philipe Mulet CLA
Modified: 2004-12-14 09:30 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2004-11-09 08:03:52 EST
Build 3.1M3

When compiling the following testcase, the problem classfile issued has an
invalid signature in it:

public class X extends Y<Y<?>> {
}
class Y<T> {}

----------
1. ERROR in d:\src\X.java (at line 45)
	public class X extends Y<Y<?>> {
	                       ^
The type X cannot extend or implement Y<Y<?>>. A supertype may not specify any
wildcard
----------
1 problem (1 error)
java.lang.ClassFormatError: Field "has inconsistent hierarchy" in class X has
illegal signature "V"
	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$100(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)
Comment 1 Olivier Thomann CLA 2004-11-09 13:08:08 EST
Fixed and released in HEAD.
Comment 2 Jerome Lanneluc CLA 2004-12-14 09:30:51 EST
Verified in I200412140010 that no error is reported (as expected)