changeset 3295:ade1263cab01

Fix: reference type-arguments should be turned into '_' in ParameterizedType entries
author mcimadamore
date Tue, 26 Jan 2016 15:41:48 +0000
parents d1015b6cf7f4
children ee3dd386c16b
files src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/PoolWriter.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/PoolWriter.java	Tue Jan 26 13:59:03 2016 +0000
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/PoolWriter.java	Tue Jan 26 15:41:48 2016 +0000
@@ -462,7 +462,9 @@
                 try {
                     typeArgPosition = true;
                     typeargs = t.getTypeArguments().stream()
-                            .map(ta -> visit(ta, PoolWriter.this::typeToSig))
+                            .map(ta -> types.isTypeArgumentSpecializable(ta) ?
+                                    visit(ta, PoolWriter.this::typeToSig) :
+                                    makeConstant(types.names.fromString("_")))
                             .toArray(Entry[]::new);
                 } finally {
                     typeArgPosition = prevTypeArgPosition;