Bug 83002 - [1.5] Compiler generates incorrect signature for throws clause.
Summary: [1.5] Compiler generates incorrect signature for throws clause.
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 89454 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-17 14:00 EST by Thomas Hallgren CLA
Modified: 2005-03-30 23:51 EST (History)
1 user (show)

See Also:


Attachments

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