Bug 39823 - AST: Would like to have binding of Serializable and Clonable
Summary: AST: Would like to have binding of Serializable and Clonable
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks:
 
Reported: 2003-07-09 12:10 EDT by Martin Aeschlimann CLA
Modified: 2003-07-16 06:20 EDT (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 Martin Aeschlimann CLA 2003-07-09 12:10:05 EDT
20030709

AST.resolveWellKnownType does not support java.lang.Serializable and
java.lang.Clonable. 
Arrays are by design Serializable and Clonable so these interfaces seem 'well
known' as well.
Would it be possible to add these interfaces to the list of well known interfaces?

Or, would it even be possible to get the binding of any type? (without creating
an fake CU)
Comment 1 Philipe Mulet CLA 2003-07-10 06:43:06 EDT
Resolving more types on the fly isn't intended to be supported, since it 
requires to keep all name resolution structures in memory, in case you may 
resolve anything later on.

We could add the few obvious well-known entities you need though.
Comment 2 Olivier Thomann CLA 2003-07-11 15:19:05 EDT
This is trivial. The code is ready and simply needs an update of the API.
Jim, could you please do it and tell me when the API is changed so I can release
my changes?

Thanks.
Comment 3 Jim des Rivieres CLA 2003-07-11 16:11:00 EDT
Added to spec for AST.resolveWellKnownTypes:
	 * <li><code>"java.lang.Cloneable"</code></li>
	 * <li><code>"java.io.Serializable"</code></li>
Comment 4 Olivier Thomann CLA 2003-07-14 10:11:38 EDT
Fixed and released in HEAD.
Regression test added.
Comment 5 David Audel CLA 2003-07-16 06:20:41 EDT
Verified.