src/share/classes/javax/lang/model/element/AnnotationValueVisitor.java

changeset 1522
09f65aad4759
parent 554
9d9f26857129
child 2525
2eb010b6cb22
     1.1 --- a/src/share/classes/javax/lang/model/element/AnnotationValueVisitor.java	Wed Jan 23 13:27:24 2013 -0800
     1.2 +++ b/src/share/classes/javax/lang/model/element/AnnotationValueVisitor.java	Wed Jan 23 20:11:07 2013 -0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -61,6 +61,18 @@
    1.11   * parameters, return type, etc. rather than one of the abstract
    1.12   * classes.
    1.13   *
    1.14 + * <p>Note that methods to accommodate new language constructs could
    1.15 + * be added in a source <em>compatible</em> way if they were added as
    1.16 + * <em>default methods</em>.  However, default methods are only
    1.17 + * available on Java SE 8 and higher releases and the {@code
    1.18 + * javax.lang.model.*} packages bundled in Java SE 8 are required to
    1.19 + * also be runnable on Java SE 7.  Therefore, default methods
    1.20 + * <em>cannot</em> be used when extending {@code javax.lang.model.*}
    1.21 + * to cover Java SE 8 language features.  However, default methods may
    1.22 + * be used in subsequent revisions of the {@code javax.lang.model.*}
    1.23 + * packages that are only required to run on Java SE 8 and higher
    1.24 + * platform versions.
    1.25 + *
    1.26   * @param <R> the return type of this visitor's methods
    1.27   * @param <P> the type of the additional parameter to this visitor's methods.
    1.28   * @author Joseph D. Darcy

mercurial