-
Enhancement
-
Resolution: Fixed
-
P4
-
8u20
-
None
-
b02
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8045059 | 8u25 | Sundararajan Athijegannathan | P4 | Resolved | Fixed | b01 |
JDK-8037976 | 8u20 | Sundararajan Athijegannathan | P4 | Resolved | Fixed | b09 |
JDK-8052459 | emb-8u26 | Sundararajan Athijegannathan | P4 | Resolved | Fixed | b18 |
It would be very useful to retrieve the ScriptObjectMirror, Java Exception or any other throwable type.
There is no way to retrieve this informationt without using internal API.
ECMAException ecma = (ECMAException) nex;
if (ecma.getThrown() instanceof ScriptObject) {
ScriptObject so = (ScriptObject) ecma.getThrown();
for (String m : so.getOwnKeys(false)) {
// XXX
}
}
There is no way to retrieve this informationt without using internal API.
ECMAException ecma = (ECMAException) nex;
if (ecma.getThrown() instanceof ScriptObject) {
ScriptObject so = (ScriptObject) ecma.getThrown();
for (String m : so.getOwnKeys(false)) {
// XXX
}
}
- backported by
-
JDK-8037976 NashornException to expose thrown object
-
- Resolved
-
-
JDK-8045059 NashornException to expose thrown object
-
- Resolved
-
-
JDK-8052459 NashornException to expose thrown object
-
- Resolved
-