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

jaotc truncates the invalid filename provided to --output

XMLWordPrintable

    • b01
    • generic
    • generic

      jaotc --output "invalid filename" truncates the filename on error message.
      Please check the output below
      ==
      -sh-4.2$ /scratch/fairoz/JAVA/jdk10/jdk-10-ea+37/bin/jaotc --output abc.s Ideone.class
      Exception in thread "main" java.lang.InternalError: bc.s: file not recognized: File truncated
              at jdk.aot/jdk.tools.jaotc.Linker.link(Linker.java:131)
              at jdk.aot/jdk.tools.jaotc.Main.run(Main.java:220)
              at jdk.aot/jdk.tools.jaotc.Main.run(Main.java:101)
              at jdk.aot/jdk.tools.jaotc.Main.main(Main.java:80)
      ==

      Excpected = Exception in thread "main" java.lang.InternalError: abc.s: file not recognized:

      Actual = Exception in thread "main" java.lang.InternalError: bc.s: file not recognized:

      abc.s is truncated to bc.s

            iveresov Igor Veresov
            fmatte Fairoz Matte
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: