(fmt) wrong exception thrown for too-large index

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P4
    • None
    • Affects Version/s: 5.0
    • Component/s: core-libs
    • generic
    • solaris_8

      The following program, when run with -esa, throws an assertion error.
      According to spec it should throw MissingFormatArgumentException.

      class B {
          public static void main(String[] args) {
              System.out.printf("%9999999999$g%n", 12.0);
          }
      }

            Assignee:
            Unassigned
            Reporter:
            Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: