src/share/classes/com/sun/tools/javac/comp/Attr.java

changeset 1734
8dd528992c15
parent 1697
950e8ac120f0
child 1755
ddb4a2bfcd82
     1.1 --- a/src/share/classes/com/sun/tools/javac/comp/Attr.java	Sun May 12 18:18:54 2013 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/Attr.java	Fri May 10 15:15:50 2013 +0200
     1.3 @@ -1338,7 +1338,7 @@
     1.4                          //check that resource type cannot throw InterruptedException
     1.5                          checkAutoCloseable(resource.pos(), localEnv, resource.type);
     1.6  
     1.7 -                        VarSymbol var = (VarSymbol)TreeInfo.symbolFor(resource);
     1.8 +                        VarSymbol var = ((JCVariableDecl) resource).sym;
     1.9                          var.setData(ElementKind.RESOURCE_VARIABLE);
    1.10                      } else {
    1.11                          attribTree(resource, tryEnv, twrResult);

mercurial