, Java 5. JLS Third Edition, Java 5 6:
8.8.7.1
ExplicitConstructorInvocation:
NonWildTypeArgumentsopt this ( ArgumentListopt ) ;
NonWildTypeArgumentsopt super ( ArgumentListopt ) ;
Primary. NonWildTypeArgumentsopt super ( ArgumentListopt ) ;
NonWildTypeArguments:
< ReferenceTypeList >
ReferenceTypeList:
ReferenceType
ReferenceTypeList , ReferenceType
15.12
MethodInvocation:
MethodName ( ArgumentListopt )
Primary . NonWildTypeArgumentsopt Identifier ( ArgumentListopt )
super . NonWildTypeArgumentsopt Identifier ( ArgumentListopt )
ClassName . super . NonWildTypeArgumentsopt Identifier ( ArgumentListopt )
TypeName . NonWildTypeArguments Identifier ( ArgumentListopt )
Please note that they are called NonWildTypeArguments. The term Type Witness does not appear in JLS. In JLS SE 8, call specifications are rewritten to use a preexisting concept TypeArguments; and the word "witness" is still missing.
( MethodNamealready includes TypeName.Identifier, so the fifth method call defines the explicit use of the Type Witness, so it is not marked as optional.)
source
share