Test tools/pack200/Pack200Test.java compilation failed

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 9
    • Component/s: 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

            Assignee:
            Kumar Srinivasan
            Reporter:
            Denis Kononenko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: