--- old/src/share/classes/javax/lang/model/util/ElementScanner7.java 2011-02-01 10:09:21.000000000 -0800 +++ new/src/share/classes/javax/lang/model/util/ElementScanner7.java 2011-02-01 10:09:20.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -105,4 +105,16 @@ protected ElementScanner7(R defaultValue){ super(defaultValue); } + + /** + * This implementation scans the enclosed elements. + * + * @param e {@inheritDoc} + * @param p {@inheritDoc} + * @return the result of scanning + */ + @Override + public R visitVariable(VariableElement e, P p) { + return scan(e.getEnclosedElements(), p); + } }