harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r395530 - in /incubator/harmony/enhanced/classlib/trunk/modules/beans/src: main/java/java/beans/IntrospectionException.java test/java/org/apache/harmony/tests/java/beans/IntrospectionExceptionTest.java
Date Thu, 20 Apr 2006 08:27:41 GMT
Author: smishura
Date: Thu Apr 20 01:27:37 2006
New Revision: 395530

URL: http://svn.apache.org/viewcvs?rev=395530&view=rev
Log:
Apply patch for HARMONY-235 (IntrospectionException message is not returned by getMessage)

Added:
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/tests/java/beans/IntrospectionExceptionTest.java
  (with props)
Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/IntrospectionException.java
  (contents, props changed)

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/IntrospectionException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/IntrospectionException.java?rev=395530&r1=395529&r2=395530&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/IntrospectionException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/IntrospectionException.java
Thu Apr 20 01:27:37 2006
@@ -27,12 +27,10 @@
 
 public class IntrospectionException extends Exception {
     
-    String message;
-
     /**
      * @com.intel.drl.spec_ref
      */
     public IntrospectionException(String message) {
-        this.message = message;
+        super(message);
     }
 }

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/IntrospectionException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/tests/java/beans/IntrospectionExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/tests/java/beans/IntrospectionExceptionTest.java?rev=395530&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/tests/java/beans/IntrospectionExceptionTest.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/tests/java/beans/IntrospectionExceptionTest.java
Thu Apr 20 01:27:37 2006
@@ -0,0 +1,29 @@
+/*
+ *  Copyright 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package org.apache.harmony.tests.java.beans;
+
+import junit.framework.TestCase;
+import java.beans.IntrospectionException;
+
+public class IntrospectionExceptionTest extends TestCase {
+
+    public void testIntrospectionExceptionMessage() {
+        IntrospectionException e = new IntrospectionException("test message");
+        assertEquals("test message", e.getMessage());
+    }
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/tests/java/beans/IntrospectionExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message