diff options
Diffstat (limited to 'libjava/java/nio/charset/UnsupportedCharsetException.java')
-rw-r--r-- | libjava/java/nio/charset/UnsupportedCharsetException.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libjava/java/nio/charset/UnsupportedCharsetException.java b/libjava/java/nio/charset/UnsupportedCharsetException.java index 13aaa520524..beb0be96df3 100644 --- a/libjava/java/nio/charset/UnsupportedCharsetException.java +++ b/libjava/java/nio/charset/UnsupportedCharsetException.java @@ -38,16 +38,25 @@ exception statement from your version. */ package java.nio.charset; /** + * @author Michael Koch * @since 1.4 */ public class UnsupportedCharsetException extends IllegalArgumentException { /** + * Compatible with JDK 1.4+ + */ + private static final long serialVersionUID = 1490765524727386367L; + + String charsetName; + + /** * Creates the exception */ public UnsupportedCharsetException (String charsetName) { - super (charsetName); + super (); + this.charsetName = charsetName; } /** @@ -55,6 +64,6 @@ public class UnsupportedCharsetException extends IllegalArgumentException */ public String getCharsetName () { - return getMessage (); + return charsetName; } } |