You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by el...@apache.org on 2026/07/19 12:31:03 UTC

(xerces-j) branch fix-versionnotsupported-message created (now 376d075e7)

This is an automated email from the ASF dual-hosted git repository.

elharo pushed a change to branch fix-versionnotsupported-message
in repository https://gitbox.apache.org/repos/asf/xerces-j.git


      at 376d075e7 Update VersionNotSupported error message to include XML 1.1

This branch includes the following new commits:

     new 376d075e7 Update VersionNotSupported error message to include XML 1.1

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org


(xerces-j) 01/01: Update VersionNotSupported error message to include XML 1.1

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch fix-versionnotsupported-message
in repository https://gitbox.apache.org/repos/asf/xerces-j.git

commit 376d075e7226264ec6c43802c20f6f51286cc743
Author: elharo <el...@users.noreply.github.com>
AuthorDate: Sun Jul 19 12:30:54 2026 +0000

    Update VersionNotSupported error message to include XML 1.1
    
    [XERCESJ-841] The error message for unsupported XML versions now says
    'only XML 1.0 and XML 1.1 are supported' instead of 'only XML 1.0
    is supported'. Removed the now-redundant VersionNotSupported11
    message key and getVersionNotSupportedKey() overrides in the XML 1.1
    scanner subclasses.
---
 src/org/apache/xerces/impl/XML11DTDScannerImpl.java      | 7 -------
 src/org/apache/xerces/impl/XML11DocumentScannerImpl.java | 7 -------
 src/org/apache/xerces/impl/msg/XMLMessages.properties    | 3 +--
 3 files changed, 1 insertion(+), 16 deletions(-)

diff --git a/src/org/apache/xerces/impl/XML11DTDScannerImpl.java b/src/org/apache/xerces/impl/XML11DTDScannerImpl.java
index c8c39d2bc..c114104cb 100644
--- a/src/org/apache/xerces/impl/XML11DTDScannerImpl.java
+++ b/src/org/apache/xerces/impl/XML11DTDScannerImpl.java
@@ -244,11 +244,4 @@ public class XML11DTDScannerImpl
         return version.equals("1.1") || version.equals ("1.0");
     } // versionSupported(String):  boolean
     
-    // returns the error message key for unsupported
-    // versions of XML with respect to the version of
-    // XML understood by this scanner.
-    protected String getVersionNotSupportedKey () {
-        return "VersionNotSupported11";
-    } // getVersionNotSupportedKey: String
-
 } // class XML11DTDScannerImpl
diff --git a/src/org/apache/xerces/impl/XML11DocumentScannerImpl.java b/src/org/apache/xerces/impl/XML11DocumentScannerImpl.java
index 8ff483b7e..baedf7047 100644
--- a/src/org/apache/xerces/impl/XML11DocumentScannerImpl.java
+++ b/src/org/apache/xerces/impl/XML11DocumentScannerImpl.java
@@ -539,11 +539,4 @@ public class XML11DocumentScannerImpl
         return (version.equals("1.1") || version.equals("1.0"));
     } // versionSupported(String):  boolean
     
-    // returns the error message key for unsupported
-    // versions of XML with respect to the version of
-    // XML understood by this scanner.
-    protected String getVersionNotSupportedKey () {
-        return "VersionNotSupported11";
-    } // getVersionNotSupportedKey: String
-
 } // class XML11DocumentScannerImpl
diff --git a/src/org/apache/xerces/impl/msg/XMLMessages.properties b/src/org/apache/xerces/impl/msg/XMLMessages.properties
index b936b33f2..e1ef52400 100644
--- a/src/org/apache/xerces/impl/msg/XMLMessages.properties
+++ b/src/org/apache/xerces/impl/msg/XMLMessages.properties
@@ -105,8 +105,7 @@
         PI_NOT_IN_ONE_ENTITY = The processing instruction is not enclosed in the same entity.
 # 2.8 Prolog and Document Type Declaration
         VersionInfoInvalid = Invalid version \"{0}\".
-        VersionNotSupported = XML version \"{0}\" is not supported, only XML 1.0 is supported.
-        VersionNotSupported11 = XML version \"{0}\" is not supported, only XML 1.0 and XML 1.1 are supported.
+        VersionNotSupported = XML version \"{0}\" is not supported, only XML 1.0 and XML 1.1 are supported.
 # 4.1 Character and Entity References
         DigitRequiredInCharRef = A decimal representation must immediately follow the \"&#\" in a character reference.
         HexdigitRequiredInCharRef = A hexadecimal representation must immediately follow the \"&#x\" in a character reference.


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org