Skip to content

Commit b5a3d28

Browse files
shruacha1234JoeWang-Java
authored andcommittedMay 18, 2022
8285097: Duplicate XML keys in XPATHErrorResources.java and XSLTErrorResources.java
Reviewed-by: joehw, tsteele
1 parent 6b9c152 commit b5a3d28

13 files changed

+37
-42
lines changed
 

‎src/java.xml/share/classes/com/sun/org/apache/xalan/internal/res/XSLTErrorResources.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
33
*/
44
/*
55
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -31,6 +31,7 @@
3131
* Array. You also need to update MAX_CODE for error strings
3232
* and MAX_WARNING for warnings ( Needed for only information
3333
* purpose )
34+
* @LastModified: May 2022
3435
*/
3536
public class XSLTErrorResources extends ListResourceBundle
3637
{
@@ -1333,7 +1334,6 @@ public Object[][] getContents()
13331334
// for the Xalan Process command line. "Process" is the name of a Java class,
13341335
// and should not be translated.
13351336
{ "xslProc_option", "Xalan-J command line Process class options:"},
1336-
{ "xslProc_option", "Xalan-J command line Process class options\u003a"},
13371337
{ "xslProc_invalid_xsltc_option", "The option {0} is not supported in XSLTC mode."},
13381338
{ "xslProc_invalid_xalan_option", "The option {0} can only be used with -XSLTC."},
13391339
{ "xslProc_no_input", "Error: No stylesheet or input xml is specified. Run this command without any option for usage instructions."},

‎src/java.xml/share/classes/com/sun/org/apache/xpath/internal/objects/XRTreeFragSelectWrapper.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
33
*/
44
/*
55
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -32,7 +32,7 @@
3232
/**
3333
* This class makes an select statement act like an result tree fragment.
3434
*
35-
* @LastModified: Oct 2017
35+
* @LastModified: Apr 2022
3636
*/
3737
public class XRTreeFragSelectWrapper extends XRTreeFrag implements Cloneable
3838
{
@@ -152,7 +152,7 @@ public int rtf()
152152
*/
153153
public DTMIterator asNodeIterator()
154154
{
155-
throw new RuntimeException(XSLMessages.createXPATHMessage(XPATHErrorResources.ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER, null)); //"asNodeIterator() not supported by XRTreeFragSelectWrapper!");
155+
throw new RuntimeException(XSLMessages.createXPATHMessage(XPATHErrorResources.ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER, null)); //"asNodeIterator() not supported by XRTreeFragSelectWrapper!");
156156
}
157157

158158
}

‎src/java.xml/share/classes/com/sun/org/apache/xpath/internal/res/XPATHErrorResources.java

+2-7
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* Also you need to update the count of messages(MAX_CODE)or
3232
* the count of warnings(MAX_WARNING) [ Information purpose only]
3333
* @xsl.usage advanced
34-
* @LastModified: Jan 2022
34+
* @LastModified: Apr 2022
3535
*/
3636
public class XPATHErrorResources extends ListResourceBundle
3737
{
@@ -595,7 +595,7 @@ public class XPATHErrorResources extends ListResourceBundle
595595
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
596596
"rtf() not supported by XRTreeFragSelectWrapper"},
597597

598-
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
598+
{ ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
599599
"asNodeIterator() not supported by XRTreeFragSelectWrapper"},
600600

601601
/** detach() not supported by XRTreeFragSelectWrapper */
@@ -787,11 +787,6 @@ public class XPATHErrorResources extends ListResourceBundle
787787

788788
/** Field ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL */
789789

790-
{ ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL,
791-
"Source and/or Return Type can not be null"},
792-
793-
/** Field ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL */
794-
795790
{ ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL,
796791
"Source and/or Return Type can not be null"},
797792

‎src/java.xml/share/classes/com/sun/org/apache/xpath/internal/res/XPATHErrorResources_de.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2022, Oracle and/or its affiliates. All rights reserved.
33
*/
44
/*
55
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -31,7 +31,7 @@
3131
* Also you need to update the count of messages(MAX_CODE)or
3232
* the count of warnings(MAX_WARNING) [ Information purpose only]
3333
* @xsl.usage advanced
34-
* @LastModified: Nov 2021
34+
* @LastModified: May 2022
3535
*/
3636
public class XPATHErrorResources_de extends ListResourceBundle
3737
{
@@ -592,7 +592,7 @@ public class XPATHErrorResources_de extends ListResourceBundle
592592
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
593593
"rtf() nicht unterst\u00FCtzt von XRTreeFragSelectWrapper"},
594594

595-
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
595+
{ ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
596596
"asNodeIterator() nicht unterst\u00FCtzt von XRTreeFragSelectWrapper"},
597597

598598
/** detach() not supported by XRTreeFragSelectWrapper */

‎src/java.xml/share/classes/com/sun/org/apache/xpath/internal/res/XPATHErrorResources_es.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
2-
* reserved comment block
3-
* DO NOT REMOVE OR ALTER!
2+
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
43
*/
54
/*
65
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -32,6 +31,7 @@
3231
* Also you need to update the count of messages(MAX_CODE)or
3332
* the count of warnings(MAX_WARNING) [ Information purpose only]
3433
* @xsl.usage advanced
34+
* @LastModified: May 2022
3535
*/
3636
public class XPATHErrorResources_es extends ListResourceBundle
3737
{
@@ -578,7 +578,7 @@ public class XPATHErrorResources_es extends ListResourceBundle
578578
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
579579
"rtf() no soportado por XRTreeFragSelectWrapper"},
580580

581-
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
581+
{ ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
582582
"asNodeIterator() no soportado por XRTreeFragSelectWrapper"},
583583

584584
/** detach() not supported by XRTreeFragSelectWrapper */

‎src/java.xml/share/classes/com/sun/org/apache/xpath/internal/res/XPATHErrorResources_fr.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
2-
* reserved comment block
3-
* DO NOT REMOVE OR ALTER!
2+
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
43
*/
54
/*
65
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -32,6 +31,7 @@
3231
* Also you need to update the count of messages(MAX_CODE)or
3332
* the count of warnings(MAX_WARNING) [ Information purpose only]
3433
* @xsl.usage advanced
34+
* @LastModified: May 2022
3535
*/
3636
public class XPATHErrorResources_fr extends ListResourceBundle
3737
{
@@ -578,7 +578,7 @@ public class XPATHErrorResources_fr extends ListResourceBundle
578578
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
579579
"rtf() non pris en charge par XRTreeFragSelectWrapper"},
580580

581-
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
581+
{ ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
582582
"asNodeIterator() non pris en charge par XRTreeFragSelectWrapper"},
583583

584584
/** detach() not supported by XRTreeFragSelectWrapper */

‎src/java.xml/share/classes/com/sun/org/apache/xpath/internal/res/XPATHErrorResources_it.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
2-
* reserved comment block
3-
* DO NOT REMOVE OR ALTER!
2+
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
43
*/
54
/*
65
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -32,6 +31,7 @@
3231
* Also you need to update the count of messages(MAX_CODE)or
3332
* the count of warnings(MAX_WARNING) [ Information purpose only]
3433
* @xsl.usage advanced
34+
* @LastModified: May 2022
3535
*/
3636
public class XPATHErrorResources_it extends ListResourceBundle
3737
{
@@ -578,7 +578,7 @@ public class XPATHErrorResources_it extends ListResourceBundle
578578
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
579579
"rtf() non supportato da XRTreeFragSelectWrapper"},
580580

581-
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
581+
{ ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
582582
"asNodeIterator() non supportato da XRTreeFragSelectWrapper"},
583583

584584
/** detach() not supported by XRTreeFragSelectWrapper */

‎src/java.xml/share/classes/com/sun/org/apache/xpath/internal/res/XPATHErrorResources_ja.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2022, Oracle and/or its affiliates. All rights reserved.
33
*/
44
/*
55
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -31,7 +31,7 @@
3131
* Also you need to update the count of messages(MAX_CODE)or
3232
* the count of warnings(MAX_WARNING) [ Information purpose only]
3333
* @xsl.usage advanced
34-
* @LastModified: Nov 2021
34+
* @LastModified: May 2022
3535
*/
3636
public class XPATHErrorResources_ja extends ListResourceBundle
3737
{
@@ -592,7 +592,7 @@ public class XPATHErrorResources_ja extends ListResourceBundle
592592
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
593593
"rtf()\u306FXRTreeFragSelectWrapper\u306B\u3088\u3063\u3066\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093"},
594594

595-
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
595+
{ ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
596596
"asNodeIterator()\u306FXRTreeFragSelectWrapper\u306B\u3088\u3063\u3066\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093"},
597597

598598
/** detach() not supported by XRTreeFragSelectWrapper */

‎src/java.xml/share/classes/com/sun/org/apache/xpath/internal/res/XPATHErrorResources_ko.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
2-
* reserved comment block
3-
* DO NOT REMOVE OR ALTER!
2+
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
43
*/
54
/*
65
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -32,6 +31,7 @@
3231
* Also you need to update the count of messages(MAX_CODE)or
3332
* the count of warnings(MAX_WARNING) [ Information purpose only]
3433
* @xsl.usage advanced
34+
* @LastModified: May 2022
3535
*/
3636
public class XPATHErrorResources_ko extends ListResourceBundle
3737
{
@@ -578,7 +578,7 @@ public class XPATHErrorResources_ko extends ListResourceBundle
578578
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
579579
"XRTreeFragSelectWrapper\uB294 rtf()\uB97C \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},
580580

581-
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
581+
{ ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
582582
"XRTreeFragSelectWrapper\uB294 asNodeIterator()\uB97C \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},
583583

584584
/** detach() not supported by XRTreeFragSelectWrapper */

‎src/java.xml/share/classes/com/sun/org/apache/xpath/internal/res/XPATHErrorResources_pt_BR.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
2-
* reserved comment block
3-
* DO NOT REMOVE OR ALTER!
2+
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
43
*/
54
/*
65
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -32,6 +31,7 @@
3231
* Also you need to update the count of messages(MAX_CODE)or
3332
* the count of warnings(MAX_WARNING) [ Information purpose only]
3433
* @xsl.usage advanced
34+
* @LastModified: May 2022
3535
*/
3636
public class XPATHErrorResources_pt_BR extends ListResourceBundle
3737
{
@@ -578,7 +578,7 @@ public class XPATHErrorResources_pt_BR extends ListResourceBundle
578578
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
579579
"rtf() n\u00E3o suportado por XRTreeFragSelectWrapper"},
580580

581-
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
581+
{ ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
582582
"asNodeIterator() n\u00E3o suportado por XRTreeFragSelectWrapper"},
583583

584584
/** detach() not supported by XRTreeFragSelectWrapper */

‎src/java.xml/share/classes/com/sun/org/apache/xpath/internal/res/XPATHErrorResources_sv.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
2-
* reserved comment block
3-
* DO NOT REMOVE OR ALTER!
2+
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
43
*/
54
/*
65
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -32,6 +31,7 @@
3231
* Also you need to update the count of messages(MAX_CODE)or
3332
* the count of warnings(MAX_WARNING) [ Information purpose only]
3433
* @xsl.usage advanced
34+
* @LastModified: May 2022
3535
*/
3636
public class XPATHErrorResources_sv extends ListResourceBundle
3737
{
@@ -578,7 +578,7 @@ public class XPATHErrorResources_sv extends ListResourceBundle
578578
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
579579
"rtf() st\u00F6ds inte av XRTreeFragSelectWrapper"},
580580

581-
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
581+
{ ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
582582
"asNodeIterator() st\u00F6ds inte av XRTreeFragSelectWrapper"},
583583

584584
/** detach() not supported by XRTreeFragSelectWrapper */

‎src/java.xml/share/classes/com/sun/org/apache/xpath/internal/res/XPATHErrorResources_zh_CN.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2022, Oracle and/or its affiliates. All rights reserved.
33
*/
44
/*
55
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -31,7 +31,7 @@
3131
* Also you need to update the count of messages(MAX_CODE)or
3232
* the count of warnings(MAX_WARNING) [ Information purpose only]
3333
* @xsl.usage advanced
34-
* @LastModified: Nov 2021
34+
* @LastModified: May 2022
3535
*/
3636
public class XPATHErrorResources_zh_CN extends ListResourceBundle
3737
{
@@ -592,7 +592,7 @@ public class XPATHErrorResources_zh_CN extends ListResourceBundle
592592
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
593593
"XRTreeFragSelectWrapper \u4E0D\u652F\u6301 rtf()"},
594594

595-
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
595+
{ ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
596596
"XRTreeFragSelectWrapper \u4E0D\u652F\u6301 asNodeIterator()"},
597597

598598
/** detach() not supported by XRTreeFragSelectWrapper */

‎src/java.xml/share/classes/com/sun/org/apache/xpath/internal/res/XPATHErrorResources_zh_TW.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
2-
* reserved comment block
3-
* DO NOT REMOVE OR ALTER!
2+
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
43
*/
54
/*
65
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -32,6 +31,7 @@
3231
* Also you need to update the count of messages(MAX_CODE)or
3332
* the count of warnings(MAX_WARNING) [ Information purpose only]
3433
* @xsl.usage advanced
34+
* @LastModified: May 2022
3535
*/
3636
public class XPATHErrorResources_zh_TW extends ListResourceBundle
3737
{
@@ -578,7 +578,7 @@ public class XPATHErrorResources_zh_TW extends ListResourceBundle
578578
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
579579
"XRTreeFragSelectWrapper \u4E0D\u652F\u63F4 rtf()"},
580580

581-
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
581+
{ ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
582582
"XRTreeFragSelectWrapper \u4E0D\u652F\u63F4 asNodeIterator()"},
583583

584584
/** detach() not supported by XRTreeFragSelectWrapper */

0 commit comments

Comments
 (0)
Please sign in to comment.