From samhooper256 at gmail.com Fri Jun 19 00:38:34 2020 From: samhooper256 at gmail.com (Sam Hooper) Date: Fri, 19 Jun 2020 00:38:34 -0000 Subject: JLS Technical Amguity Message-ID: Hi, There appears to be a technical ambiguity in the JLS 14. The restricted identifier yield is allowed as the name of a type variable when, according to the specification, it should not be. The following compiles fine: class Outer{ class Inner{ void method() {} } } which it should not according to the following productions from JLS 14: TypeParameters: < TypeParameterList > TypeParameterList: TypeParameter {, TypeParameter } TypeParameter: {TypeParameterModifier } TypeIdentifier [TypeBound ] TypeIdentifier: Identifier but not var or yield Thanks for your time. -Sam Hooper