You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by sm...@apache.org on 2006/04/20 10:46:09 UTC
svn commit: r395535 - in
/incubator/harmony/enhanced/classlib/trunk/modules/beans/src:
main/java/java/beans/PropertyVetoException.java
test/java/org/apache/harmony/tests/java/beans/PropertyVetoExceptionTest.java
Author: smishura
Date: Thu Apr 20 01:46:07 2006
New Revision: 395535
URL: http://svn.apache.org/viewcvs?rev=395535&view=rev
Log:
Fixing the same bug as described in HARMONY-235
Added:
incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/tests/java/beans/PropertyVetoExceptionTest.java (with props)
Modified:
incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/PropertyVetoException.java (contents, props changed)
Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/PropertyVetoException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/PropertyVetoException.java?rev=395535&r1=395534&r2=395535&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/PropertyVetoException.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/PropertyVetoException.java Thu Apr 20 01:46:07 2006
@@ -27,14 +27,13 @@
public class PropertyVetoException extends Exception {
- private String message;
private PropertyChangeEvent event;
/**
* @com.intel.drl.spec_ref
*/
public PropertyVetoException(String message, PropertyChangeEvent event) {
- this.message = message;
+ super(message);
this.event = event;
}
Propchange: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/PropertyVetoException.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/tests/java/beans/PropertyVetoExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/tests/java/beans/PropertyVetoExceptionTest.java?rev=395535&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/tests/java/beans/PropertyVetoExceptionTest.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/tests/java/beans/PropertyVetoExceptionTest.java Thu Apr 20 01:46:07 2006
@@ -0,0 +1,37 @@
+/*
+ * 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 java.beans.Beans;
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyVetoException;
+
+import junit.framework.TestCase;
+
+public class PropertyVetoExceptionTest extends TestCase {
+
+ public void testIntrospectionExceptionMessage() {
+
+ PropertyChangeEvent event = new PropertyChangeEvent(new Beans(),
+ "propertyName", "oldValue", "newValue");
+
+ String message = "test message";
+
+ PropertyVetoException e = new PropertyVetoException(message, event);
+ assertEquals(message, e.getMessage());
+ }
+}
Propchange: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/tests/java/beans/PropertyVetoExceptionTest.java
------------------------------------------------------------------------------
svn:eol-style = native