Bug 73671 - [1.5] Signature.getTypeArguments should also tolerate normal types
Summary: [1.5] Signature.getTypeArguments should also tolerate normal types
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 M3   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-10 10:54 EDT by Martin Aeschlimann CLA
Modified: 2004-11-04 06:02 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 Martin Aeschlimann CLA 2004-09-10 10:54:52 EDT
20040910

Currently, when using Signature.getTypeArguments on a normal (non-parametrized)
type you get a IAE. It would be nicer (and IMO also more correct) to get an
empty array
Comment 1 Philipe Mulet CLA 2004-09-28 04:53:07 EDT
agreed
Comment 2 Jerome Lanneluc CLA 2004-10-08 08:15:18 EDT
Changed spec and implementation of getTypeArguments to return an empty array if
the type signature is not a parameterized type signature.

Added regression test signatureTests#testGetTypeArguments6()
Comment 3 David Audel CLA 2004-11-04 06:02:15 EST
Verified for 3.1M3 with build I200411040100