Bug 64658 - IMethod exception inconsistencies
Summary: IMethod exception inconsistencies
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.0 RC2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-29 03:02 EDT by Genady Beryozkin CLA
Modified: 2004-05-31 18:42 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Genady Beryozkin CLA 2004-05-29 03:02:57 EDT
String[] getParameterTypes()   -> throws nothing

String[] getParameterNames() throws JavaModelException
String getReturnType() throws JavaModelException

It looks like the first method uses cached representation, which may change.
If it isn't too late to break the API, it maybe worth it.
Comment 1 Philipe Mulet CLA 2004-05-31 18:42:32 EDT
These API cannot be changed. The rationale for the 1st one not throwing any 
exception is that this information is part of the handle to the method, where 
the rest requires to reach the method, and thus it may not be accessible 
(exception case).