Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8366840

JEP 514 is not working as expected

XMLWordPrintable

    • x86_64
    • windows

      ADDITIONAL SYSTEM INFORMATION :
      Windows 11
      PowerShell 7.5.2
      openjdk 25 2025-09-16
      OpenJDK Runtime Environment (build 25+35-3488)
      OpenJDK 64-Bit Server VM (build 25+35-3488, mixed mode, sharing)

      A DESCRIPTION OF THE PROBLEM :
      When trying to use the simplified command approach to Project Leyden, the subprocess fails to work with the generated configuration file.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Following the description in https://openjdk.org/jeps/514 use the following command line

      java -XX:AOTCacheOutput=app.aot -jar JWTExample.jar

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      An app.out archive is created just like when using the previous approach with -XX:AOTMode=record and java -XX:AOTMode=create.
      ACTUAL -
      Error message that the app.oat file just created by the same tool is incompatible.

      [0.048s][error ][aot] class path and/or module path are not compatible with the ones specified when the AOTConfiguration file was recorded (hint: enable -Xlog:class+path=info to diagnose the failure)
      Error occurred during initialization of VM
      Unable to use create AOT cache.

            mcadizolivar Mario Cadiz Olivares
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: