X Tutup
Skip to content

Commit eafdd53

Browse files
author
jossonsmith
committed
Fixed a bug that member intialization is incorrect when extending the class TestSuite
1 parent 0d60b6f commit eafdd53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sources/net.sf.j2s.java.junit/src/junit/framework/TestSuite.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@
2828
*/
2929
public class TestSuite implements Test {
3030

31-
private Vector fTests= new Vector(10);
31+
private Vector fTests;//= new Vector(10);
3232
private String fName;
3333

3434
/**
3535
* Constructs an empty TestSuite.
3636
*/
3737
public TestSuite() {
38+
fTests = new Vector(10);
3839
}
3940

4041
/**
@@ -53,6 +54,7 @@ public TestSuite(Class theClass, String name) {
5354
* Kanton Uri
5455
*/
5556
public TestSuite(final Class theClass) {
57+
fTests = new Vector(10);
5658
fName= theClass.getName();
5759
try {
5860
getTestConstructor(theClass); // Avoid generating multiple error messages

0 commit comments

Comments
 (0)
X Tutup