RFR: implementation for JEP 334: JVM Constants API
jbvernee
jbvernee at xs4all.nl
Sun May 27 19:04:11 UTC 2018
> It's unfortunate that the return type of `describeConstable` in
> `EnumDesc` and `VarhandleDesc` can't be simplified any more currently.
I might have gotten lost in my own train of thought a little bit there.
I missed the fact that you can also change the return types to
`Optional<ConstantDesc<ConstantDesc<E>>>` for `EnumDesc` and
`Optional<ConstantDesc<ConstantDesc<Varhandle>>>` for `VarHandleDesc`,
without changing anything else. Those are at least a little bit simpler.
More information about the amber-dev
mailing list