Native image compilation error

Codrut Stancu codrut.stancu at oracle.com
Mon Nov 20 23:54:19 UTC 2017


Hi Leonardo,

Reflection is not supported in the current native-image released
binary. It should be supported in the next release. The release will
also include a small example to get you started.

Codrut Stancu

On Sat, 2017-11-18 at 14:04 -0800, Codrut Stancu wrote:
> We actually do support reflection in SVM, but you have to specify the
> reflexively accessed elements using some descriptor files. That's a
> limitation of the closed world assumption. The only feature that's
> not supported is dynamic class loading. We haven't experimented with
> Jackson yet. I'll get back later with more details (on my phone right
> now).
> 
> Codrut StancuOn Nov 18, 2017 1:18 PM, Stefan Marr <java at stefan-marr.d
> e> wrote:
> > 
> > 
> > Hi Leonardo: 
> > 
> > > 
> > > On 18 Nov 2017, at 21:10, Leonardo Loch Zanivan <pangalz at gmail.co
> > > m> wrote: 
> > > 
> > > I only read some mentions about Classloading limitations. 
> > > 
> > > All the JSON serializers I know uses Reflection APIs, so I
> > > suppose this is something to be supported in future releases. 
> > I don’t know. But, you really need the closed world assumption to
> > make AOT compilation in the way it is supposed to work for Truffle
> > languages. 
> > So, I wouldn’t expect that this is going to be addressed any time
> > soon… 
> > 
> > Best regards 
> > Stefan 
> > 


More information about the graal-dev mailing list