test/tools/javac/enum/6350057/T6350057.java

changeset 1054
111bbf1ad913
parent 554
9d9f26857129
child 1466
b52a38d4536c
     1.1 --- a/test/tools/javac/enum/6350057/T6350057.java	Fri Jul 01 14:28:19 2011 -0700
     1.2 +++ b/test/tools/javac/enum/6350057/T6350057.java	Tue Jul 05 16:37:24 2011 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -23,10 +23,11 @@
    1.11  
    1.12  /*
    1.13   * @test
    1.14 - * @bug 6350057
    1.15 + * @bug 6350057 7025809
    1.16   * @summary Test that parameters on implicit enum methods have the right kind
    1.17   * @author  Joseph D. Darcy
    1.18 - * @compile T6350057.java
    1.19 + * @library ../../lib
    1.20 + * @build   JavacTestingAbstractProcessor T6350057
    1.21   * @compile -processor T6350057 -proc:only TestEnum.java
    1.22   */
    1.23  
    1.24 @@ -38,9 +39,8 @@
    1.25  import javax.lang.model.util.*;
    1.26  import static javax.tools.Diagnostic.Kind.*;
    1.27  
    1.28 -@SupportedAnnotationTypes("*")
    1.29 -public class T6350057 extends AbstractProcessor {
    1.30 -    static class LocalVarAllergy extends ElementKindVisitor6<Boolean, Void> {
    1.31 +public class T6350057 extends JavacTestingAbstractProcessor {
    1.32 +    static class LocalVarAllergy extends ElementKindVisitor<Boolean, Void> {
    1.33          @Override
    1.34          public Boolean visitTypeAsEnum(TypeElement e, Void v) {
    1.35              System.out.println("visitTypeAsEnum: " + e.getSimpleName().toString());

mercurial