-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
7
-
generic
-
generic
If it intentionally accepts both forms then that should be clarifed in javadoc.
Please see the minimized test below to reproduce the issue.
Minimized test:
===============
$ cat Test.java
import java.lang.invoke.*;
public class Test {
public static void main(String[] args) throws Exception {
for (String d : new String[] {"(Ljava/lang/Object;)V", "(Ljava.lang.Object;)V"}) {
MethodType.fromMethodDescriptorString(d, null);
System.out.println("OK");
}
}
}
Minimized test output:
========================
$ javac Test.java
$ java -showversion -verify Test
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b138)
Java HotSpot(TM) Server VM (build 21.0-b08, mixed mode)
OK
OK
Please see the minimized test below to reproduce the issue.
Minimized test:
===============
$ cat Test.java
import java.lang.invoke.*;
public class Test {
public static void main(String[] args) throws Exception {
for (String d : new String[] {"(Ljava/lang/Object;)V", "(Ljava.lang.Object;)V"}) {
MethodType.fromMethodDescriptorString(d, null);
System.out.println("OK");
}
}
}
Minimized test output:
========================
$ javac Test.java
$ java -showversion -verify Test
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b138)
Java HotSpot(TM) Server VM (build 21.0-b08, mixed mode)
OK
OK
- duplicates
-
JDK-7044892 JSR 292: API entry points sometimes throw the wrong exceptions or doesn't throw the expected one
-
- Closed
-
- relates to
-
JDK-7032323 code changes for JSR 292 EG adjustments to API, through Public Review
-
- Closed
-
-
JDK-7038844 MethodType.fromMethodDescriptorString throws unspecified NPE
-
- Closed
-