svn commit: r178841 - /jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/TestBean.java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r178841 - /jakarta/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/TestBean.java

Niall Pemberton-3
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: [hidden email]
For additional commands, e-mail: [hidden email]