--- old/make/build.properties 2009-07-26 21:26:06.000000000 -0700 +++ new/make/build.properties 2009-07-26 21:26:06.000000000 -0700 @@ -68,7 +68,7 @@ # set the following to -version to verify the versions of javac being used javac.version.opt = # in time, there should be no exceptions to -Xlint:all -javac.lint.opts = -Xlint:all -Werror +javac.lint.opts = -Xlint:all,-deprecation -Werror # options for the task for javac javadoc.jls3.url=http://java.sun.com/docs/books/jls/ --- old/src/share/classes/com/sun/mirror/apt/AnnotationProcessor.java 2009-07-26 21:26:06.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/apt/AnnotationProcessor.java 2009-07-26 21:26:06.000000000 -0700 @@ -50,11 +50,17 @@ * annotations of those types. It may freely examine any other program * elements in the course of its processing. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.annotation.processing.Processor}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface AnnotationProcessor { /** --- old/src/share/classes/com/sun/mirror/apt/AnnotationProcessorEnvironment.java 2009-07-26 21:26:07.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/apt/AnnotationProcessorEnvironment.java 2009-07-26 21:26:07.000000000 -0700 @@ -48,11 +48,17 @@ * provides a simple way to select just the items of interest * when a method returns a collection of declarations. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.annotation.processing.ProcessingEnvironment}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface AnnotationProcessorEnvironment { /** @@ -87,7 +93,6 @@ Filer getFiler(); - /** * Returns the declarations of the types specified when the * annotation processing tool was invoked. --- old/src/share/classes/com/sun/mirror/apt/AnnotationProcessorFactory.java 2009-07-26 21:26:07.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/apt/AnnotationProcessorFactory.java 2009-07-26 21:26:07.000000000 -0700 @@ -42,11 +42,17 @@ * must provide a public no-argument constructor to be used by tools to * instantiate the factory. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.annotation.processing.Processor}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface AnnotationProcessorFactory { /** --- old/src/share/classes/com/sun/mirror/apt/AnnotationProcessorListener.java 2009-07-26 21:26:08.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/apt/AnnotationProcessorListener.java 2009-07-26 21:26:08.000000000 -0700 @@ -28,8 +28,15 @@ /** * Superinterface for all annotation processor event listeners. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. This interface has no + * direct analog in the standardized API because the different round + * model renders it unnecessary. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ +@Deprecated +@SuppressWarnings("deprecation") public interface AnnotationProcessorListener extends java.util.EventListener {} --- old/src/share/classes/com/sun/mirror/apt/AnnotationProcessors.java 2009-07-26 21:26:08.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/apt/AnnotationProcessors.java 2009-07-26 21:26:08.000000000 -0700 @@ -31,10 +31,16 @@ /** * Utilities to create specialized annotation processors. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. There is no direct analog + * of the functionality of this class in the standardized API. + * * @since 1.5 * @author Joseph D. Darcy * @author Scott Seligman */ +@Deprecated +@SuppressWarnings("deprecation") public class AnnotationProcessors { static class NoOpAP implements AnnotationProcessor { NoOpAP() {} --- old/src/share/classes/com/sun/mirror/apt/Filer.java 2009-07-26 21:26:08.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/apt/Filer.java 2009-07-26 21:26:08.000000000 -0700 @@ -51,11 +51,17 @@ * be deleted. Any subsequent attempt to create the same file during * a run will fail. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.annotation.processing.Filer}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface Filer { /** @@ -140,7 +146,13 @@ /** * Locations (subtrees within the file system) where new files are created. + * + * @deprecated All components of this API have been superseded by + * the standardized annotation processing API. The replacement + * for the functionality of this enum is {@link + * javax.tools.StandardLocation}. */ + @Deprecated enum Location { /** The location of new source files. */ SOURCE_TREE, --- old/src/share/classes/com/sun/mirror/apt/Messager.java 2009-07-26 21:26:09.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/apt/Messager.java 2009-07-26 21:26:09.000000000 -0700 @@ -25,20 +25,24 @@ package com.sun.mirror.apt; - import com.sun.mirror.util.SourcePosition; - /** * A Messager provides the way for * an annotation processor to report error messages, warnings, and * other notices. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.annotation.processing.Messager}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface Messager { /** --- old/src/share/classes/com/sun/mirror/apt/RoundCompleteEvent.java 2009-07-26 21:26:09.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/apt/RoundCompleteEvent.java 2009-07-26 21:26:09.000000000 -0700 @@ -32,10 +32,17 @@ * cannot meaningfully be serialized because all of the annotation * processing tool's internal state would potentially be needed. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. This class has no direct + * analog in the standardized API because the different round model + * renders it unnecessary. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ +@Deprecated +@SuppressWarnings("deprecation") public abstract class RoundCompleteEvent extends java.util.EventObject { private RoundState rs; --- old/src/share/classes/com/sun/mirror/apt/RoundCompleteListener.java 2009-07-26 21:26:10.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/apt/RoundCompleteListener.java 2009-07-26 21:26:10.000000000 -0700 @@ -28,10 +28,17 @@ /** * Listener for the completion of a round of annotation processing. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. This interface has no + * direct analog in the standardized API because the different round + * model renders it unnecessary. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ +@Deprecated +@SuppressWarnings("deprecation") public interface RoundCompleteListener extends AnnotationProcessorListener { /** * Invoked after all processors for a round have run to completion. --- old/src/share/classes/com/sun/mirror/apt/RoundState.java 2009-07-26 21:26:10.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/apt/RoundState.java 2009-07-26 21:26:10.000000000 -0700 @@ -28,10 +28,17 @@ /** * Represents the status of a completed round of annotation processing. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.annotation.processing.RoundEnvironment}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ +@Deprecated +@SuppressWarnings("deprecation") public interface RoundState { /** * Returns true if this was the last round of annotation --- old/src/share/classes/com/sun/mirror/declaration/AnnotationMirror.java 2009-07-26 21:26:10.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/AnnotationMirror.java 2009-07-26 21:26:10.000000000 -0700 @@ -38,11 +38,17 @@ * ("=="). There is no guarantee that any particular * annotation will always be represented by the same object. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.lang.model.element.AnnotationMirror}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface AnnotationMirror { /** --- old/src/share/classes/com/sun/mirror/declaration/AnnotationTypeDeclaration.java 2009-07-26 21:26:11.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/AnnotationTypeDeclaration.java 2009-07-26 21:26:11.000000000 -0700 @@ -32,11 +32,17 @@ /** * Represents the declaration of an annotation type. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is included in {@link + * javax.lang.model.element.TypeElement}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface AnnotationTypeDeclaration extends InterfaceDeclaration { /** --- old/src/share/classes/com/sun/mirror/declaration/AnnotationTypeElementDeclaration.java 2009-07-26 21:26:11.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/AnnotationTypeElementDeclaration.java 2009-07-26 21:26:11.000000000 -0700 @@ -29,11 +29,17 @@ /** * Represents an element of an annotation type. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is included in {@link + * javax.lang.model.element.ExecutableElement}. + * * @author Joe Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface AnnotationTypeElementDeclaration extends MethodDeclaration { /** --- old/src/share/classes/com/sun/mirror/declaration/AnnotationValue.java 2009-07-26 21:26:11.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/AnnotationValue.java 2009-07-26 21:26:11.000000000 -0700 @@ -30,11 +30,17 @@ /** * Represents a value of an annotation type element. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.lang.model.element.AnnotationValue}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface AnnotationValue { /** --- old/src/share/classes/com/sun/mirror/declaration/ClassDeclaration.java 2009-07-26 21:26:12.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/ClassDeclaration.java 2009-07-26 21:26:12.000000000 -0700 @@ -46,13 +46,19 @@ * provides a simple way to select just the items of interest * when a method returns a collection of declarations. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is included in {@link + * javax.lang.model.element.TypeElement}. + * * @author Joseph D. Darcy * @author Scott Seligman * * @see ClassType * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface ClassDeclaration extends TypeDeclaration { /** --- old/src/share/classes/com/sun/mirror/declaration/ConstructorDeclaration.java 2009-07-26 21:26:12.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/ConstructorDeclaration.java 2009-07-26 21:26:12.000000000 -0700 @@ -29,10 +29,16 @@ /** * Represents a constructor of a class or interface. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is included in {@link + * javax.lang.model.element.ExecutableElement}. + * * @author Joe Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface ConstructorDeclaration extends ExecutableDeclaration { } --- old/src/share/classes/com/sun/mirror/declaration/Declaration.java 2009-07-26 21:26:13.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/Declaration.java 2009-07-26 21:26:12.000000000 -0700 @@ -44,6 +44,11 @@ * method. There is no guarantee that any particular declaration will * always be represented by the same object. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.lang.model.element.Element}. + * * @author Joseph D. Darcy * @author Scott Seligman * @@ -51,7 +56,8 @@ * @see TypeMirror * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface Declaration { /** --- old/src/share/classes/com/sun/mirror/declaration/EnumConstantDeclaration.java 2009-07-26 21:26:13.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/EnumConstantDeclaration.java 2009-07-26 21:26:13.000000000 -0700 @@ -29,11 +29,17 @@ /** * Represents an enum constant declaration. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is included in {@link + * javax.lang.model.element.VariableElement}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface EnumConstantDeclaration extends FieldDeclaration { /** * {@inheritDoc} --- old/src/share/classes/com/sun/mirror/declaration/EnumDeclaration.java 2009-07-26 21:26:13.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/EnumDeclaration.java 2009-07-26 21:26:13.000000000 -0700 @@ -32,11 +32,17 @@ /** * Represents the declaration of an enum type. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is included in {@link + * javax.lang.model.element.TypeElement}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface EnumDeclaration extends ClassDeclaration { /** --- old/src/share/classes/com/sun/mirror/declaration/ExecutableDeclaration.java 2009-07-26 21:26:14.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/ExecutableDeclaration.java 2009-07-26 21:26:14.000000000 -0700 @@ -34,11 +34,17 @@ /** * Represents a method or constructor of a class or interface. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.lang.model.element.ExecutableElement}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface ExecutableDeclaration extends MemberDeclaration { /** --- old/src/share/classes/com/sun/mirror/declaration/FieldDeclaration.java 2009-07-26 21:26:14.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/FieldDeclaration.java 2009-07-26 21:26:14.000000000 -0700 @@ -32,11 +32,17 @@ /** * Represents a field of a type declaration. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is included in {@link + * javax.lang.model.element.VariableElement}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface FieldDeclaration extends MemberDeclaration { /** --- old/src/share/classes/com/sun/mirror/declaration/InterfaceDeclaration.java 2009-07-26 21:26:14.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/InterfaceDeclaration.java 2009-07-26 21:26:14.000000000 -0700 @@ -40,12 +40,18 @@ * represents an interface type. * See {@link TypeDeclaration} for more on this distinction. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is included in {@link + * javax.lang.model.element.TypeElement}. + * * @author Joseph D. Darcy * @author Scott Seligman * * @see InterfaceType * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface InterfaceDeclaration extends TypeDeclaration { } --- old/src/share/classes/com/sun/mirror/declaration/MemberDeclaration.java 2009-07-26 21:26:15.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/MemberDeclaration.java 2009-07-26 21:26:15.000000000 -0700 @@ -31,11 +31,17 @@ * type. This includes fields, constructors, methods, and (since they * may be nested) declared types themselves. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.lang.model.element.Element}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface MemberDeclaration extends Declaration { /** --- old/src/share/classes/com/sun/mirror/declaration/MethodDeclaration.java 2009-07-26 21:26:15.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/MethodDeclaration.java 2009-07-26 21:26:15.000000000 -0700 @@ -36,11 +36,17 @@ * {@linkplain AnnotationTypeElementDeclaration annotation type element} * is a kind of method. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is included in {@link + * javax.lang.model.element.ExecutableElement}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface MethodDeclaration extends ExecutableDeclaration { /** --- old/src/share/classes/com/sun/mirror/declaration/Modifier.java 2009-07-26 21:26:15.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/Modifier.java 2009-07-26 21:26:15.000000000 -0700 @@ -35,11 +35,16 @@ * then it is customary, though not required, that they appear in the same * order as the constants listed in the detail section below. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this enum is {@link javax.lang.model.element.Modifier}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public enum Modifier { // See JLS2 sections 8.1.1, 8.3.1, 8.4.3, 8.8.3, and 9.1.1. --- old/src/share/classes/com/sun/mirror/declaration/PackageDeclaration.java 2009-07-26 21:26:16.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/PackageDeclaration.java 2009-07-26 21:26:16.000000000 -0700 @@ -37,11 +37,17 @@ * provides a simple way to select just the items of interest * when a method returns a collection of declarations. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.lang.model.element.PackageElement}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface PackageDeclaration extends Declaration { /** --- old/src/share/classes/com/sun/mirror/declaration/ParameterDeclaration.java 2009-07-26 21:26:16.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/ParameterDeclaration.java 2009-07-26 21:26:16.000000000 -0700 @@ -32,11 +32,17 @@ /** * Represents a formal parameter of a method or constructor. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is included in {@link + * javax.lang.model.element.VariableElement}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface ParameterDeclaration extends Declaration { /** --- old/src/share/classes/com/sun/mirror/declaration/TypeDeclaration.java 2009-07-26 21:26:16.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/TypeDeclaration.java 2009-07-26 21:26:16.000000000 -0700 @@ -54,13 +54,19 @@ * provides a simple way to select just the items of interest * when a method returns a collection of declarations. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is included in {@link + * javax.lang.model.element.TypeElement}. + * * @author Joseph D. Darcy * @author Scott Seligman * * @see DeclaredType * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface TypeDeclaration extends MemberDeclaration { /** --- old/src/share/classes/com/sun/mirror/declaration/TypeParameterDeclaration.java 2009-07-26 21:26:17.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/TypeParameterDeclaration.java 2009-07-26 21:26:17.000000000 -0700 @@ -36,11 +36,17 @@ * or constructor declaration. * A type parameter declares a {@link TypeVariable}. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.lang.model.element.TypeParameterElement}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface TypeParameterDeclaration extends Declaration { /** --- old/src/share/classes/com/sun/mirror/type/AnnotationType.java 2009-07-26 21:26:17.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/type/AnnotationType.java 2009-07-26 21:26:17.000000000 -0700 @@ -32,11 +32,17 @@ /** * Represents an annotation type. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is included in {@link + * javax.lang.model.type.DeclaredType}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface AnnotationType extends InterfaceType { /** --- old/src/share/classes/com/sun/mirror/type/ArrayType.java 2009-07-26 21:26:18.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/type/ArrayType.java 2009-07-26 21:26:17.000000000 -0700 @@ -31,11 +31,17 @@ * A multidimensional array type is represented as an array type * whose component type is also an array type. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.lang.model.type.ArrayType}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface ArrayType extends ReferenceType { /** --- old/src/share/classes/com/sun/mirror/type/ClassType.java 2009-07-26 21:26:18.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/type/ClassType.java 2009-07-26 21:26:18.000000000 -0700 @@ -38,11 +38,17 @@ * of a class, a ClassType represents a class type. * See {@link TypeDeclaration} for more on this distinction. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is included in {@link + * javax.lang.model.type.DeclaredType}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface ClassType extends DeclaredType { /** --- old/src/share/classes/com/sun/mirror/type/DeclaredType.java 2009-07-26 21:26:18.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/type/DeclaredType.java 2009-07-26 21:26:18.000000000 -0700 @@ -48,11 +48,17 @@ * Other method invocations on such an unknown type will not, in general, * return meaningful results. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is included in {@link + * javax.lang.model.type.DeclaredType}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface DeclaredType extends ReferenceType { /** --- old/src/share/classes/com/sun/mirror/type/EnumType.java 2009-07-26 21:26:19.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/type/EnumType.java 2009-07-26 21:26:19.000000000 -0700 @@ -32,11 +32,17 @@ /** * Represents an enum type. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is included in {@link + * javax.lang.model.type.DeclaredType}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface EnumType extends ClassType { /** --- old/src/share/classes/com/sun/mirror/type/InterfaceType.java 2009-07-26 21:26:19.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/type/InterfaceType.java 2009-07-26 21:26:19.000000000 -0700 @@ -39,11 +39,17 @@ * represents an interface type. * See {@link TypeDeclaration} for more on this distinction. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is included in {@link + * javax.lang.model.type.DeclaredType}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface InterfaceType extends DeclaredType { /** --- old/src/share/classes/com/sun/mirror/type/MirroredTypeException.java 2009-07-26 21:26:20.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/type/MirroredTypeException.java 2009-07-26 21:26:20.000000000 -0700 @@ -35,9 +35,16 @@ * Thrown when an application attempts to access the {@link Class} object * corresponding to a {@link TypeMirror}. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this exception is {@link + * javax.lang.model.type.MirroredTypeException}. + * * @see MirroredTypesException * @see Declaration#getAnnotation(Class) */ +@Deprecated +@SuppressWarnings("deprecation") public class MirroredTypeException extends RuntimeException { private static final long serialVersionUID = 1; --- old/src/share/classes/com/sun/mirror/type/MirroredTypesException.java 2009-07-26 21:26:20.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/type/MirroredTypesException.java 2009-07-26 21:26:20.000000000 -0700 @@ -38,9 +38,16 @@ * Thrown when an application attempts to access a sequence of {@link Class} * objects each corresponding to a {@link TypeMirror}. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this exception is {@link + * javax.lang.model.type.MirroredTypesException}. + * * @see MirroredTypeException * @see Declaration#getAnnotation(Class) */ +@Deprecated +@SuppressWarnings("deprecation") public class MirroredTypesException extends RuntimeException { private static final long serialVersionUID = 1; --- old/src/share/classes/com/sun/mirror/type/PrimitiveType.java 2009-07-26 21:26:20.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/type/PrimitiveType.java 2009-07-26 21:26:20.000000000 -0700 @@ -31,11 +31,17 @@ * boolean, byte, short, int, * long, char, float, and double. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.lang.model.type.PrimitiveType}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface PrimitiveType extends TypeMirror { /** @@ -47,7 +53,13 @@ /** * An enumeration of the different kinds of primitive types. + * + * @deprecated All components of this API have been superseded by + * the standardized annotation processing API. The replacement + * for the functionality of this enum is {@link + * javax.lang.model.type.TypeKind}. */ + @Deprecated enum Kind { /** The primitive type boolean */ BOOLEAN, /** The primitive type byte */ BYTE, --- old/src/share/classes/com/sun/mirror/type/ReferenceType.java 2009-07-26 21:26:21.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/type/ReferenceType.java 2009-07-26 21:26:21.000000000 -0700 @@ -30,10 +30,16 @@ * Represents a reference type. * These include class and interface types, array types, and type variables. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.lang.model.type.ReferenceType}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface ReferenceType extends TypeMirror { } --- old/src/share/classes/com/sun/mirror/type/TypeMirror.java 2009-07-26 21:26:21.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/type/TypeMirror.java 2009-07-26 21:26:21.000000000 -0700 @@ -43,6 +43,11 @@ * There is no guarantee that any particular type will * always be represented by the same object. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.lang.model.type.TypeMirror}. + * * @author Joseph D. Darcy * @author Scott Seligman * @@ -50,7 +55,8 @@ * @see Types * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface TypeMirror { /** --- old/src/share/classes/com/sun/mirror/type/TypeVariable.java 2009-07-26 21:26:22.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/type/TypeVariable.java 2009-07-26 21:26:21.000000000 -0700 @@ -35,11 +35,17 @@ * {@linkplain TypeParameterDeclaration type parameter} of a * type, method, or constructor. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.lang.model.type.TypeVariable}. + * * @author Joe Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface TypeVariable extends ReferenceType { /** --- old/src/share/classes/com/sun/mirror/type/VoidType.java 2009-07-26 21:26:22.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/type/VoidType.java 2009-07-26 21:26:22.000000000 -0700 @@ -35,9 +35,15 @@ * @author Joseph D. Darcy * @author Scott Seligman * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is included in {@link + * javax.lang.model.type.NoType}. + * * @see MethodDeclaration#getReturnType() * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface VoidType extends TypeMirror { } --- old/src/share/classes/com/sun/mirror/type/WildcardType.java 2009-07-26 21:26:22.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/type/WildcardType.java 2009-07-26 21:26:22.000000000 -0700 @@ -41,11 +41,17 @@ * extends clause, its lower bound explicitly set by a * super clause, or neither (but not both). * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.lang.model.type.WildcardType}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface WildcardType extends TypeMirror { /** --- old/src/share/classes/com/sun/mirror/util/DeclarationFilter.java 2009-07-26 21:26:23.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/util/DeclarationFilter.java 2009-07-26 21:26:23.000000000 -0700 @@ -69,11 +69,17 @@ * }; * result = nameFilter.filter(decls); * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this class is {@link + * javax.lang.model.util.ElementFilter}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public class DeclarationFilter { // Predefined filters for convenience. --- old/src/share/classes/com/sun/mirror/util/DeclarationScanner.java 2009-07-26 21:26:23.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/util/DeclarationScanner.java 2009-07-26 21:26:23.000000000 -0700 @@ -39,11 +39,17 @@ * are scanned; the postprocessing visitor is called after the * contained declarations are scanned. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this class is {@link + * javax.lang.model.util.ElementScanner6}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") class DeclarationScanner implements DeclarationVisitor { protected DeclarationVisitor pre; protected DeclarationVisitor post; --- old/src/share/classes/com/sun/mirror/util/DeclarationVisitor.java 2009-07-26 21:26:23.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/util/DeclarationVisitor.java 2009-07-26 21:26:23.000000000 -0700 @@ -37,11 +37,17 @@ * visitXxx method applicable to that declaration is * invoked. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.lang.model.element.ElementVisitor}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface DeclarationVisitor { /** --- old/src/share/classes/com/sun/mirror/util/DeclarationVisitors.java 2009-07-26 21:26:24.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/util/DeclarationVisitors.java 2009-07-26 21:26:24.000000000 -0700 @@ -28,10 +28,17 @@ /** * Utilities to create specialized DeclarationVisitor instances. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. There is no direct + * replacement for the functionality of this class in the standardized + * API due to that API's different visitor structure. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ +@Deprecated +@SuppressWarnings("deprecation") public class DeclarationVisitors { private DeclarationVisitors(){} // do not instantiate. --- old/src/share/classes/com/sun/mirror/util/Declarations.java 2009-07-26 21:26:24.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/util/Declarations.java 2009-07-26 21:26:24.000000000 -0700 @@ -32,11 +32,17 @@ /** * Utility methods for operating on declarations. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.lang.model.util.Elements}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface Declarations { /** --- old/src/share/classes/com/sun/mirror/util/SimpleDeclarationVisitor.java 2009-07-26 21:26:25.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/util/SimpleDeclarationVisitor.java 2009-07-26 21:26:24.000000000 -0700 @@ -37,11 +37,17 @@ * methods that correspond to the kinds of declarations on which it * will operate. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this class is {@link + * javax.lang.model.util.SimpleElementVisitor6}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public class SimpleDeclarationVisitor implements DeclarationVisitor { /** --- old/src/share/classes/com/sun/mirror/util/SimpleTypeVisitor.java 2009-07-26 21:26:25.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/util/SimpleTypeVisitor.java 2009-07-26 21:26:25.000000000 -0700 @@ -37,11 +37,17 @@ * methods that correspond to the kinds of types on which it will * operate. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this class is {@link + * javax.lang.model.util.SimpleTypeVisitor6}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public class SimpleTypeVisitor implements TypeVisitor { /** --- old/src/share/classes/com/sun/mirror/util/SourceOrderDeclScanner.java 2009-07-26 21:26:25.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/util/SourceOrderDeclScanner.java 2009-07-26 21:26:25.000000000 -0700 @@ -42,10 +42,17 @@ * are scanned; the postprocessing visitor is called after the * contained declarations are scanned. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this class is {@link + * javax.lang.model.util.SimpleElementVisitor6}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ +@Deprecated +@SuppressWarnings("deprecation") class SourceOrderDeclScanner extends DeclarationScanner { static class SourceOrderComparator implements java.util.Comparator { SourceOrderComparator(){} --- old/src/share/classes/com/sun/mirror/util/SourcePosition.java 2009-07-26 21:26:26.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/util/SourcePosition.java 2009-07-26 21:26:26.000000000 -0700 @@ -32,11 +32,20 @@ /** * Represents a position in a source file. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. There is no direct + * replacement for the functionality of this interface since the + * standardized {@link javax.annotation.processing.Messager Messager} + * API implicitly takes a source position argument via any element, + * annotation mirror, or annotation value passed along with the + * message. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface SourcePosition { /** --- old/src/share/classes/com/sun/mirror/util/TypeVisitor.java 2009-07-26 21:26:26.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/util/TypeVisitor.java 2009-07-26 21:26:26.000000000 -0700 @@ -38,11 +38,17 @@ * the most specific visitXxx method applicable to * that type is invoked. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.lang.model.element.TypeVisitor}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface TypeVisitor { /** --- old/src/share/classes/com/sun/mirror/util/Types.java 2009-07-26 21:26:26.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/util/Types.java 2009-07-26 21:26:26.000000000 -0700 @@ -35,11 +35,17 @@ /** * Utility methods for operating on types. * + * @deprecated All components of this API have been superseded by the + * standardized annotation processing API. The replacement for the + * functionality of this interface is {@link + * javax.lang.model.util.Types}. + * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ - +@Deprecated +@SuppressWarnings("deprecation") public interface Types { /** --- old/src/share/classes/com/sun/tools/apt/comp/Apt.java 2009-07-26 21:26:27.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/comp/Apt.java 2009-07-26 21:26:27.000000000 -0700 @@ -65,6 +65,7 @@ * risk. This code and its internal interfaces are subject to change * or deletion without notice. */ +@SuppressWarnings("deprecation") public class Apt extends ListBuffer> { java.util.Set genSourceFileNames = new java.util.LinkedHashSet(); public java.util.Set getSourceFileNames() { --- old/src/share/classes/com/sun/tools/apt/comp/BootstrapAPF.java 2009-07-26 21:26:27.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/comp/BootstrapAPF.java 2009-07-26 21:26:27.000000000 -0700 @@ -29,6 +29,7 @@ import com.sun.mirror.apt.*; import com.sun.mirror.declaration.AnnotationTypeDeclaration; +@SuppressWarnings("deprecation") public class BootstrapAPF implements AnnotationProcessorFactory { static final Collection supportedOptions = --- old/src/share/classes/com/sun/tools/apt/comp/PrintAP.java 2009-07-26 21:26:27.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/comp/PrintAP.java 2009-07-26 21:26:27.000000000 -0700 @@ -36,6 +36,7 @@ /** * Class used to implement "-print" option. */ +@SuppressWarnings("deprecation") public class PrintAP implements AnnotationProcessor { --- old/src/share/classes/com/sun/tools/apt/main/JavaCompiler.java 2009-07-26 21:26:28.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/main/JavaCompiler.java 2009-07-26 21:26:28.000000000 -0700 @@ -50,6 +50,7 @@ * risk. This code and its internal interfaces are subject to change * or deletion without notice. */ +@SuppressWarnings("deprecation") public class JavaCompiler extends com.sun.tools.javac.main.JavaCompiler { /** The context key for the compiler. */ protected static final Context.Key compilerKey = --- old/src/share/classes/com/sun/tools/apt/main/Main.java 2009-07-26 21:26:28.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/main/Main.java 2009-07-26 21:26:28.000000000 -0700 @@ -64,6 +64,7 @@ * risk. This code and its internal interfaces are subject to change * or deletion without notice. */ +@SuppressWarnings("deprecation") public class Main { /** For testing: enter any options you want to be set implicitly @@ -780,7 +781,6 @@ // prefixed to command line arguments. processArgs(forcedOpts); - /* * A run of apt only gets passed the most recently generated * files; the initial run of apt gets passed the files from @@ -792,6 +792,11 @@ // assign args the result of parse to capture results of // '@file' expansion origFilenames = processArgs((args=CommandLine.parse(args))); + + if (options.get("suppress-tool-api-removal-message") == null) { + Bark.printLines(out, getLocalizedString("misc.Deprecation")); + } + if (origFilenames == null) { return EXIT_CMDERR; } else if (origFilenames.size() == 0) { --- old/src/share/classes/com/sun/tools/apt/mirror/AptEnv.java 2009-07-26 21:26:29.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/AptEnv.java 2009-07-26 21:26:29.000000000 -0700 @@ -39,7 +39,7 @@ /** * The environment for a run of apt. */ - +@SuppressWarnings("deprecation") public class AptEnv { public Names names; // javac's name table --- old/src/share/classes/com/sun/tools/apt/mirror/apt/AnnotationProcessorEnvironmentImpl.java 2009-07-26 21:26:29.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/apt/AnnotationProcessorEnvironmentImpl.java 2009-07-26 21:26:29.000000000 -0700 @@ -47,6 +47,7 @@ /* * Annotation Processor Environment implementation. */ +@SuppressWarnings("deprecation") public class AnnotationProcessorEnvironmentImpl implements AnnotationProcessorEnvironment { Collection spectypedecls; --- old/src/share/classes/com/sun/tools/apt/mirror/apt/FilerImpl.java 2009-07-26 21:26:30.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/apt/FilerImpl.java 2009-07-26 21:26:29.000000000 -0700 @@ -45,7 +45,7 @@ /** * Implementation of Filer. */ - +@SuppressWarnings("deprecation") public class FilerImpl implements Filer { /* * The Filer class must maintain a number of constraints. First, --- old/src/share/classes/com/sun/tools/apt/mirror/apt/MessagerImpl.java 2009-07-26 21:26:30.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/apt/MessagerImpl.java 2009-07-26 21:26:30.000000000 -0700 @@ -38,7 +38,7 @@ /** * Implementation of Messager. */ - +@SuppressWarnings("deprecation") public class MessagerImpl implements Messager { private final Bark bark; --- old/src/share/classes/com/sun/tools/apt/mirror/apt/RoundCompleteEventImpl.java 2009-07-26 21:26:30.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/apt/RoundCompleteEventImpl.java 2009-07-26 21:26:30.000000000 -0700 @@ -29,6 +29,7 @@ import com.sun.mirror.apt.RoundCompleteEvent; import com.sun.mirror.apt.RoundState; +@SuppressWarnings("deprecation") public class RoundCompleteEventImpl extends RoundCompleteEvent { private static final long serialVersionUID = 7067621446720784300L; --- old/src/share/classes/com/sun/tools/apt/mirror/apt/RoundStateImpl.java 2009-07-26 21:26:31.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/apt/RoundStateImpl.java 2009-07-26 21:26:31.000000000 -0700 @@ -28,6 +28,7 @@ import com.sun.mirror.apt.RoundState; import java.util.Map; +@SuppressWarnings("deprecation") public class RoundStateImpl implements RoundState { private final boolean finalRound; private final boolean errorRaised; --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/AnnotationMirrorImpl.java 2009-07-26 21:26:31.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/AnnotationMirrorImpl.java 2009-07-26 21:26:31.000000000 -0700 @@ -42,7 +42,7 @@ /** * Implementation of AnnotationMirror */ - +@SuppressWarnings("deprecation") public class AnnotationMirrorImpl implements AnnotationMirror { protected final AptEnv env; --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/AnnotationProxyMaker.java 2009-07-26 21:26:31.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/AnnotationProxyMaker.java 2009-07-26 21:26:31.000000000 -0700 @@ -49,7 +49,7 @@ *

