1.1 --- a/src/share/classes/com/sun/tools/javac/code/Symbol.java Thu Jul 15 16:31:56 2010 +0100 1.2 +++ b/src/share/classes/com/sun/tools/javac/code/Symbol.java Fri Jul 16 19:35:24 2010 -0700 1.3 @@ -993,12 +993,17 @@ 1.4 return data == ElementKind.EXCEPTION_PARAMETER; 1.5 } 1.6 1.7 + public boolean isResourceVariable() { 1.8 + return data == ElementKind.RESOURCE_VARIABLE; 1.9 + } 1.10 + 1.11 public Object getConstValue() { 1.12 // TODO: Consider if getConstValue and getConstantValue can be collapsed 1.13 - if (data == ElementKind.EXCEPTION_PARAMETER) { 1.14 + if (data == ElementKind.EXCEPTION_PARAMETER || 1.15 + data == ElementKind.RESOURCE_VARIABLE) { 1.16 return null; 1.17 } else if (data instanceof Callable<?>) { 1.18 - // In this case, this is final a variable, with an as 1.19 + // In this case, this is a final variable, with an as 1.20 // yet unevaluated initializer. 1.21 Callable<?> eval = (Callable<?>)data; 1.22 data = null; // to make sure we don't evaluate this twice.