Tue, 10 Apr 2012 08:15:25 -0700
7074397: Build infrastructure changes (makefile re-write)
Summary: New makefiles transition, old and new living side by side for now.
Reviewed-by: ohair, jjg, dholmes, ohrstrom, erikj, ihse, tgranat, ykantser
Contributed-by: ohrstrom <fredrik.ohrstrom@oracle.com>, erikj <erik.joelsson@oracle.com>, ihse <magnus.ihse.bursie@oracle.com>, tgranat <torbjorn.granat@oracle.com>, ykantser <yekaterina.kantserova@oracle.com>
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 6253161
4 * @summary Compiler will fail to find the correct location of serial warnings for anonymous inner classes
5 * @author Seetharama Avadhanam
6 * @compile -Xlint:serial -XDdev T6253161.java
7 * @compile/ref=T6253161.out -Xlint:serial -XDdev -XDrawDiagnostics T6253161.java
8 */
9 import java.util.List;
10 import java.util.ArrayList;
12 public class T6253161 {
13 @SuppressWarnings("unchecked")
14 public void anonymousMethod(){
15 List list = new ArrayList<String>(){
16 static final long serialVersionUID = 1;
17 List list = new ArrayList<Integer>();
18 public List<Integer> getMyList(){
19 final List floatList = new ArrayList<Float>(){
20 List integerList = new ArrayList<Float>();
21 public List<Float> getMyList(){
22 for(int i=0;i<10;i++)
23 integerList.add((int)((Float.parseFloat(i+""))+(1.11F)));
24 return (List)(Object)integerList;
25 }
26 public void testMethods(){
27 //...
28 }
29 }.getMyList();
30 for(int i=0;i<10;i++)
31 list.add((Float)(floatList.get(i)) * 11.232F * i);
32 return list;
33 }
34 }.getMyList();
35 }
36 }