提交 fac29fe5 编写于 作者: D darcy

6294399: (reflect) Constructor.getName() returns fully qualified name of declaring class

Reviewed-by: alanb
上级 60c217d4
...@@ -166,8 +166,7 @@ public final ...@@ -166,8 +166,7 @@ public final
/** /**
* Returns the name of this constructor, as a string. This is * Returns the name of this constructor, as a string. This is
* always the same as the simple name of the constructor's declaring * the binary name of the constructor's declaring class.
* class.
*/ */
public String getName() { public String getName() {
return getDeclaringClass().getName(); return getDeclaringClass().getName();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册