commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r178841 - /jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/TestBean.java
Date Fri, 27 May 2005 23:40:33 GMT
Author: niallp
Date: Fri May 27 16:40:30 2005
New Revision: 178841

URL: http://svn.apache.org/viewcvs?rev=178841&view=rev
Log:
Fix Bug 34824 - WrapDynaBeanTestCase failing with jikes/kaffe because of static List in TestBean

Modified:
    jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/TestBean.java

Modified: jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/TestBean.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/TestBean.java?rev=178841&r1=178840&r2=178841&view=diff
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/TestBean.java
(original)
+++ jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/TestBean.java
Fri May 27 16:40:30 2005
@@ -37,6 +37,11 @@
     // ----------------------------------------------------------- Constructors
 
     public TestBean() {
+        listIndexed.add("String 0");
+        listIndexed.add("String 1");
+        listIndexed.add("String 2");
+        listIndexed.add("String 3");
+        listIndexed.add("String 4");
     }
 
     public TestBean(String stringProperty) {
@@ -230,15 +235,7 @@
     /**
      * A List property accessed as an indexed property.
      */
-    private static List listIndexed = new ArrayList();
-
-    static {
-        listIndexed.add("String 0");
-        listIndexed.add("String 1");
-        listIndexed.add("String 2");
-        listIndexed.add("String 3");
-        listIndexed.add("String 4");
-    }
+    private List listIndexed = new ArrayList();
 
     public List getListIndexed() {
         return (listIndexed);



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message