hg: jep/jeps: 119: javax.lang.model Implementation Backed by Core Reflection

Florian Weimer fweimer at bfk.de
Mon Nov 7 11:51:44 UTC 2011

* mark reinhold:

> Changeset: 965ff7e847f4
> Author:    mr
> Date:      2011-11-01 14:47 -0700
> URL:       http://hg.openjdk.java.net/jep/jeps/rev/965ff7e847f4
> 119: javax.lang.model Implementation Backed by Core Reflection

We have implemented something in this area, a unified API backed
alternatively by javax.lang.model or reflection.  Our experience with
javax.lang.model was not entirely positive because we noticed that our
code tended to have accidental dependencies on javac implementation
details.  That was our main motivation to add another layer of
indirection.  (Another reason was that it was difficult to figure out
how javax.lang.model was supposed to be implemented, but after the
experience, it seems less daunting.)

Testing the new implementation against the javac view will likely
uncover bugs in Core Reflection, which should be fixed there, not worked
around in the implementation.

Florian Weimer                <fweimer at bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99

More information about the discuss mailing list