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

Test tools/pack200/Pack200Test.java compilation failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 9
    • core-libs

      Test tools/pack200/Pack200Test.java fails during compilation:

      error: unreported exception Exception; must be caught or declared to be thrown
              jarList.add(Utils.createRtJar());
                                           ^
      1 error

      TEST RESULT: Failed. Compilation failed: Compilation failed

      The problem is that Utils.createRtJar has more wider exception specification than Pack200Test.main.

      static File createRtJar(String pattern) throws Exception

      and

      public static void main(String[] args) throws IOException

            ksrini Kumar Srinivasan
            dkononenko Denis Kononenko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: