< prev index next >

test/langtools/tools/javac/generics/UnsoundInference.java

Print this page
*** 11,11 ***
  import java.util.Collection;
  
  public class UnsoundInference {
  
      public static void main(String[] args) {
!         Object[] objArray = {new Object()};
          ArrayList<String> strList = new ArrayList<String>();
          transferBug(objArray, strList);
          String str = strList.get(0);
      }
  
--- 11,11 ---
  import java.util.Collection;
  
  public class UnsoundInference {
  
      public static void main(String[] args) {
!         Object[] objArray = {new Object() {}};
          ArrayList<String> strList = new ArrayList<String>();
          transferBug(objArray, strList);
          String str = strList.get(0);
      }
  
< prev index next >