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

3 tools/jimage/ tests fails with StringIndexOutOfBoundsException

XMLWordPrintable

      These are new tests from JDK-8167240. They keeps on failing on all platforms.

      Please have a look at sample output by tools/jimage/JImageListTest.java


      ----------System.out:(21/3550)----------
      Invoking testListIncludeWithGlob
      jimage [list, /scratch/mesos/work_dir/slaves/af1d13c0-96f6-42ef-ab3c-abe511849673-S8/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/94c81d48-5f9c-4091-bdee-ca029570df17/runs/9e280e6f-2a09-4675-8949-d860b25f671a/product/lib/modules]
      jimage [list, --include, /java.base/java/util/zip/**, /scratch/mesos/work_dir/slaves/af1d13c0-96f6-42ef-ab3c-abe511849673-S8/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/94c81d48-5f9c-4091-bdee-ca029570df17/runs/9e280e6f-2a09-4675-8949-d860b25f671a/product/lib/modules]
      Invoking testListIncludeNoMatchWithGlob
      jimage [list, --include, not_matching, /scratch/mesos/work_dir/slaves/af1d13c0-96f6-42ef-ab3c-abe511849673-S8/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/94c81d48-5f9c-4091-bdee-ca029570df17/runs/9e280e6f-2a09-4675-8949-d860b25f671a/product/lib/modules]
      Invoking testListIncludeAllWithExplicitGlob
      jimage [list, /scratch/mesos/work_dir/slaves/af1d13c0-96f6-42ef-ab3c-abe511849673-S8/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/94c81d48-5f9c-4091-bdee-ca029570df17/runs/9e280e6f-2a09-4675-8949-d860b25f671a/product/lib/modules]
      jimage [list, --include, glob:**, /scratch/mesos/work_dir/slaves/af1d13c0-96f6-42ef-ab3c-abe511849673-S8/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/94c81d48-5f9c-4091-bdee-ca029570df17/runs/9e280e6f-2a09-4675-8949-d860b25f671a/product/lib/modules]
      Invoking testListIncludeAllWithRegex
      jimage [list, /scratch/mesos/work_dir/slaves/af1d13c0-96f6-42ef-ab3c-abe511849673-S8/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/94c81d48-5f9c-4091-bdee-ca029570df17/runs/9e280e6f-2a09-4675-8949-d860b25f671a/product/lib/modules]
      jimage [list, --include, regex:.*, /scratch/mesos/work_dir/slaves/af1d13c0-96f6-42ef-ab3c-abe511849673-S8/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/94c81d48-5f9c-4091-bdee-ca029570df17/runs/9e280e6f-2a09-4675-8949-d860b25f671a/product/lib/modules]
      Invoking testListIncludeWithRegex
      jimage [list, /scratch/mesos/work_dir/slaves/af1d13c0-96f6-42ef-ab3c-abe511849673-S8/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/94c81d48-5f9c-4091-bdee-ca029570df17/runs/9e280e6f-2a09-4675-8949-d860b25f671a/product/lib/modules]
      jimage [list, --include, regex:/java.base/java/text/.*, /scratch/mesos/work_dir/slaves/af1d13c0-96f6-42ef-ab3c-abe511849673-S8/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/94c81d48-5f9c-4091-bdee-ca029570df17/runs/9e280e6f-2a09-4675-8949-d860b25f671a/product/lib/modules]
      Invoking testListIncludeNoMatchWithRegex
      jimage [list, --include, regex:not_matching, /scratch/mesos/work_dir/slaves/af1d13c0-96f6-42ef-ab3c-abe511849673-S8/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/94c81d48-5f9c-4091-bdee-ca029570df17/runs/9e280e6f-2a09-4675-8949-d860b25f671a/product/lib/modules]
      Invoking testListIncludeMultiplePatterns
      jimage [list, /scratch/mesos/work_dir/slaves/af1d13c0-96f6-42ef-ab3c-abe511849673-S8/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/94c81d48-5f9c-4091-bdee-ca029570df17/runs/9e280e6f-2a09-4675-8949-d860b25f671a/product/lib/modules]
      jimage [list, --include, glob:/java.base/java/time/**,regex:/java.base/java/util/zip/.*, /scratch/mesos/work_dir/slaves/af1d13c0-96f6-42ef-ab3c-abe511849673-S8/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/94c81d48-5f9c-4091-bdee-ca029570df17/runs/9e280e6f-2a09-4675-8949-d860b25f671a/product/lib/modules]
      Invoking testListNoImageSpecified
      jimage [list, ]
      ----------System.err:(45/3074)----------
      java.lang.StringIndexOutOfBoundsException: String index out of range: 0
      at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:45)
      at java.base/java.lang.String.charAt(String.java:704)
      at jdk.jlink/jdk.tools.jlink.internal.TaskHelper$OptionsHelper.handleOptions(TaskHelper.java:530)
      at jdk.jlink/jdk.tools.jlink.internal.TaskHelper$OptionsHelper.handleOptions(TaskHelper.java:482)
      at jdk.jlink/jdk.tools.jimage.JImageTask.run(JImageTask.java:174)
      at jdk.jlink/jdk.tools.jimage.Main.run(Main.java:48)
      at JImageCliTest.jimage(JImageCliTest.java:78)
      at JImageListTest.testListNoImageSpecified(JImageListTest.java:191)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:537)
      at JImageCliTest.runTests(JImageCliTest.java:111)
      at JImageListTest.main(JImageListTest.java:226)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:537)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:226)
      at java.base/java.lang.Thread.run(Thread.java:844)
      java.lang.reflect.InvocationTargetException
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:537)
      at JImageCliTest.runTests(JImageCliTest.java:111)
      at JImageListTest.main(JImageListTest.java:226)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:537)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:226)
      at java.base/java.lang.Thread.run(Thread.java:844)
      Caused by: java.lang.RuntimeException: Output contains error, output=[]
      : expected true, was false
      at jdk.test.lib.Asserts.fail(Asserts.java:594)
      at jdk.test.lib.Asserts.assertTrue(Asserts.java:486)
      at JImageCliTest$JImageResult.assertShowsError(JImageCliTest.java:96)
      at JImageListTest.testListNoImageSpecified(JImageListTest.java:193)
      ... 12 more

            dkononenko Denis Kononenko
            xiaofeya Xiaofeng Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: