test/tools/javac/processing/model/util/TypesBadArg.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2006, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2006, 2010, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 24,52 ****
/*
* @test
* @bug 6345812
* @summary Validate argument kinds in Types utilities
* @author Scott Seligman
! * @build TypesBadArg
* @compile -processor TypesBadArg -proc:only TypesBadArg.java
*/
import java.util.Set;
import javax.annotation.processing.*;
import javax.lang.model.element.*;
import javax.lang.model.type.*;
import javax.lang.model.util.*;
! @SupportedAnnotationTypes("*")
! public class TypesBadArg extends AbstractProcessor {
!
boolean success = true;
- public void init(ProcessingEnvironment penv) {
- super.init(penv);
- }
-
public boolean process(Set<? extends TypeElement> tes,
RoundEnvironment round) {
if (round.processingOver()) return true;
final Elements elements = processingEnv.getElementUtils();
--- 24,47 ----
/*
* @test
* @bug 6345812
* @summary Validate argument kinds in Types utilities
* @author Scott Seligman
! * @library ../../../lib
! * @build JavacTestingAbstractProcessor TypesBadArg
* @compile -processor TypesBadArg -proc:only TypesBadArg.java
*/
import java.util.Set;
import javax.annotation.processing.*;
import javax.lang.model.element.*;
import javax.lang.model.type.*;
import javax.lang.model.util.*;
! public class TypesBadArg extends JavacTestingAbstractProcessor {
boolean success = true;
public boolean process(Set<? extends TypeElement> tes,
RoundEnvironment round) {
if (round.processingOver()) return true;
final Elements elements = processingEnv.getElementUtils();