File.createTempFile has uninformative failure message

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: None
    • Component/s: core-libs
    • None
    • b22
    • generic
    • generic
    • Verified

      java.io.File, lines 33 and 34, reads:

      if (prefix.length() < 3)
                  throw new IllegalArgumentException("Prefix string too short");

      That's really not terribly informative. We should be able to change it to:

      if (prefix.length() < 3)
                  throw new IllegalArgumentException("Prefix string too short" + prefix);

            Assignee:
            Jeremy Manson (Inactive)
            Reporter:
            Jeremy Manson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: