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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b159
    • CPU:
      x86
    • OS:
      linux
    • Verification:
      Verified

      Backports

        Description

        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)

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: