JEP proposed to target JDK 9 (2015/1/8)

David M. Lloyd david.lloyd at redhat.com
Fri Jan 9 02:05:31 UTC 2015


Having used this API more than a bit, I think it would be super-nice if 
this enhancement could be extended slightly to add covariant overrides 
where appropriate in the javax.lang.model API, if it is at all possible 
to do so in a binary-compatible way.

Specifically, where types and elements are converted to one another is a 
really painful part of this API; for example I'm pretty sure that 
DeclaredType.asElement() could return a TypeElement rather than an 
Element and save everyone lots of annoying casting.  Not sure if it's 
possible to keep the compatibility bridge method though in this 
particular case.  But it would be nice to at least briefly explore this 
path.

On 01/08/2015 03:53 PM, mark.reinhold at oracle.com wrote:
> The following JEP has been placed into the "Proposed to Target"
> state by its owner after discussion and review:
>
>    217: Annotations Pipeline 2.0   http://openjdk.java.net/jeps/217
>
> Feedback on this proposal is more than welcome, as are reasoned
> objections.  If no such objections are raised by 22:00 UTC next
> Thursday, 15 January, or if they're raised and then satisfactorily
> answered, then per the JEP 2.0 process proposal [1] I'll target
> this JEP to JDK 9.
>
> (This information is also available on the JDK 9 Project Page [2]).
>
> - Mark
>
>
> [1] http://cr.openjdk.java.net/~mr/jep/jep-2.0-02.html
> [2] http://openjdk.java.net/projects/jdk9/
>

-- 
- DML


More information about the jdk9-dev mailing list