Hi Gunnar,

On 01/17/2014 06:03 AM, Gunnar Morling wrote:
Hi Joe,

Thanks for these pointers and providing this implementation. So is this to say that JEP 119 is/will not be part of JDK 8? Is it considered for being included in JDK 9 then?

Right; we are *not* including the JEP 119 code as part of the API of the JDK -- it is neither a Java SE API (in java.* or javax.*) nor is it a supported JDK-specific API (in jdk.* or elsewhere). The implementation code is just a proof-of-concept sample.

If there is sufficient interest, it is possible this functionality could be included in Java SE 9 or JDK 9.

While the code today should work, a large amount of testing would be needed before such an API could be included in the product.


I like the idea of that JEP, because the current distinct APIs at processing and runtime easily lead to redundancies when dealing with annotations. E.g. for Hibernate Validator we provide an annotation processor for compile-time checking of constraints which basically re-implements logic from the runtime library. So it'd be nice to see JEP 119 as part of the JDK.

With the benefit of hindsight, the javax.lang.model.* API is in many ways easier to work with than core reflection and avoiding code duplication would be beneficial :-)

Thanks,

-Joe


--Gunnar



2014/1/17 Joe Darcy <joe.da...@oracle.com <mailto:joe.da...@oracle.com>>

    Hello Gunnar,

    I posted a blog entry about that effort a while ago:

        "javax.lang.model backed by core reflection"
    https://blogs.oracle.com/darcy/entry/core_backed_lang_model

    and the source code can be found in the JDK 8 Hg repos:

    
http://hg.openjdk.java.net/jdk8/tl/langtools/file/tip/src/share/sample/language/model/CoreReflectionFactory.java

    HTH,

    -Joe


    On 01/16/2014 04:30 PM, Gunnar Morling wrote:

        Hi,

        I'm looking for guidance on how to work with JEP 119
        ("javax.lang.model
        Implementation Backed by Core Reflection").

        Is this part of the latest JDK 8 build (123)? If so, what's
        the entry point
        into the reflection-backed implementation of the API? There
        was the
        announcement of an PoC implementation some time last year [2],
        but I can't
        find any information on whether that has been integrated into
        the official
        build.

        Many thanks,

        --Gunnar

        [1] http://openjdk.java.net/jeps/119
        [2]
        http://mail.openjdk.java.net/pipermail/jdk8-dev/2013-May/002502.html




Reply via email to