Auke Schrijnen created AXIOM-502:
------------------------------------

             Summary: Unable to use AXIOM in GraalVM Native Image application
                 Key: AXIOM-502
                 URL: https://issues.apache.org/jira/browse/AXIOM-502
             Project: Axiom
          Issue Type: Bug
          Components: Core Model
    Affects Versions: 1.2.22
            Reporter: Auke Schrijnen


When building an application using the GraalVM Native Image compiler it fails 
when AXIOM is used in the application. The GraalVM compiler fails with the 
exception java.lang.InternalError: Enclosing method not found. (see 
[https://github.com/oracle/graal/issues/1438]).

This seems to be caused by missing type information for an anonymous class in 
CoreParentNodeSupport. The IntelliJ decompiler decompiles the codeGetNodes 
method as return {{new 1(ajc$this_, ajc$this_, axis, type, semantics);}}, where 
1 is the missing type. The source of this code is the anonymous 
AbstractNodeIterator implementation in CoreParentNodeSupport.aj.

When using the latest AXIOM version from the master branch (1.3.0-SNAPSHOT) the 
application builds fine since the anonymous class is replaced by a concrete 
class.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to