diff options
author | Gary Benson <gbenson@redhat.com> | 2006-10-04 10:21:09 +0000 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2006-10-04 10:21:09 +0000 |
commit | ed8fd21e911018306926d4b932a7043f0661481e (patch) | |
tree | cdc0aef847c2ebaf980266cf7112be823df39227 | |
parent | d0ef88c643b4afb829369e643e81ba8cfc0f4121 (diff) | |
download | classpath-ed8fd21e911018306926d4b932a7043f0661481e.tar.gz |
2006-10-04 Gary Benson <gbenson@redhat.com>
* java/net/InetAddress.java: Updated javadoc.
(<clinit>, getByLiteral): Throw InternalError on failures.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | java/net/InetAddress.java | 8 |
2 files changed, 9 insertions, 4 deletions
@@ -1,3 +1,8 @@ +2006-10-04 Gary Benson <gbenson@redhat.com> + + * java/net/InetAddress.java: Updated javadoc. + (<clinit>, getByLiteral): Throw InternalError on failures. + 2006-10-03 Francis Kung <fkung@redhat.com> * gnu/java/awt/peer/gtk/CairoGraphics2D.java diff --git a/java/net/InetAddress.java b/java/net/InetAddress.java index f6f97285f..1f2667980 100644 --- a/java/net/InetAddress.java +++ b/java/net/InetAddress.java @@ -59,7 +59,7 @@ import java.io.Serializable; * @author Per Bothner * @author Gary Benson (gbenson@redhat.com) * - * @specnote This class is not final since JK 1.4 + * @specnote This class is not final since JDK 1.4 */ public class InetAddress implements Serializable { @@ -87,7 +87,7 @@ public class InetAddress implements Serializable } catch (UnknownHostException e) { - throw new RuntimeException("should never happen", e); + throw (InternalError) new InternalError().initCause(e); } ANY_IF.hostName = ANY_IF.getHostName(); } @@ -104,7 +104,7 @@ public class InetAddress implements Serializable } catch (UnknownHostException e) { - throw new RuntimeException("should never happen", e); + throw (InternalError) new InternalError().initCause(e); } } @@ -522,7 +522,7 @@ public class InetAddress implements Serializable } catch (UnknownHostException e) { - throw new RuntimeException("should never happen", e); + throw (InternalError) new InternalError().initCause(e); } } |