Projects
openEuler:24.03:SP1:Everything
openjdk-1.8.0
_service:tar_scm:fixing-a-bug-in-the-processing...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:fixing-a-bug-in-the-processing-of-default-attributes.patch of Package openjdk-1.8.0
From 93a6617cd05d494c7a761c5565e412f03aefb569 Mon Sep 17 00:00:00 2001 Date: Thu, 27 Jul 2023 12:45:54 +0800 Subject: [PATCH] [Huawei]Fixing a bug in the processing of default attributes --- .../apache/xerces/internal/impl/xs/XMLSchemaValidator.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jaxp/src/com/sun/org/apache/xerces/internal/impl/xs/XMLSchemaValidator.java b/jaxp/src/com/sun/org/apache/xerces/internal/impl/xs/XMLSchemaValidator.java index 020e35cd4..7a2b8efb5 100644 --- a/jaxp/src/com/sun/org/apache/xerces/internal/impl/xs/XMLSchemaValidator.java +++ b/jaxp/src/com/sun/org/apache/xerces/internal/impl/xs/XMLSchemaValidator.java @@ -2943,9 +2943,11 @@ public class XMLSchemaValidator attName = new QName(null, currDecl.fName, currDecl.fName, currDecl.fTargetNamespace); String normalized = (defaultValue != null) ? defaultValue.stringValue() : ""; - int attrIndex = attributes.addAttribute(attName, "CDATA", normalized); + int attrIndex; if (attributes instanceof XMLAttributesImpl) { XMLAttributesImpl attrs = (XMLAttributesImpl) attributes; + attrIndex = attrs.getLength(); + attrs.addAttributeNS(attName, "CDATA", normalized); boolean schemaId = defaultValue != null && defaultValue.memberType != null @@ -2953,6 +2955,9 @@ public class XMLSchemaValidator : currDecl.fType.isIDType(); attrs.setSchemaId(attrIndex, schemaId); } + else { + attrIndex = attributes.addAttribute(attName, "CDATA", normalized); + } if (fAugPSVI) { -- 2.19.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2