Bug 70611 - [1.5] Specific generic class declaration breaks save and load
Summary: [1.5] Specific generic class declaration breaks save and load
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-22 07:58 EDT by Oscar CLA
Modified: 2006-04-14 09:59 EDT (History)
0 users

See Also:


Attachments
Eclipse logs (127.08 KB, text/plain)
2004-07-22 08:03 EDT, Oscar CLA
no flags Details

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