8176541: XML deprecation "since" values should use 1.x version form for 1.8 and earlier
authorjoehw
Tue, 14 Mar 2017 18:56:46 -0700
changeset 44280 d299a23c65e2
parent 44279 4dd7436ba1aa
child 44281 47ff6e3034d2
8176541: XML deprecation "since" values should use 1.x version form for 1.8 and earlier Reviewed-by: darcy, rriggs, smarks
jaxp/src/java.xml/share/classes/javax/xml/stream/XMLEventFactory.java
jaxp/src/java.xml/share/classes/javax/xml/stream/XMLInputFactory.java
jaxp/src/java.xml/share/classes/javax/xml/stream/XMLOutputFactory.java
jaxp/src/java.xml/share/classes/org/xml/sax/AttributeList.java
jaxp/src/java.xml/share/classes/org/xml/sax/DocumentHandler.java
jaxp/src/java.xml/share/classes/org/xml/sax/Parser.java
jaxp/src/java.xml/share/classes/org/xml/sax/helpers/ParserFactory.java
--- a/jaxp/src/java.xml/share/classes/javax/xml/stream/XMLEventFactory.java	Tue Mar 14 15:52:44 2017 -0700
+++ b/jaxp/src/java.xml/share/classes/javax/xml/stream/XMLEventFactory.java	Tue Mar 14 18:56:46 2017 -0700
@@ -155,7 +155,7 @@
    *              #newFactory(java.lang.String, java.lang.ClassLoader)}
    *              method defines no changes in behavior.
    */
-  @Deprecated(since="7")
+  @Deprecated(since="1.7")
   public static XMLEventFactory newInstance(String factoryId,
           ClassLoader classLoader)
           throws FactoryConfigurationError {
--- a/jaxp/src/java.xml/share/classes/javax/xml/stream/XMLInputFactory.java	Tue Mar 14 15:52:44 2017 -0700
+++ b/jaxp/src/java.xml/share/classes/javax/xml/stream/XMLInputFactory.java	Tue Mar 14 18:56:46 2017 -0700
@@ -222,7 +222,7 @@
    *   java.util.ServiceConfigurationError service configuration error} or if
    *   the implementation is not available or cannot be instantiated.
    */
-  @Deprecated(since="7")
+  @Deprecated(since="1.7")
   public static XMLInputFactory newFactory()
     throws FactoryConfigurationError
   {
@@ -244,7 +244,7 @@
    *              #newFactory(java.lang.String, java.lang.ClassLoader)} method
    *              defines no changes in behavior.
    */
-  @Deprecated(since="7")
+  @Deprecated(since="1.7")
   public static XMLInputFactory newInstance(String factoryId,
           ClassLoader classLoader)
           throws FactoryConfigurationError {
--- a/jaxp/src/java.xml/share/classes/javax/xml/stream/XMLOutputFactory.java	Tue Mar 14 15:52:44 2017 -0700
+++ b/jaxp/src/java.xml/share/classes/javax/xml/stream/XMLOutputFactory.java	Tue Mar 14 18:56:46 2017 -0700
@@ -222,7 +222,7 @@
    *              Use the new method {@link #newFactory(java.lang.String,
    *              java.lang.ClassLoader)} instead.
    */
-  @Deprecated(since="7")
+  @Deprecated(since="1.7")
   public static XMLInputFactory newInstance(String factoryId,
           ClassLoader classLoader)
           throws FactoryConfigurationError {
--- a/jaxp/src/java.xml/share/classes/org/xml/sax/AttributeList.java	Tue Mar 14 15:52:44 2017 -0700
+++ b/jaxp/src/java.xml/share/classes/org/xml/sax/AttributeList.java	Tue Mar 14 18:56:46 2017 -0700
@@ -93,7 +93,7 @@
  * @see org.xml.sax.DocumentHandler#startElement startElement
  * @see org.xml.sax.helpers.AttributeListImpl AttributeListImpl
  */
-@Deprecated(since="5")
+@Deprecated(since="1.5")
 public interface AttributeList {
 
 
--- a/jaxp/src/java.xml/share/classes/org/xml/sax/DocumentHandler.java	Tue Mar 14 15:52:44 2017 -0700
+++ b/jaxp/src/java.xml/share/classes/org/xml/sax/DocumentHandler.java	Tue Mar 14 18:56:46 2017 -0700
@@ -68,7 +68,7 @@
  * @see org.xml.sax.Locator
  * @see org.xml.sax.HandlerBase
  */
-@Deprecated(since="5")
+@Deprecated(since="1.5")
 public interface DocumentHandler {
 
 
--- a/jaxp/src/java.xml/share/classes/org/xml/sax/Parser.java	Tue Mar 14 15:52:44 2017 -0700
+++ b/jaxp/src/java.xml/share/classes/org/xml/sax/Parser.java	Tue Mar 14 18:56:46 2017 -0700
@@ -73,7 +73,7 @@
  * @see org.xml.sax.HandlerBase
  * @see org.xml.sax.InputSource
  */
-@Deprecated(since="5")
+@Deprecated(since="1.5")
 public interface Parser
 {
 
--- a/jaxp/src/java.xml/share/classes/org/xml/sax/helpers/ParserFactory.java	Tue Mar 14 15:52:44 2017 -0700
+++ b/jaxp/src/java.xml/share/classes/org/xml/sax/helpers/ParserFactory.java	Tue Mar 14 18:56:46 2017 -0700
@@ -64,7 +64,7 @@
  * @version 2.0.1 (sax2r2)
  */
 @SuppressWarnings( "deprecation" )
-@Deprecated(since="5")
+@Deprecated(since="1.5")
 public class ParserFactory {
     private static SecuritySupport ss = new SecuritySupport();