TestGetElement.java revision 671
a63994ebbdcbf00a73d14fb9c19779c88411f802jvergara * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
a63994ebbdcbf00a73d14fb9c19779c88411f802jvergara * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a63994ebbdcbf00a73d14fb9c19779c88411f802jvergara * This code is free software; you can redistribute it and/or modify it
a63994ebbdcbf00a73d14fb9c19779c88411f802jvergara * under the terms of the GNU General Public License version 2 only, as
a63994ebbdcbf00a73d14fb9c19779c88411f802jvergara * published by the Free Software Foundation.
a63994ebbdcbf00a73d14fb9c19779c88411f802jvergara * This code is distributed in the hope that it will be useful, but WITHOUT
a63994ebbdcbf00a73d14fb9c19779c88411f802jvergara * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a63994ebbdcbf00a73d14fb9c19779c88411f802jvergara * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a63994ebbdcbf00a73d14fb9c19779c88411f802jvergara * version 2 for more details (a copy is included in the LICENSE file that
a63994ebbdcbf00a73d14fb9c19779c88411f802jvergara * accompanied this code).
a63994ebbdcbf00a73d14fb9c19779c88411f802jvergara * You should have received a copy of the GNU General Public License version
a63994ebbdcbf00a73d14fb9c19779c88411f802jvergara * 2 along with this work; if not, write to the Free Software Foundation,
a63994ebbdcbf00a73d14fb9c19779c88411f802jvergara * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a63994ebbdcbf00a73d14fb9c19779c88411f802jvergara * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
a63994ebbdcbf00a73d14fb9c19779c88411f802jvergara * or visit www.oracle.com if you need additional information or have any
a63994ebbdcbf00a73d14fb9c19779c88411f802jvergara * questions.
62713b44520556f3136c67f8716f905d9a90c463matthew_swift * @bug 6930507
a63994ebbdcbf00a73d14fb9c19779c88411f802jvergara * @summary Symbols for anonymous and local classes made too late for use by java tree API
62713b44520556f3136c67f8716f905d9a90c463matthew_swiftimport static javax.lang.model.util.ElementFilter.*;
62713b44520556f3136c67f8716f905d9a90c463matthew_swiftpublic class TestGetElement extends AbstractProcessor {
62713b44520556f3136c67f8716f905d9a90c463matthew_swift public static void main(String... args) throws Exception {
public TestGetElement() { }
errors++;
int errors;
final boolean last;
int count;
return i2;
return i1;
count++;
if (e == null) {
class MemberClass {
class NestedMemberClass { }
class InnerClassInInit { }
class InnerClassInConstr { }
class InnerClassInMethod { }
class MemberClass {
class NestedMemberClass { }
class InnerClassInInit { }
class InnerClassInConstr { }
class InnerClassInMethod { }