--- a/nashorn/src/jdk/nashorn/internal/ir/TryNode.java Tue May 07 14:36:57 2013 +0200
+++ b/nashorn/src/jdk/nashorn/internal/ir/TryNode.java Tue May 07 14:43:17 2013 +0200
@@ -37,7 +37,7 @@
* IR representation of a TRY statement.
*/
@Immutable
-public final class TryNode extends Node {
+public final class TryNode extends Statement {
/** Try statements. */
private final Block body;
@@ -59,26 +59,27 @@
/**
* Constructor
*
+ * @param lineNumber lineNumber
* @param token token
* @param finish finish
* @param body try node body
* @param catchBlocks list of catch blocks in order
* @param finallyBody body of finally block or null if none
*/
- public TryNode(final long token, final int finish, final Block body, final List<Block> catchBlocks, final Block finallyBody) {
- super(token, finish);
- this.body = body;
+ public TryNode(final int lineNumber, final long token, final int finish, final Block body, final List<Block> catchBlocks, final Block finallyBody) {
+ super(lineNumber, token, finish);
+ this.body = body;
this.catchBlocks = catchBlocks;
this.finallyBody = finallyBody;
- this.exit = new Label("exit");
+ this.exit = new Label("exit");
}
private TryNode(final TryNode tryNode, final Block body, final List<Block> catchBlocks, final Block finallyBody) {
super(tryNode);
- this.body = body;
+ this.body = body;
this.catchBlocks = catchBlocks;
this.finallyBody = finallyBody;
- this.exit = new Label(tryNode.exit);
+ this.exit = new Label(tryNode.exit);
}
@Override