issues@javamail.java.net

[Bug 5687] New: ContentType.toString and ContentDisposition.toString should never return null

From: <bugzilla-daemon_at_kenai.com>
Date: Fri, 09 Nov 2012 00:19:20 +0000

http://kenai.com/bugzilla/show_bug.cgi?id=5687

             Bug #: 5687
           Summary: ContentType.toString and ContentDisposition.toString
                    should never return null
    Classification: Unclassified
           Product: javamail
           Version: 1.4.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: internet
        AssignedTo: shannon_at_kenai.com
        ReportedBy: shannon_at_kenai.com
                CC: issues_at_javamail.kenai.com


The general contract of the Object.toString method is that it always
returns a non-null value. The JavaMail spec says that null can be
returned in error cases. This should be changed to always return a
value.

This is, of course, an incompatible change, but I think it's justified
to match the general contract of toString.

-- 
Configure bugmail: http://kenai.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.