The "dynamic proxy return form" of an attribute element value is * the form used by sun.reflect.annotation.AnnotationInvocationHandler. */ - +@SuppressWarnings("deprecation") class AnnotationProxyMaker { private final AptEnv env; --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/AnnotationTypeDeclarationImpl.java 2009-07-26 21:26:32.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/AnnotationTypeDeclarationImpl.java 2009-07-26 21:26:32.000000000 -0700 @@ -37,7 +37,7 @@ /** * Implementation of AnnotationTypeDeclaration */ - +@SuppressWarnings("deprecation") public class AnnotationTypeDeclarationImpl extends InterfaceDeclarationImpl implements AnnotationTypeDeclaration { --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/AnnotationTypeElementDeclarationImpl.java 2009-07-26 21:26:32.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/AnnotationTypeElementDeclarationImpl.java 2009-07-26 21:26:32.000000000 -0700 @@ -35,7 +35,7 @@ /** * Implementation of AnnotationTypeElementDeclaration */ - +@SuppressWarnings("deprecation") public class AnnotationTypeElementDeclarationImpl extends MethodDeclarationImpl implements AnnotationTypeElementDeclaration { --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/AnnotationValueImpl.java 2009-07-26 21:26:33.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/AnnotationValueImpl.java 2009-07-26 21:26:32.000000000 -0700 @@ -40,7 +40,7 @@ /** * Implementation of AnnotationValue */ - +@SuppressWarnings("deprecation") public class AnnotationValueImpl implements AnnotationValue { protected final AptEnv env; --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/ClassDeclarationImpl.java 2009-07-26 21:26:33.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/ClassDeclarationImpl.java 2009-07-26 21:26:33.000000000 -0700 @@ -42,7 +42,7 @@ /** * Implementation of ClassDeclaration */ - +@SuppressWarnings("deprecation") public class ClassDeclarationImpl extends TypeDeclarationImpl implements ClassDeclaration { --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/Constants.java 2009-07-26 21:26:33.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/Constants.java 2009-07-26 21:26:33.000000000 -0700 @@ -39,6 +39,7 @@ /** * Utility class for operating on constant expressions. */ +@SuppressWarnings("deprecation") class Constants { /** --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/ConstructorDeclarationImpl.java 2009-07-26 21:26:34.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/ConstructorDeclarationImpl.java 2009-07-26 21:26:34.000000000 -0700 @@ -39,7 +39,7 @@ /** * Implementation of ConstructorDeclaration */ - +@SuppressWarnings("deprecation") public class ConstructorDeclarationImpl extends ExecutableDeclarationImpl implements ConstructorDeclaration { --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/DeclarationImpl.java 2009-07-26 21:26:34.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/DeclarationImpl.java 2009-07-26 21:26:34.000000000 -0700 @@ -52,7 +52,7 @@ /** * Implementation of Declaration */ - +@SuppressWarnings("deprecation") public abstract class DeclarationImpl implements Declaration { protected final AptEnv env; --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/DeclarationMaker.java 2009-07-26 21:26:34.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/DeclarationMaker.java 2009-07-26 21:26:34.000000000 -0700 @@ -40,7 +40,7 @@ /** * Utilities for constructing and caching declarations. */ - +@SuppressWarnings("deprecation") public class DeclarationMaker { private AptEnv env; --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/EnumConstantDeclarationImpl.java 2009-07-26 21:26:35.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/EnumConstantDeclarationImpl.java 2009-07-26 21:26:35.000000000 -0700 @@ -35,7 +35,7 @@ /** * Implementation of EnumConstantDeclaration */ - +@SuppressWarnings("deprecation") public class EnumConstantDeclarationImpl extends FieldDeclarationImpl implements EnumConstantDeclaration { --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/EnumDeclarationImpl.java 2009-07-26 21:26:35.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/EnumDeclarationImpl.java 2009-07-26 21:26:35.000000000 -0700 @@ -37,7 +37,7 @@ /** * Implementation of EnumDeclaration */ - +@SuppressWarnings("deprecation") public class EnumDeclarationImpl extends ClassDeclarationImpl implements EnumDeclaration { --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/ExecutableDeclarationImpl.java 2009-07-26 21:26:35.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/ExecutableDeclarationImpl.java 2009-07-26 21:26:35.000000000 -0700 @@ -39,7 +39,7 @@ /** * Implementation of ExecutableDeclaration */ - +@SuppressWarnings("deprecation") public abstract class ExecutableDeclarationImpl extends MemberDeclarationImpl implements ExecutableDeclaration { public MethodSymbol sym; --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/FieldDeclarationImpl.java 2009-07-26 21:26:36.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/FieldDeclarationImpl.java 2009-07-26 21:26:36.000000000 -0700 @@ -40,7 +40,7 @@ /** * Implementation of FieldDeclaration */ - +@SuppressWarnings("deprecation") class FieldDeclarationImpl extends MemberDeclarationImpl implements FieldDeclaration { --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/InterfaceDeclarationImpl.java 2009-07-26 21:26:36.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/InterfaceDeclarationImpl.java 2009-07-26 21:26:36.000000000 -0700 @@ -35,7 +35,7 @@ /** * Implementation of InterfaceDeclaration */ - +@SuppressWarnings("deprecation") public class InterfaceDeclarationImpl extends TypeDeclarationImpl implements InterfaceDeclaration { --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/MemberDeclarationImpl.java 2009-07-26 21:26:37.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/MemberDeclarationImpl.java 2009-07-26 21:26:36.000000000 -0700 @@ -40,7 +40,7 @@ /** * Implementation of MemberDeclaration */ - +@SuppressWarnings("deprecation") public abstract class MemberDeclarationImpl extends DeclarationImpl implements MemberDeclaration { --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/MethodDeclarationImpl.java 2009-07-26 21:26:37.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/MethodDeclarationImpl.java 2009-07-26 21:26:37.000000000 -0700 @@ -36,7 +36,7 @@ /** * Implementation of MethodDeclaration */ - +@SuppressWarnings("deprecation") public class MethodDeclarationImpl extends ExecutableDeclarationImpl implements MethodDeclaration { --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/PackageDeclarationImpl.java 2009-07-26 21:26:37.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/PackageDeclarationImpl.java 2009-07-26 21:26:37.000000000 -0700 @@ -39,7 +39,7 @@ /** * Implementation of PackageDeclaration. */ - +@SuppressWarnings("deprecation") public class PackageDeclarationImpl extends DeclarationImpl implements PackageDeclaration { --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/ParameterDeclarationImpl.java 2009-07-26 21:26:38.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/ParameterDeclarationImpl.java 2009-07-26 21:26:38.000000000 -0700 @@ -39,7 +39,7 @@ /** * Implementation of ParameterDeclaration */ - +@SuppressWarnings("deprecation") public class ParameterDeclarationImpl extends DeclarationImpl implements ParameterDeclaration { --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/TypeDeclarationImpl.java 2009-07-26 21:26:38.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/TypeDeclarationImpl.java 2009-07-26 21:26:38.000000000 -0700 @@ -40,7 +40,7 @@ /** * Implementation of TypeDeclaration */ - +@SuppressWarnings("deprecation") public class TypeDeclarationImpl extends MemberDeclarationImpl implements TypeDeclaration { --- old/src/share/classes/com/sun/tools/apt/mirror/declaration/TypeParameterDeclarationImpl.java 2009-07-26 21:26:38.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/declaration/TypeParameterDeclarationImpl.java 2009-07-26 21:26:38.000000000 -0700 @@ -40,7 +40,7 @@ /** * Implementation of TypeParameterDeclaration */ - +@SuppressWarnings("deprecation") public class TypeParameterDeclarationImpl extends DeclarationImpl implements TypeParameterDeclaration { --- old/src/share/classes/com/sun/tools/apt/mirror/type/AnnotationTypeImpl.java 2009-07-26 21:26:39.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/type/AnnotationTypeImpl.java 2009-07-26 21:26:39.000000000 -0700 @@ -36,7 +36,7 @@ /** * Implementation of AnnotationType */ - +@SuppressWarnings("deprecation") public class AnnotationTypeImpl extends InterfaceTypeImpl implements AnnotationType { --- old/src/share/classes/com/sun/tools/apt/mirror/type/ArrayTypeImpl.java 2009-07-26 21:26:39.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/type/ArrayTypeImpl.java 2009-07-26 21:26:39.000000000 -0700 @@ -35,7 +35,7 @@ /** * Implementation of ArrayType */ - +@SuppressWarnings("deprecation") public class ArrayTypeImpl extends TypeMirrorImpl implements ArrayType { protected Type.ArrayType type; --- old/src/share/classes/com/sun/tools/apt/mirror/type/ClassTypeImpl.java 2009-07-26 21:26:39.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/type/ClassTypeImpl.java 2009-07-26 21:26:39.000000000 -0700 @@ -36,7 +36,7 @@ /** * Implementation of ClassType */ - +@SuppressWarnings("deprecation") public class ClassTypeImpl extends DeclaredTypeImpl implements ClassType { ClassTypeImpl(AptEnv env, Type.ClassType type) { --- old/src/share/classes/com/sun/tools/apt/mirror/type/DeclaredTypeImpl.java 2009-07-26 21:26:40.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/type/DeclaredTypeImpl.java 2009-07-26 21:26:40.000000000 -0700 @@ -38,7 +38,7 @@ /** * Implementation of DeclaredType */ - +@SuppressWarnings("deprecation") abstract class DeclaredTypeImpl extends TypeMirrorImpl implements DeclaredType { --- old/src/share/classes/com/sun/tools/apt/mirror/type/EnumTypeImpl.java 2009-07-26 21:26:40.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/type/EnumTypeImpl.java 2009-07-26 21:26:40.000000000 -0700 @@ -36,7 +36,7 @@ /** * Implementation of EnumType */ - +@SuppressWarnings("deprecation") public class EnumTypeImpl extends ClassTypeImpl implements EnumType { EnumTypeImpl(AptEnv env, Type.ClassType type) { --- old/src/share/classes/com/sun/tools/apt/mirror/type/InterfaceTypeImpl.java 2009-07-26 21:26:41.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/type/InterfaceTypeImpl.java 2009-07-26 21:26:40.000000000 -0700 @@ -36,7 +36,7 @@ /** * Implementation of InterfaceType */ - +@SuppressWarnings("deprecation") public class InterfaceTypeImpl extends DeclaredTypeImpl implements InterfaceType { --- old/src/share/classes/com/sun/tools/apt/mirror/type/PrimitiveTypeImpl.java 2009-07-26 21:26:41.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/type/PrimitiveTypeImpl.java 2009-07-26 21:26:41.000000000 -0700 @@ -38,7 +38,7 @@ /** * Implementation of PrimitiveType. */ - +@SuppressWarnings("deprecation") class PrimitiveTypeImpl extends TypeMirrorImpl implements PrimitiveType { private final Kind kind; // the kind of primitive --- old/src/share/classes/com/sun/tools/apt/mirror/type/TypeMaker.java 2009-07-26 21:26:41.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/type/TypeMaker.java 2009-07-26 21:26:41.000000000 -0700 @@ -41,7 +41,7 @@ /** * Utilities for constructing type objects. */ - +@SuppressWarnings("deprecation") public class TypeMaker { private final AptEnv env; --- old/src/share/classes/com/sun/tools/apt/mirror/type/TypeMirrorImpl.java 2009-07-26 21:26:42.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/type/TypeMirrorImpl.java 2009-07-26 21:26:42.000000000 -0700 @@ -35,7 +35,7 @@ /** * Implementation of TypeMirror */ - +@SuppressWarnings("deprecation") public abstract class TypeMirrorImpl implements TypeMirror { protected final AptEnv env; --- old/src/share/classes/com/sun/tools/apt/mirror/type/TypeVariableImpl.java 2009-07-26 21:26:42.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/type/TypeVariableImpl.java 2009-07-26 21:26:42.000000000 -0700 @@ -40,7 +40,7 @@ /** * Implementation of TypeVariable */ - +@SuppressWarnings("deprecation") public class TypeVariableImpl extends TypeMirrorImpl implements TypeVariable { protected Type.TypeVar type; --- old/src/share/classes/com/sun/tools/apt/mirror/type/VoidTypeImpl.java 2009-07-26 21:26:42.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/type/VoidTypeImpl.java 2009-07-26 21:26:42.000000000 -0700 @@ -34,7 +34,7 @@ /** * Implementation of VoidType. */ - +@SuppressWarnings("deprecation") class VoidTypeImpl extends TypeMirrorImpl implements VoidType { VoidTypeImpl(AptEnv env) { --- old/src/share/classes/com/sun/tools/apt/mirror/type/WildcardTypeImpl.java 2009-07-26 21:26:43.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/type/WildcardTypeImpl.java 2009-07-26 21:26:43.000000000 -0700 @@ -41,7 +41,7 @@ /** * Implementation of WildcardType */ - +@SuppressWarnings("deprecation") public class WildcardTypeImpl extends TypeMirrorImpl implements WildcardType { protected Type.WildcardType type; --- old/src/share/classes/com/sun/tools/apt/mirror/util/DeclarationsImpl.java 2009-07-26 21:26:43.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/util/DeclarationsImpl.java 2009-07-26 21:26:43.000000000 -0700 @@ -42,7 +42,7 @@ /** * Implementation of Declarations utility methods for annotation processors */ - +@SuppressWarnings("deprecation") public class DeclarationsImpl implements Declarations { private final AptEnv env; --- old/src/share/classes/com/sun/tools/apt/mirror/util/SourcePositionImpl.java 2009-07-26 21:26:44.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/util/SourcePositionImpl.java 2009-07-26 21:26:43.000000000 -0700 @@ -36,7 +36,7 @@ /** * Implementation of SourcePosition */ - +@SuppressWarnings("deprecation") public class SourcePositionImpl implements SourcePosition { private JavaFileObject sourcefile; --- old/src/share/classes/com/sun/tools/apt/mirror/util/TypesImpl.java 2009-07-26 21:26:44.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/mirror/util/TypesImpl.java 2009-07-26 21:26:44.000000000 -0700 @@ -44,7 +44,7 @@ /** * Implementation of Types utility methods for annotation processors */ - +@SuppressWarnings("deprecation") public class TypesImpl implements Types { private final AptEnv env; --- old/src/share/classes/com/sun/tools/apt/resources/apt.properties 2009-07-26 21:26:44.000000000 -0700 +++ new/src/share/classes/com/sun/tools/apt/resources/apt.properties 2009-07-26 21:26:44.000000000 -0700 @@ -111,6 +111,14 @@ ## miscellaneous strings ## +apt.misc.Deprecation=\ + \nwarning:\u0020The apt tool and its associated API are planned to be\n\ + removed in the next major JDK release. These features have been\n\ + superseded by javac and the standardized annotation processing API,\n\ + javax.annotation.processing and javax.lang.model. Users are\n\ + recommended to migrate to the annotation processing features of\n\ + javac; see the javac man page for more information.\n + apt.misc.Problem=\ Problem encountered during annotation processing; \nsee stacktrace below for more information. --- old/test/tools/apt/Basics/apt.sh 2009-07-26 21:26:45.000000000 -0700 +++ new/test/tools/apt/Basics/apt.sh 2009-07-26 21:26:45.000000000 -0700 @@ -43,7 +43,7 @@ esac # Construct path to apt executable -APT="${TESTJAVA}/bin/apt ${TESTTOOLVMOPTS}" +APT="${TESTJAVA}/bin/apt ${TESTTOOLVMOPTS} -XDsuppress-tool-api-removal-message " printf "%s\n" "-classpath ${TESTCLASSES}" > options printf "%s\n" "-factorypath ./nullap.jar" >> options @@ -58,6 +58,7 @@ printf "%s\n" "-XListAnnotationTypes" >> options1 printf "%s\n" "-XclassesAsDecls" >> options1 + # Construct path to javac executable JAVAC="${TESTJAVA}/bin/javac ${TESTTOOLVMOPTS} -source 1.5 -sourcepath ${TESTSRC} -classpath ${TESTJAVA}/lib/tools.jar -d . " JAR="${TESTJAVA}/bin/jar " --- old/test/tools/apt/Compile/compile.sh 2009-07-26 21:26:45.000000000 -0700 +++ new/test/tools/apt/Compile/compile.sh 2009-07-26 21:26:45.000000000 -0700 @@ -67,7 +67,7 @@ esac -APT="${TESTJAVA}/bin/apt ${TESTTOOLVMOPTS} " +APT="${TESTJAVA}/bin/apt ${TESTTOOLVMOPTS} -XDsuppress-tool-api-removal-message " JAVA="${TESTJAVA}/bin/java ${TESTVMOPTS} " JAVAC="${TESTJAVA}/bin/javac ${TESTTOOLVMOPTS} " --- old/src/share/classes/com/sun/mirror/apt/package.html 2009-07-26 21:26:45.000000000 -0700 +++ /dev/null 2009-07-06 20:02:10.000000000 -0700 @@ -1,42 +0,0 @@ - - - - - - - - -Classes used to communicate information between -{@linkplain com.sun.mirror.apt.AnnotationProcessor annotation processors} -and an annotation processing tool. - -

Note that the apt tool and its associated APIs may be -changed or superseded in future j2se releases. - -@since 1.5 - - --- /dev/null 2009-07-06 20:02:10.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/apt/package-info.java 2009-07-26 21:26:45.000000000 -0700 @@ -0,0 +1,38 @@ +/* + * Copyright 2004 Sun Microsystems, Inc. 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. Sun designates this + * particular file as subject to the "Classpath" exception as provided + * by Sun in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, + * CA 95054 USA or visit www.sun.com if you need additional information or + * have any questions. + */ + +/** + * Classes used to communicate information between {@linkplain + * com.sun.mirror.apt.AnnotationProcessor annotation processors} and + * an annotation processing tool. + * + *

The {@code apt} tool and its associated API have been superseded + * by the standardized annotation processing API. The replacement for + * the functionality in this package is {@link + * javax.annotation.processing}. + * + * @since 1.5 + */ +package com.sun.mirror.apt; --- old/src/share/classes/com/sun/mirror/declaration/package.html 2009-07-26 21:26:46.000000000 -0700 +++ /dev/null 2009-07-06 20:02:10.000000000 -0700 @@ -1,44 +0,0 @@ - - - - - - - - -Interfaces used to model program element declarations. -A declaration is represented by the appropriate subinterface of -{@link com.sun.mirror.declaration.Declaration}, -and an annotation is represented as an -{@link com.sun.mirror.declaration.AnnotationMirror}. - -

Note that the apt tool and its associated APIs may be -changed or superseded in future j2se releases. - -@since 1.5 - - --- /dev/null 2009-07-06 20:02:10.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/declaration/package-info.java 2009-07-26 21:26:46.000000000 -0700 @@ -0,0 +1,40 @@ +/* + * Copyright 2004 Sun Microsystems, Inc. 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. Sun designates this + * particular file as subject to the "Classpath" exception as provided + * by Sun in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, + * CA 95054 USA or visit www.sun.com if you need additional information or + * have any questions. + */ + +/** + * Interfaces used to model program element declarations. A + * declaration is represented by the appropriate subinterface of + * {@link com.sun.mirror.declaration.Declaration}, and an annotation + * is represented as an {@link + * com.sun.mirror.declaration.AnnotationMirror}. + * + *

The {@code apt} tool and its associated API have been superseded + * by the standardized annotation processing API. The replacement for + * the functionality in this package is {@link + * javax.lang.model.element}. + * + * @since 1.5 + */ +package com.sun.mirror.declaration; --- old/src/share/classes/com/sun/mirror/type/package.html 2009-07-26 21:26:46.000000000 -0700 +++ /dev/null 2009-07-06 20:02:10.000000000 -0700 @@ -1,42 +0,0 @@ - - - - - - - - -Interfaces used to model types. -A type is represented by the appropriate subinterface of -{@link com.sun.mirror.type.TypeMirror}. - -

Note that the apt tool and its associated APIs may be -changed or superseded in future j2se releases. - -@since 1.5 - - --- /dev/null 2009-07-06 20:02:10.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/type/package-info.java 2009-07-26 21:26:46.000000000 -0700 @@ -0,0 +1,37 @@ +/* + * Copyright 2004 Sun Microsystems, Inc. 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. Sun designates this + * particular file as subject to the "Classpath" exception as provided + * by Sun in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, + * CA 95054 USA or visit www.sun.com if you need additional information or + * have any questions. + */ + +/** + * Interfaces used to model types. A type is represented by the + * appropriate subinterface of {@link com.sun.mirror.type.TypeMirror}. + * + *

The {@code apt} tool and its associated API have been + * superseded by the standardized annotation processing API. The + * replacement for the functionality in this package is {@link + * javax.lang.model.type}. + * + * @since 1.5 + */ +package com.sun.mirror.type; --- old/src/share/classes/com/sun/mirror/util/package.html 2009-07-26 21:26:47.000000000 -0700 +++ /dev/null 2009-07-06 20:02:10.000000000 -0700 @@ -1,42 +0,0 @@ - - - - - - - - -Utilities to assist in the processing of {@linkplain -com.sun.mirror.declaration declarations} and {@linkplain -com.sun.mirror.type types}. - -

Note that the apt tool and its associated APIs may be -changed or superseded in future j2se releases. - -@since 1.5 - - --- /dev/null 2009-07-06 20:02:10.000000000 -0700 +++ new/src/share/classes/com/sun/mirror/util/package-info.java 2009-07-26 21:26:46.000000000 -0700 @@ -0,0 +1,37 @@ +/* + * Copyright 2004 Sun Microsystems, Inc. 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. Sun designates this + * particular file as subject to the "Classpath" exception as provided + * by Sun in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, + * CA 95054 USA or visit www.sun.com if you need additional information or + * have any questions. + */ + +/** + * Utilities to assist in the processing of {@linkplain + * com.sun.mirror.declaration declarations} and {@linkplain + * com.sun.mirror.type types}. + * + *

The {@code apt} tool and its associated API have been superseded + * by the standardized annotation processing API. The replacement for + * the functionality in this package is {@link javax.lang.model.util}. + * + * @since 1.5 + */ +package com.sun.mirror.util;