Native image compilation error

Codrut Stancu codrut.stancu at oracle.com
Mon Dec 4 23:45:55 UTC 2017


Hi Leonardo,
The GraalVM 0.30 release is available for download from OTN (http://www
.oracle.com/technetwork/oracle-labs/program-
languages/overview/index.html) as usual. It supports reflection and you
can find an example in the graalvm-0.30/examples/native-image/README.md 
file. The reflection support is currently experimental and we are
ironing out potential wrinkles as we expand our use of this feature.
For Jackson we are investigating the possibility to pre-process the
 Jackson annotations and register the reflexively accessed elements
automatically. At this point you'll have to write the reflexion
configuration files manually.
Codrut Stancu
On Tue, 2017-11-21 at 00:07 +0000, Leonardo Loch Zanivan wrote:
> Awesome! Thank you for letting me know. I'm looking forward to use it
> soon.
> 
> Cheers
> 
> On Mon, Nov 20, 2017 at 9:54 PM Codrut Stancu 
> om> wrote:
> > 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 
> > rr.d
> > > e> wrote:
> > > >
> > > >
> > > > Hi Leonardo: 
> > > >
> > > > >
> > > > > On 18 Nov 2017, at 21:10, Leonardo Loch Zanivan 
> > l.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