diff --git a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java index 0cadd7ba05b..a8ae2ed8246 100644 --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java @@ -4470,7 +4470,8 @@ public void visitSelect(JCFieldAccess tree) { } if (types.isParametric(site)) { - chk.warnNullableTypes(tree.selected, Warnings.AccessingMemberOfParametric); + // see JDK-8339087 + //chk.warnNullableTypes(tree.selected, Warnings.AccessingMemberOfParametric); } // don't allow T.class T[].class, etc diff --git a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Flow.java b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Flow.java index 1b8995aef91..75ef7e3e2da 100644 --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Flow.java +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Flow.java @@ -2312,7 +2312,8 @@ void checkInit(DiagnosticPosition pos, VarSymbol sym, Error errkey) { if (types.isNonNullable(sym.type)) { log.warning(pos, Warnings.NonNullableShouldBeInitialized); } else { - log.warning(pos, Warnings.ParametricShouldBeInitialized); + // see JDK-8339087 + //log.warning(pos, Warnings.ParametricShouldBeInitialized); } } } else {