Uploaded image for project: 'Axiom'
  1. Axiom
  2. AXIOM-502

Unable to use AXIOM in GraalVM Native Image application

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.22
    • 1.2.23
    • Core Model
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              veithen Andreas Veithen
              auke Auke Schrijnen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m