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

File.createTempFile has uninformative failure message

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • None
    • 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);

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

              Created:
              Updated:
              Resolved: