changeset 2851:e1772bcdf768

Use the copied body instead of the input body.
author wmdietl
date Sun, 15 Sep 2013 00:30:32 -0700
parents 6f595e036db7
children 8894cf49ae1e
files src/share/classes/com/sun/tools/javac/tree/TreeCopier.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/tree/TreeCopier.java	Sun Sep 15 00:27:25 2013 -0700
+++ b/src/share/classes/com/sun/tools/javac/tree/TreeCopier.java	Sun Sep 15 00:30:32 2013 -0700
@@ -234,7 +234,7 @@
     public JCTree visitLabeledStatement(LabeledStatementTree node, P p) {
         JCLabeledStatement t = (JCLabeledStatement) node;
         JCStatement body = copy(t.body, p);
-        return M.at(t.pos).Labelled(t.label, t.body);
+        return M.at(t.pos).Labelled(t.label, body);
     }
 
     public JCTree visitLiteral(LiteralTree node, P p) {