# HG changeset patch # User darcy # Date 1560298851 25200 # Node ID ae3dbc712839bfa9875d4e23469d8a7c01cc3167 # Parent c2398053ee900bc0aa78309c65163bf41e484eb5 7086604: (reflect) Clarifications to javadoc for getGeneric*Type methods in j.l.r Reviewed-by: lancea, abuckley diff -r c2398053ee90 -r ae3dbc712839 src/java.base/share/classes/java/lang/Class.java --- a/src/java.base/share/classes/java/lang/Class.java Tue Jun 11 16:31:37 2019 -0700 +++ b/src/java.base/share/classes/java/lang/Class.java Tue Jun 11 17:20:51 2019 -0700 @@ -917,7 +917,7 @@ * *

If the superclass is a parameterized type, the {@code Type} * object returned must accurately reflect the actual type - * parameters used in the source code. The parameterized type + * arguments used in the source code. The parameterized type * representing the superclass is created if it had not been * created before. See the declaration of {@link * java.lang.reflect.ParameterizedType ParameterizedType} for the @@ -1097,7 +1097,7 @@ * *

If a superinterface is a parameterized type, the * {@code Type} object returned for it must accurately reflect - * the actual type parameters used in the source code. The + * the actual type arguments used in the source code. The * parameterized type representing each superinterface is created * if it had not been created before. See the declaration of * {@link java.lang.reflect.ParameterizedType ParameterizedType} diff -r c2398053ee90 -r ae3dbc712839 src/java.base/share/classes/java/lang/reflect/Executable.java --- a/src/java.base/share/classes/java/lang/reflect/Executable.java Tue Jun 11 16:31:37 2019 -0700 +++ b/src/java.base/share/classes/java/lang/reflect/Executable.java Tue Jun 11 17:20:51 2019 -0700 @@ -266,7 +266,7 @@ * *

If a formal parameter type is a parameterized type, * the {@code Type} object returned for it must accurately reflect - * the actual type parameters used in the source code. + * the actual type arguments used in the source code. * *

If a formal parameter type is a type variable or a parameterized * type, it is created. Otherwise, it is resolved. diff -r c2398053ee90 -r ae3dbc712839 src/java.base/share/classes/java/lang/reflect/Field.java --- a/src/java.base/share/classes/java/lang/reflect/Field.java Tue Jun 11 16:31:37 2019 -0700 +++ b/src/java.base/share/classes/java/lang/reflect/Field.java Tue Jun 11 17:20:51 2019 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -243,9 +243,9 @@ * Returns a {@code Type} object that represents the declared type for * the field represented by this {@code Field} object. * - *

If the {@code Type} is a parameterized type, the - * {@code Type} object returned must accurately reflect the - * actual type parameters used in the source code. + *

If the declared type of the field is a parameterized type, + * the {@code Type} object returned must accurately reflect the + * actual type arguments used in the source code. * *

If the type of the underlying field is a type variable or a * parameterized type, it is created. Otherwise, it is resolved. diff -r c2398053ee90 -r ae3dbc712839 src/java.base/share/classes/java/lang/reflect/Method.java --- a/src/java.base/share/classes/java/lang/reflect/Method.java Tue Jun 11 16:31:37 2019 -0700 +++ b/src/java.base/share/classes/java/lang/reflect/Method.java Tue Jun 11 17:20:51 2019 -0700 @@ -269,7 +269,7 @@ * *

If the return type is a parameterized type, * the {@code Type} object returned must accurately reflect - * the actual type parameters used in the source code. + * the actual type arguments used in the source code. * *

If the return type is a type variable or a parameterized type, it * is created. Otherwise, it is resolved. diff -r c2398053ee90 -r ae3dbc712839 src/java.base/share/classes/java/lang/reflect/TypeVariable.java --- a/src/java.base/share/classes/java/lang/reflect/TypeVariable.java Tue Jun 11 16:31:37 2019 -0700 +++ b/src/java.base/share/classes/java/lang/reflect/TypeVariable.java Tue Jun 11 17:20:51 2019 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -72,7 +72,7 @@ /** * Returns the {@code GenericDeclaration} object representing the - * generic declaration declared this type variable. + * generic declaration declared for this type variable. * * @return the generic declaration declared for this type variable. *