-
Bug
-
Resolution: Fixed
-
P2
-
17
-
b31
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8270433 | 18 | Vicente Arturo Romero Zaldivar | P2 | Resolved | Fixed | b06 |
JDK-8270758 | 17.0.1 | Vicente Arturo Romero Zaldivar | P2 | Resolved | Fixed | b03 |
As per the revised documentation for DynamicCallSiteDesc.withArgs:
"NullPointerException - if the argument or its contents are null"
Attached code doesn't throw NPE for argument array containing null:
public class t {
public static boolean m() throws Throwable {
DynamicCallSiteDesc desc = DynamicCallSiteDesc.of(ConstantDescs.ofCallsiteBootstrap(
ClassDesc.of("BootstrapAndTarget"),
"bootstrap2",
ClassDesc.of("java.lang.invoke.CallSite")
),
"getTarget",
MethodTypeDesc.ofDescriptor("()I"));
ConstantDesc[] cd = new ConstantDesc[1];
cd[0] = null;
desc.withArgs(cd);
return true;
}
public static void main(String[] args) throws Throwable {
System.out.println("m: " + m());
}
}
"NullPointerException - if the argument or its contents are null"
Attached code doesn't throw NPE for argument array containing null:
public class t {
public static boolean m() throws Throwable {
DynamicCallSiteDesc desc = DynamicCallSiteDesc.of(ConstantDescs.ofCallsiteBootstrap(
ClassDesc.of("BootstrapAndTarget"),
"bootstrap2",
ClassDesc.of("java.lang.invoke.CallSite")
),
"getTarget",
MethodTypeDesc.ofDescriptor("()I"));
ConstantDesc[] cd = new ConstantDesc[1];
cd[0] = null;
desc.withArgs(cd);
return true;
}
public static void main(String[] args) throws Throwable {
System.out.println("m: " + m());
}
}
- backported by
-
JDK-8270433 DynamicCallSiteDesc::withArgs doesn't throw NPE
-
- Resolved
-
-
JDK-8270758 DynamicCallSiteDesc::withArgs doesn't throw NPE
-
- Resolved
-
- csr for
-
JDK-8270209 java.lang.constant.DynamicCallSiteDesc::of should throw NPE if elements in `bootstrapArgs` is null
-
- Closed
-
- relates to
-
JDK-8210031 implementation for JVM Constants API
-
- Resolved
-
-
JDK-8224158 assertion related to NPE at DynamicCallSiteDesc::withArgs should be reworded
-
- Resolved
-
(2 links to)