mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8310815: Clarify the name of the main class, services and provider classes in module descriptor
8314449: Clarify the name of the declaring class of StackTraceElement Reviewed-by: alanb
This commit is contained in:
parent
aecbb1b5c3
commit
50a2ce01f4
2 changed files with 21 additions and 22 deletions
|
@ -102,8 +102,9 @@ public final class StackTraceElement implements java.io.Serializable {
|
|||
* #getModuleVersion module version} of the stack trace element will
|
||||
* be {@code null}.
|
||||
*
|
||||
* @param declaringClass the fully qualified name of the class containing
|
||||
* the execution point represented by the stack trace element
|
||||
* @param declaringClass the {@linkplain ClassLoader##binary-name binary name}
|
||||
* of the class containing the execution point represented by
|
||||
* the stack trace element
|
||||
* @param methodName the name of the method containing the execution point
|
||||
* represented by the stack trace element
|
||||
* @param fileName the name of the file containing the execution point
|
||||
|
@ -137,8 +138,9 @@ public final class StackTraceElement implements java.io.Serializable {
|
|||
* @param moduleVersion the module version if the class containing the
|
||||
* execution point represented by the stack trace is in a named
|
||||
* module that has a version; otherwise {@code null}
|
||||
* @param declaringClass the fully qualified name of the class containing
|
||||
* the execution point represented by the stack trace element
|
||||
* @param declaringClass the {@linkplain ClassLoader##binary-name binary name}
|
||||
* of the class containing the execution point represented by
|
||||
* the stack trace element
|
||||
* @param methodName the name of the method containing the execution point
|
||||
* represented by the stack trace element
|
||||
* @param fileName the name of the file containing the execution point
|
||||
|
@ -249,11 +251,9 @@ public final class StackTraceElement implements java.io.Serializable {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the fully qualified name of the class containing the
|
||||
* execution point represented by this stack trace element.
|
||||
*
|
||||
* @return the fully qualified name of the {@code Class} containing
|
||||
* the execution point represented by this stack trace element.
|
||||
* {@return the {@linkplain ClassLoader##binary-name binary name}
|
||||
* of the {@code Class} containing the execution point represented
|
||||
* by this stack trace element}
|
||||
*/
|
||||
public String getClassName() {
|
||||
return declaringClass;
|
||||
|
@ -332,7 +332,7 @@ public final class StackTraceElement implements java.io.Serializable {
|
|||
* the name of the class loader. The second element "{@code foo@9.0}"
|
||||
* is the module name and version. The third element is the method
|
||||
* containing the execution point; "{@code com.foo.Main"}" is the
|
||||
* fully-qualified class name and "{@code run}" is the name of the method.
|
||||
* binary name and "{@code run}" is the name of the method.
|
||||
* "{@code Main.java}" is the source file name and "{@code 101}" is
|
||||
* the line number.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue