--- old/src/share/classes/com/sun/tools/javac/code/Symbol.java 2010-07-14 01:57:37.000000000 -0700 +++ new/src/share/classes/com/sun/tools/javac/code/Symbol.java 2010-07-14 01:57:37.000000000 -0700 @@ -993,12 +993,17 @@ return data == ElementKind.EXCEPTION_PARAMETER; } + public boolean isResourceVariable() { + return data == ElementKind.RESOURCE_VARIABLE; + } + public Object getConstValue() { // TODO: Consider if getConstValue and getConstantValue can be collapsed - if (data == ElementKind.EXCEPTION_PARAMETER) { + if (data == ElementKind.EXCEPTION_PARAMETER || + data == ElementKind.RESOURCE_VARIABLE) { return null; } else if (data instanceof Callable) { - // In this case, this is final a variable, with an as + // In this case, this is a final variable, with an as // yet unevaluated initializer. Callable eval = (Callable)data; data = null; // to make sure we don't evaluate this twice.