[constables] RFR of constants API
maurizio.cimadamore at oracle.com
Tue May 8 17:50:38 UTC 2018
The [Type, Method, Field]Descriptor API looks neat - I have two comments
* I believe the name descriptor is going to be confusing with the rest
of the API, as there are a lot of classes whose name ends with 'Desc'
* we discussed internally to sprinkle parameters on
java/lang/reflect/Member (e.g. have a type parameter T <:
TypeDescriptor<T>, and have a method type() which returns a T). That way
we could have Member to be a full live representation of a reflective
member, including access to owner (a Class<?>), name (String) and,
finally, a type (some TypeDescriptor T).
On 04/05/18 20:09, Vicente Romero wrote:
> please review another iteration of the constants API at . This one
> removes the Lookup argument from describeConstable() plus adds
> interfaces FieldDescriptor, TypeDescriptor and MethodDescriptor
> On 05/01/2018 01:43 PM, Brian Goetz wrote:
>> To be clear: we’re asking for an *API review*. No need to review the
>> code right now, just the API and the specs.
>>> On May 1, 2018, at 6:32 PM, Vicente Romero
>>> <vicente.romero at oracle.com> wrote:
>>> Please review also the related CSR:
>>> On 04/27/2018 01:31 PM, Vicente Romero wrote:
>>>> Hi all,
>>>> Please review the current proposal of the constants API, which are
>>>> nominal descriptor types defined in pkg java.lang.invoke.constant.
>>>> The code can be found at . This API is being developed in the
>>>> context of JEP 303: Intrinsics for the LDC and INVOKEDYNAMIC
>>>> Instructions 
>>>> Thanks in advance for your comments,
>>>>  http://cr.openjdk.java.net/~vromero/constant.api/webrev.00
>>>>  http://openjdk.java.net/jeps/303
More information about the amber-spec-experts