-
Bug
-
Resolution: Fixed
-
P5
-
9
-
b59
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084616 | emb-9 | Pavel Rappo | P5 | Resolved | Fixed | team |
Usually exceptions have constructors with parameter of type String as a "detail massage". Sometimes these parameters are misnamed, e.g.:
/**
* Constructs a new {@code ProtocolException} with the
* specified detail message.
*
* @param host the detail message.
*/
public ProtocolException(String host) {
super(host);
}
It can lead to a confusion. Users can be affected by using autocompletion feature or just by reading constructors' definitions. This inconsistency is visible from the javadoc level as well.
/**
* Constructs a new {@code ProtocolException} with the
* specified detail message.
*
* @param host the detail message.
*/
public ProtocolException(String host) {
super(host);
}
It can lead to a confusion. Users can be affected by using autocompletion feature or just by reading constructors' definitions. This inconsistency is visible from the javadoc level as well.
- backported by
-
JDK-8084616 Change parameter names in some IOException subclasses
-
- Resolved
-