Bug 70611

Summary: [1.5] Specific generic class declaration breaks save and load
Product: [Eclipse Project] JDT Reporter: Oscar <disposuka-eclipse>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Eclipse logs none

Description Oscar CLA 2004-07-22 07:58:53 EDT
Hi,

I have a regular class declaration.

I change its declaration to be as follow:

public class FloatingFrameCellEditor<T2, T extends Component &
FloatingFrameComponent<T2> > extends DefaultCellEditor implements
		InternalFrameListener, FocusListener, KeyListener {

After doing Eclipse won't let me save the file, forcing me to undo the change.

I edited the file outside eclipse and now the file can't be loaded saying the
editor failed to initialize. Opening it from the package explorer doesn't work
either. Ctrl-Shift-T does not work either. In fact, most code-related features
stop working.

I am using the cheetah support for 1.5.

(Log reports java.lang.ArrayIndexOutOfBoundsException: 1
	at
org.eclipse.jdt.internal.compiler.SourceElementParser.notifySourceElementRequestor(SourceElementParser.java:1238)
)

I would expect that this would not be so catastrophic even if the code was not
parseable it should not die with an exception leaving (I guess) the code
database apparently broken.

Regards,
Oscar
Comment 1 Oscar CLA 2004-07-22 08:03:01 EDT
Created attachment 13515 [details]
Eclipse logs
Comment 2 Olivier Thomann CLA 2004-07-28 20:52:42 EDT
Fixed and released in HEAD.
Comment 3 Frederic Fusier CLA 2006-04-14 09:59:32 EDT
Verified for 3.1 using build I20050627-1435.