aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr99089/DataClass.java
blob: 91e76763d2993d6ae1f16e54e141fbc6ea808b23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import java.util.Vector;

public class DataClass {
  private Vector<Object> v = new Vector<Object>();
  private Vector<Object> getV() { return v; }

  public static void main(String[]argv) {
    DataClass dc = new DataClass();
    dc.v.add("hello");
    dc.doit();
  }

  public void doit() {
    v.add("world");
  }
}