-
Bug
-
Resolution: Fixed
-
P3
-
6u14
-
h1180
-
generic
-
generic
SAXException.toString() in JDK6 is implemented as follows:
public String toString ()
{
if (exception != null) {
return exception.toString();
} else {
return super.toString();
}
}
while this made sense back in the days when there was no notion of exception chaining, in modern Java, this only has the negative effect of not showing the real message associated with the exception. The toString method should be removed, as the super class already implements a desired behavior.
This change doesn't affect the signature of the classes, so I don't think the spec revision is necessary for this change.
public String toString ()
{
if (exception != null) {
return exception.toString();
} else {
return super.toString();
}
}
while this made sense back in the days when there was no notion of exception chaining, in modern Java, this only has the negative effect of not showing the real message associated with the exception. The toString method should be removed, as the super class already implements a desired behavior.
This change doesn't affect the signature of the classes, so I don't think the spec revision is necessary for this change.
- duplicates
-
JDK-6417758 SAXException needs to be JDK 1.4 friendly
-
- Closed
-