Community
Participate
Working Groups
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)
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.
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.
Added to spec for AST.resolveWellKnownTypes: * <li><code>"java.lang.Cloneable"</code></li> * <li><code>"java.io.Serializable"</code></li>
Fixed and released in HEAD. Regression test added.
Verified.