United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8001108 : an attempt to use "" as a method name should elicit NoSuchMethodException

Details
Type:
Bug
Submit Date:
2012-10-18
Status:
Closed
Updated Date:
2014-07-15
Project Name:
JDK
Resolved Date:
2013-10-05
Component:
core-libs
OS:
Sub-Component:
java.lang.invoke
CPU:
Priority:
P4
Resolution:
Fixed
Affected Versions:
7,8-pool
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:

Sub Tasks

Description
When findVirtual (etc.) is presented with the special name <init>, the answer should always be the same as if some other illegal name (<foo>) were presented, regardless of whether there happens to be a matching constructor present.

This is a gray area in the JSR 292 spec.

The existing OpenJDK behavior is to refuse to admit that a "method" named <init> exists.  We will document this behavior as the standard.
                                    

Comments
Nighlty resulsts for 7u71 are ok. SQE OK to take the 7u backport to CPU14_03.
                                     
2014-04-14
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/acdf5bf1a918
User:  lana
Date:  2013-10-11 18:24:46 +0000

                                     
2013-10-11
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/acdf5bf1a918
User:  jrose
Date:  2013-10-05 12:34:17 +0000

                                     
2013-10-05
webrev: http://cr.openjdk.java.net/~jrose/8001108/webrev.00
                                     
2013-09-13
http://hg.openjdk.java.net/mlvm/mlvm/jdk/file/tip/meth.patch
                                     
2012-10-18



Hardware and Software, Engineered to Work Together