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

[AOT] jaotc does not accept file name with .class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 9
    • hotspot
    • b159
    • x86
    • linux
    • Verified

        jaotc should accept both variation of class file: with and without .class extension:

        $ jaotc --output libHelloWorld-coop.so HelloWorld

        $ jaotc --output libHelloWorld-coop.so HelloWorld.class
        Error: Failed to find: unknown:HelloWorld.class
        java.lang.InternalError: Failed to find: unknown:HelloWorld.class
        at jdk.aot/jdk.tools.jaotc.collect.ClassSearch.findSource(ClassSearch.java:80)
        at jdk.aot/jdk.tools.jaotc.collect.ClassSearch.search(ClassSearch.java:43)
        at jdk.aot/jdk.tools.jaotc.Main.run(Main.java:369)
        at jdk.aot/jdk.tools.jaotc.Main.run(Main.java:306)
        at jdk.aot/jdk.tools.jaotc.Main.main(Main.java:284)

        $ jaotc --output libHelloWorld-coop.so --class-name HelloWorld.class
        Error: Failed to find: classname:HelloWorld.class
        java.lang.InternalError: Failed to find: classname:HelloWorld.class
        at jdk.aot/jdk.tools.jaotc.collect.ClassSearch.findSource(ClassSearch.java:80)

              kvn Vladimir Kozlov
              kvn Vladimir Kozlov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: