Bug 83002

Summary: [1.5] Compiler generates incorrect signature for throws clause.
Product: [Eclipse Project] JDT Reporter: Thomas Hallgren <thomas>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: jessehull
Version: 3.1   
Target Milestone: 3.1 M6   
Hardware: All   
OS: All   
Whiteboard:

Description Thomas Hallgren CLA 2005-01-17 14:00:31 EST
The following method:

class foo
{
	protected static <T extends Exception> void foo() throws T
	{}
}

yields the following signature when compiled with Sun's Javac.

<T:Ljava/lang/Exception;>()V^TT;

when compiling it using the Eclipse compiler, you get:

<T:Ljava/lang/Exception;>()VTT;

i.e., the '^' is missing from the throws signature.
Comment 1 Philipe Mulet CLA 2005-03-07 17:21:06 EST
Added GenericTypeTest#test557.
Fixed
Comment 2 Olivier Thomann CLA 2005-03-07 22:24:30 EST
The '^' is needed in front of each exception.
Added regression test GenericTypeTest#test558.
I also added new tests in the SignatureTests.testGetThrownExceptionTypes().
Comment 3 Philipe Mulet CLA 2005-03-30 08:12:09 EST
*** Bug 89454 has been marked as a duplicate of this bug. ***
Comment 4 Olivier Thomann CLA 2005-03-30 23:51:28 EST
Verified in 20050330-0500