changeset 48845:f4627cb71794 mvt

Restore check for ensuring that explicit type arguments to a generic method invocation are reference types - Seems to have been deleted inadvertently many moons ago
author sadayapalam
date Mon, 12 Feb 2018 17:14:42 +0530
parents c7db447dd9d0
children ea2d4aa408e2
files src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java	Fri Feb 02 12:03:42 2018 +0100
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java	Mon Feb 12 17:14:42 2018 +0530
@@ -2032,6 +2032,8 @@
             Symbol msym = TreeInfo.symbol(tree.meth);
             restype = adjustMethodReturnType(msym, qualifier, methName, argtypes, restype);
 
+            chk.checkRefTypes(tree.typeargs, typeargtypes);
+
             // identity hash code is uncomputable for value instances.
             final Symbol symbol = TreeInfo.symbol(tree.meth);
             if (symbol != null && symbol.name == names.identityHashCode && symbol.owner.flatName() == names.java_lang_System) {