On Mon, Nov 28, 2016 at 11:49 AM, Alan Bateman <alan.bate...@oracle.com> wrote:
> On 28/11/2016 10:36, Stéphane Nicoll wrote: > > Peter, >> >> Thanks a lot, that helped! [1] >> >> Cheers, >> S. >> >> [1] >> https://github.com/spring-projects/spring-boot/commit/e15b3e >> 463f312524495349673a16cb67cfaa2eae >> >> The reflection has come up a number of things so great that Peter tracked > this down. > > So I'm curious why this code uses core reflection. Is it because it > sometimes runs on the JRE that didn't have javac implementation (or > jdk.compiler module in JDK 9). Eclipse users usually use the eclipse compiler and the annotation processor is supposed to kick in in the IDE as well. When you generate the meta-data in eclipse, default values are not available which is annoying. Again, we're not happy _at all_ with that code and would prefer to use some standard contract from javax.lang.model. I'll ask on compiler-dev if there is a better way. Thanks! S. > > > -Alan >