Details
-
Enhancement
-
Resolution: Fixed
-
P4
-
8u20
-
None
-
b02
-
generic
-
generic
Backports
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 |
Description
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
}
}
Attachments
Issue Links
- 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
-