harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r390226 - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang: IllegalArgumentException.java IllegalStateException.java SecurityException.java UnsupportedOperationException.java
Date Thu, 30 Mar 2006 19:48:59 GMT
Author: tellison
Date: Thu Mar 30 11:48:58 2006
New Revision: 390226

URL: http://svn.apache.org/viewcvs?rev=390226&view=rev
Log:
Apply patch HARMONY-254 ([classlib][luni] Add missing Java 5 constructors to java.lang exceptions)

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/IllegalArgumentException.java
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/IllegalStateException.java
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SecurityException.java
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/UnsupportedOperationException.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/IllegalArgumentException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/IllegalArgumentException.java?rev=390226&r1=390225&r2=390226&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/IllegalArgumentException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/IllegalArgumentException.java
Thu Mar 30 11:48:58 2006
@@ -39,4 +39,23 @@
 	public IllegalArgumentException(String detailMessage) {
 		super(detailMessage);
 	}
+    
+    /**
+     * <p>Constructs a new instance with a message and cause.</p>
+     * @param message The message to assign to this exception.
+     * @param cause The optional cause of this exception; may be <code>null</code>.
+     * @since 1.5
+     */
+    public IllegalArgumentException(String message, Throwable cause) {
+        super(message, cause);
+    }
+    
+    /**
+     * <p>Constructs a new instance with a cause.</p>
+     * @param cause The optional cause of this exception; may be <code>null</code>.
+     * @since 1.5
+     */
+    public IllegalArgumentException(Throwable cause) {
+        super((cause == null ? null : cause.toString()), cause);
+    }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/IllegalStateException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/IllegalStateException.java?rev=390226&r1=390225&r2=390226&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/IllegalStateException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/IllegalStateException.java
Thu Mar 30 11:48:58 2006
@@ -39,4 +39,23 @@
 	public IllegalStateException(String detailMessage) {
 		super(detailMessage);
 	}
+    
+    /**
+     * <p>Constructs a new instance with a message and cause.</p>
+     * @param message The message to assign to this exception.
+     * @param cause The optional cause of this exception; may be <code>null</code>.
+     * @since 1.5
+     */
+    public IllegalStateException(String message, Throwable cause) {
+        super(message, cause);
+    }
+    
+    /**
+     * <p>Constructs a new instance with a cause.</p>
+     * @param cause The optional cause of this exception; may be <code>null</code>.
+     * @since 1.5
+     */
+    public IllegalStateException(Throwable cause) {
+        super((cause == null ? null : cause.toString()), cause);
+    }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SecurityException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SecurityException.java?rev=390226&r1=390225&r2=390226&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SecurityException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SecurityException.java
Thu Mar 30 11:48:58 2006
@@ -38,4 +38,23 @@
 	public SecurityException(String detailMessage) {
 		super(detailMessage);
 	}
+    
+    /**
+     * <p>Constructs a new instance with a message and cause.</p>
+     * @param message The message to assign to this exception.
+     * @param cause The optional cause of this exception; may be <code>null</code>.
+     * @since 1.5
+     */
+    public SecurityException(String message, Throwable cause) {
+        super(message, cause);
+    }
+    
+    /**
+     * <p>Constructs a new instance with a cause.</p>
+     * @param cause The optional cause of this exception; may be <code>null</code>.
+     * @since 1.5
+     */
+    public SecurityException(Throwable cause) {
+        super((cause == null ? null : cause.toString()), cause);
+    }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/UnsupportedOperationException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/UnsupportedOperationException.java?rev=390226&r1=390225&r2=390226&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/UnsupportedOperationException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/UnsupportedOperationException.java
Thu Mar 30 11:48:58 2006
@@ -37,4 +37,23 @@
 	public UnsupportedOperationException(String detailMessage) {
 		super(detailMessage);
 	}
+    
+    /**
+     * <p>Constructs a new instance with a message and cause.</p>
+     * @param message The message to assign to this exception.
+     * @param cause The optional cause of this exception; may be <code>null</code>.
+     * @since 1.5
+     */
+    public UnsupportedOperationException(String message, Throwable cause) {
+        super(message, cause);
+    }
+    
+    /**
+     * <p>Constructs a new instance with a cause.</p>
+     * @param cause The optional cause of this exception; may be <code>null</code>.
+     * @since 1.5
+     */
+    public UnsupportedOperationException(Throwable cause) {
+        super((cause == null ? null : cause.toString()), cause);
+    }
 }



Mime
View raw message