changeset 2995:52d2779ddd19

Fix: Missing type-witness on generic method call to map() causes build failures with certain boot JDK
author mcimadamore
date Wed, 03 Jun 2015 14:10:17 +0100
parents 761d199068c7
children 156d2dfb901f
files src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Pool.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Pool.java	Fri May 29 18:51:42 2015 +0100
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Pool.java	Wed Jun 03 14:10:17 2015 +0100
@@ -190,7 +190,7 @@
 
         DynamicMethod(DynamicMethodSymbol m, Types types) {
             super(m, types);
-            uniqueStaticArgs = getUniqueTypeArray(Stream.of(m.staticArgs).map(a -> a.data).toArray(), types);
+            uniqueStaticArgs = getUniqueTypeArray(Stream.of(m.staticArgs).<Object>map(a -> a.data).toArray(), types);
         }
 
         @Override @DefinedBy(Api.LANGUAGE_MODEL)