import java.awt.Color;
import java.io.File;
import java.util.ArrayList;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.StringTokenizer;
import java.util.TreeSet;

import javax.swing.JFrame;

public class UCC_Sample {
    private Object[] arrayData;
    private List<Object> listData = new ArrayList<Object>();

    public void test0() {
        TreeSet<Date> tm = new TreeSet<Date>();
        tm.add(new Date());
        tm.add(new Date());
    }

    public void test1() {
        arrayData = new Object[3];
        arrayData[0] = new Integer(1);
        arrayData[1] = new StringTokenizer("this");
        arrayData[2] = new JFrame();
        listData.add(new GregorianCalendar());

    }

    public void test2() {
        listData.add(new UCC_Sample() {
        });
    }

    public void test3() {
        Set<Object> s = new HashSet<Object>();
        s.add(new int[] { 3, 2 });
        s.add(new Color(0, 128, 255));
    }

    public void bug1678805() {
        final File[] files = new File[5];
        for (int i = 0; i < 5; i++)
            files[i] = getPath();

    }

    private File getPath() {
        return new File("c:\\temp");
    }
}
@@ -392,25 +392,63 @@
 rayList%3C
-Object%3E()
+%3E();%0A    private Bean1 b1;%0A    private Bean2 b2
 ;%0A%0A    p
@@ -507,20 +507,16 @@
 TreeSet%3C
-Date
 %3E();%0A   
@@ -966,22 +966,16 @@
 HashSet%3C
-Object
 %3E();%0A   
@@ -1160,16 +1160,18 @@
  5; i++)
+ %7B
 %0A       
@@ -1201,80 +1201,316 @@
 ();%0A
-%0A    %7D%0A%0A    private File getPath() %7B%0A        return new File(%22c:%5C%5Ctemp%22)
+        %7D%0A    %7D%0A%0A    public void fpTwoDifferentFieldSources() %7B%0A        b1.data.add(%22Hello%22);%0A        b2.data.add(5);%0A    %7D%0A%0A    private File getPath() %7B%0A        return new File(%22c:%5C%5Ctemp%22);%0A    %7D%0A%0A    static class Bean1 %7B%0A        List%3CString%3E data;%0A    %7D%0A%0A    static class Bean2 %7B%0A        List%3CInteger%3E data
 ;%0A  

add fp for ucc