--- old/src/java.compiler/share/classes/javax/lang/model/util/AbstractAnnotationValueVisitor7.java 2018-07-08 12:29:41.734001000 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/util/AbstractAnnotationValueVisitor7.java 2018-07-08 12:29:41.598001000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2018, 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 @@ -64,9 +64,12 @@ /** * Constructor for concrete subclasses to call. + * + * @deprecated Release 7 is obsolete; update to a visitor for a newer + * release level. */ - @SuppressWarnings("deprecation") // Superclass constructor deprecated + @Deprecated protected AbstractAnnotationValueVisitor7() { - super(); + super(); // Superclass constructor deprecated too } } --- old/src/java.compiler/share/classes/javax/lang/model/util/AbstractAnnotationValueVisitor8.java 2018-07-08 12:29:42.102001000 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/util/AbstractAnnotationValueVisitor8.java 2018-07-08 12:29:41.962001000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2018, 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 @@ -65,6 +65,7 @@ /** * Constructor for concrete subclasses to call. */ + @SuppressWarnings("deprecation") // Superclass constructor deprecated protected AbstractAnnotationValueVisitor8() { super(); } --- old/src/java.compiler/share/classes/javax/lang/model/util/AbstractElementVisitor7.java 2018-07-08 12:29:42.474001000 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/util/AbstractElementVisitor7.java 2018-07-08 12:29:42.334001000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2018, Oacle 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 @@ -67,9 +67,12 @@ public abstract class AbstractElementVisitor7 extends AbstractElementVisitor6 { /** * Constructor for concrete subclasses to call. + * + * @deprecated Release 7 is obsolete; update to a visitor for a newer + * release level. */ - @SuppressWarnings("deprecation") // Superclass constructor deprecated + @Deprecated protected AbstractElementVisitor7(){ - super(); + super(); // Superclass constructor deprecated too } } --- old/src/java.compiler/share/classes/javax/lang/model/util/AbstractElementVisitor8.java 2018-07-08 12:29:42.846001000 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/util/AbstractElementVisitor8.java 2018-07-08 12:29:42.706001000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2018, 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 @@ -68,6 +68,7 @@ /** * Constructor for concrete subclasses to call. */ + @SuppressWarnings("deprecation") // Superclass constructor deprecated protected AbstractElementVisitor8(){ super(); } --- old/src/java.compiler/share/classes/javax/lang/model/util/AbstractTypeVisitor7.java 2018-07-08 12:29:43.218001000 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/util/AbstractTypeVisitor7.java 2018-07-08 12:29:43.082001000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2018, 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 @@ -67,10 +67,13 @@ public abstract class AbstractTypeVisitor7 extends AbstractTypeVisitor6 { /** * Constructor for concrete subclasses to call. + * + * @deprecated Release 7 is obsolete; update to a visitor for a newer + * release level. */ - @SuppressWarnings("deprecation") // Superclass constructor deprecated + @Deprecated protected AbstractTypeVisitor7() { - super(); + super(); // Superclass constructor deprecated too } /** --- old/src/java.compiler/share/classes/javax/lang/model/util/AbstractTypeVisitor8.java 2018-07-08 12:29:43.594001000 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/util/AbstractTypeVisitor8.java 2018-07-08 12:29:43.458001000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2018, 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 @@ -68,6 +68,7 @@ /** * Constructor for concrete subclasses to call. */ + @SuppressWarnings("deprecation") // Superclass constructor deprecated protected AbstractTypeVisitor8() { super(); } --- old/src/java.compiler/share/classes/javax/lang/model/util/ElementKindVisitor7.java 2018-07-08 12:29:43.982001000 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/util/ElementKindVisitor7.java 2018-07-08 12:29:43.838001000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2018, 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 @@ -81,10 +81,13 @@ /** * Constructor for concrete subclasses; uses {@code null} for the * default value. + * + * @deprecated Release 7 is obsolete; update to a visitor for a newer + * release level. */ - @SuppressWarnings("deprecation") // Superclass constructor deprecated + @Deprecated protected ElementKindVisitor7() { - super(null); + super(null); // Superclass constructor deprecated too } /** @@ -92,10 +95,13 @@ * default value. * * @param defaultValue the value to assign to {@link #DEFAULT_VALUE} + * + * @deprecated Release 7 is obsolete; update to a visitor for a newer + * release level. */ - @SuppressWarnings("deprecation") // Superclass constructor deprecated + @Deprecated protected ElementKindVisitor7(R defaultValue) { - super(defaultValue); + super(defaultValue); // Superclass constructor deprecated too } /** --- old/src/java.compiler/share/classes/javax/lang/model/util/ElementKindVisitor8.java 2018-07-08 12:29:44.350001000 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/util/ElementKindVisitor8.java 2018-07-08 12:29:44.214001000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2018, 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 @@ -82,6 +82,7 @@ * Constructor for concrete subclasses; uses {@code null} for the * default value. */ + @SuppressWarnings("deprecation") // Superclass constructor deprecated protected ElementKindVisitor8() { super(null); } @@ -92,6 +93,7 @@ * * @param defaultValue the value to assign to {@link #DEFAULT_VALUE} */ + @SuppressWarnings("deprecation") // Superclass constructor deprecated protected ElementKindVisitor8(R defaultValue) { super(defaultValue); } --- old/src/java.compiler/share/classes/javax/lang/model/util/ElementScanner7.java 2018-07-08 12:29:44.718001000 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/util/ElementScanner7.java 2018-07-08 12:29:44.578001000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2018, 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 @@ -94,10 +94,13 @@ /** * Constructor for concrete subclasses; uses {@code null} for the * default value. + * + * @deprecated Release 7 is obsolete; update to a visitor for a newer + * release level. */ - @SuppressWarnings("deprecation") // Superclass constructor deprecated + @Deprecated protected ElementScanner7(){ - super(null); + super(null); // Superclass constructor deprecated too } /** @@ -105,10 +108,13 @@ * default value. * * @param defaultValue the default value + * + * @deprecated Release 7 is obsolete; update to a visitor for a newer + * release level. */ - @SuppressWarnings("deprecation") // Superclass constructor deprecated + @Deprecated protected ElementScanner7(R defaultValue){ - super(defaultValue); + super(defaultValue); // Superclass constructor deprecated too } /** --- old/src/java.compiler/share/classes/javax/lang/model/util/ElementScanner8.java 2018-07-08 12:29:45.114001000 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/util/ElementScanner8.java 2018-07-08 12:29:44.966001000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2018, 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 @@ -95,6 +95,7 @@ * Constructor for concrete subclasses; uses {@code null} for the * default value. */ + @SuppressWarnings("deprecation") // Superclass constructor deprecated protected ElementScanner8(){ super(null); } @@ -105,6 +106,7 @@ * * @param defaultValue the default value */ + @SuppressWarnings("deprecation") // Superclass constructor deprecated protected ElementScanner8(R defaultValue){ super(defaultValue); } --- old/src/java.compiler/share/classes/javax/lang/model/util/SimpleAnnotationValueVisitor7.java 2018-07-08 12:29:45.486001000 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/util/SimpleAnnotationValueVisitor7.java 2018-07-08 12:29:45.346001000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2018, 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 @@ -71,10 +71,13 @@ /** * Constructor for concrete subclasses; uses {@code null} for the * default value. + * + * @deprecated Release 7 is obsolete; update to a visitor for a newer + * release level. */ - @SuppressWarnings("deprecation") // Superclass constructor deprecated + @Deprecated protected SimpleAnnotationValueVisitor7() { - super(null); + super(null); // Superclass constructor deprecated too } /** @@ -82,9 +85,12 @@ * default value. * * @param defaultValue the value to assign to {@link #DEFAULT_VALUE} + * + * @deprecated Release 7 is obsolete; update to a visitor for a newer + * release level. */ - @SuppressWarnings("deprecation") // Superclass constructor deprecated + @Deprecated protected SimpleAnnotationValueVisitor7(R defaultValue) { - super(defaultValue); + super(defaultValue); // Superclass constructor deprecated too } } --- old/src/java.compiler/share/classes/javax/lang/model/util/SimpleAnnotationValueVisitor8.java 2018-07-08 12:29:45.846001000 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/util/SimpleAnnotationValueVisitor8.java 2018-07-08 12:29:45.710001000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2018, 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 @@ -72,6 +72,7 @@ * Constructor for concrete subclasses; uses {@code null} for the * default value. */ + @SuppressWarnings("deprecation") // Superclass constructor deprecated protected SimpleAnnotationValueVisitor8() { super(null); } @@ -82,6 +83,7 @@ * * @param defaultValue the value to assign to {@link #DEFAULT_VALUE} */ + @SuppressWarnings("deprecation") // Superclass constructor deprecated protected SimpleAnnotationValueVisitor8(R defaultValue) { super(defaultValue); } --- old/src/java.compiler/share/classes/javax/lang/model/util/SimpleElementVisitor7.java 2018-07-08 12:29:46.214001000 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/util/SimpleElementVisitor7.java 2018-07-08 12:29:46.070001000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2018, 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 @@ -77,10 +77,13 @@ /** * Constructor for concrete subclasses; uses {@code null} for the * default value. + * + * @deprecated Release 7 is obsolete; update to a visitor for a newer + * release level. */ - @SuppressWarnings("deprecation") // Superclass constructor deprecated + @Deprecated protected SimpleElementVisitor7(){ - super(null); + super(null); // Superclass constructor deprecated too } /** @@ -88,10 +91,13 @@ * default value. * * @param defaultValue the value to assign to {@link #DEFAULT_VALUE} + * + * @deprecated Release 7 is obsolete; update to a visitor for a newer + * release level. */ - @SuppressWarnings("deprecation") // Superclass constructor deprecated + @Deprecated protected SimpleElementVisitor7(R defaultValue){ - super(defaultValue); + super(defaultValue); // Superclass constructor deprecated too } /** --- old/src/java.compiler/share/classes/javax/lang/model/util/SimpleElementVisitor8.java 2018-07-08 12:29:46.586001000 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/util/SimpleElementVisitor8.java 2018-07-08 12:29:46.446001000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2018, 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 @@ -77,6 +77,7 @@ * Constructor for concrete subclasses; uses {@code null} for the * default value. */ + @SuppressWarnings("deprecation") // Superclass constructor deprecated protected SimpleElementVisitor8(){ super(null); } @@ -87,6 +88,7 @@ * * @param defaultValue the value to assign to {@link #DEFAULT_VALUE} */ + @SuppressWarnings("deprecation") // Superclass constructor deprecated protected SimpleElementVisitor8(R defaultValue){ super(defaultValue); } --- old/src/java.compiler/share/classes/javax/lang/model/util/SimpleTypeVisitor7.java 2018-07-08 12:29:46.966001000 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/util/SimpleTypeVisitor7.java 2018-07-08 12:29:46.830001000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2018, 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 @@ -77,10 +77,13 @@ /** * Constructor for concrete subclasses; uses {@code null} for the * default value. + * + * @deprecated Release 7 is obsolete; update to a visitor for a newer + * release level. */ - @SuppressWarnings("deprecation") // Superclass constructor deprecated + @Deprecated protected SimpleTypeVisitor7(){ - super(null); + super(null); // Superclass constructor deprecated too } /** @@ -88,10 +91,13 @@ * default value. * * @param defaultValue the value to assign to {@link #DEFAULT_VALUE} + * + * @deprecated Release 7 is obsolete; update to a visitor for a newer + * release level. */ - @SuppressWarnings("deprecation") // Superclass constructor deprecated + @Deprecated protected SimpleTypeVisitor7(R defaultValue){ - super(defaultValue); + super(defaultValue); // Superclass constructor deprecated too } /** --- old/src/java.compiler/share/classes/javax/lang/model/util/SimpleTypeVisitor8.java 2018-07-08 12:29:47.330001000 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/util/SimpleTypeVisitor8.java 2018-07-08 12:29:47.194001000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2018, 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 @@ -78,6 +78,7 @@ * Constructor for concrete subclasses; uses {@code null} for the * default value. */ + @SuppressWarnings("deprecation") // Superclass constructor deprecated protected SimpleTypeVisitor8(){ super(null); } @@ -88,6 +89,7 @@ * * @param defaultValue the value to assign to {@link #DEFAULT_VALUE} */ + @SuppressWarnings("deprecation") // Superclass constructor deprecated protected SimpleTypeVisitor8(R defaultValue){ super(defaultValue); } --- old/src/java.compiler/share/classes/javax/lang/model/util/TypeKindVisitor7.java 2018-07-08 12:29:47.698001000 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/util/TypeKindVisitor7.java 2018-07-08 12:29:47.562001000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2018, 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 @@ -78,10 +78,13 @@ /** * Constructor for concrete subclasses to call; uses {@code null} * for the default value. + * + * @deprecated Release 7 is obsolete; update to a visitor for a newer + * release level. */ - @SuppressWarnings("deprecation") // Superclass constructor deprecated + @Deprecated protected TypeKindVisitor7() { - super(null); + super(null); // Superclass constructor deprecated too } /** @@ -89,10 +92,13 @@ * for the default value. * * @param defaultValue the value to assign to {@link #DEFAULT_VALUE} + * + * @deprecated Release 7 is obsolete; update to a visitor for a newer + * release level. */ - @SuppressWarnings("deprecation") // Superclass constructor deprecated + @Deprecated protected TypeKindVisitor7(R defaultValue) { - super(defaultValue); + super(defaultValue); // Superclass constructor deprecated too } /** --- old/src/java.compiler/share/classes/javax/lang/model/util/TypeKindVisitor8.java 2018-07-08 12:29:48.070001000 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/util/TypeKindVisitor8.java 2018-07-08 12:29:47.930001000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2018, 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 @@ -79,6 +79,7 @@ * Constructor for concrete subclasses to call; uses {@code null} * for the default value. */ + @SuppressWarnings("deprecation") // Superclass constructor deprecated protected TypeKindVisitor8() { super(null); } @@ -89,6 +90,7 @@ * * @param defaultValue the value to assign to {@link #DEFAULT_VALUE} */ + @SuppressWarnings("deprecation") // Superclass constructor deprecated protected TypeKindVisitor8(R defaultValue) { super(defaultValue); } --- old/src/jdk.compiler/share/classes/com/sun/tools/javac/processing/PrintingProcessor.java 2018-07-08 12:29:48.546001000 -0700 +++ new/src/jdk.compiler/share/classes/com/sun/tools/javac/processing/PrintingProcessor.java 2018-07-08 12:29:48.402001000 -0700 @@ -123,7 +123,7 @@ enclosing != null && NestingKind.ANONYMOUS == // Use an anonymous class to determine anonymity! - (new SimpleElementVisitor7() { + (new SimpleElementVisitor9() { @Override @DefinedBy(Api.LANGUAGE_MODEL) public NestingKind visitType(TypeElement e, Void p) { return e.getNestingKind();