Skip to content

Conversation

@JoeWang-Java
Copy link
Member

@JoeWang-Java JoeWang-Java commented Dec 3, 2024

Disables XSLT and XPath Extension Functions by default, setting jdk.xml.enableExtensionFunctions to false.

Adjusted tests accordingly.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change requires CSR request JDK-8343002 to be approved
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issues

  • JDK-8343001: Adjust XSLT and XPath Extension Function Property (Enhancement - P4)
  • JDK-8343002: Adjust XSLT and XPath Extension Function Property (CSR)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22504/head:pull/22504
$ git checkout pull/22504

Update a local copy of the PR:
$ git checkout pull/22504
$ git pull https://git.openjdk.org/jdk.git pull/22504/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 22504

View PR using the GUI difftool:
$ git pr show -t 22504

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22504.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 3, 2024

👋 Welcome back joehw! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Dec 3, 2024

@JoeWang-Java This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8343001: Adjust XSLT and XPath Extension Function Property

Reviewed-by: rriggs, lancea

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 41 new commits pushed to the master branch:

  • 05ee562: 8343839: Detect patched modules and abort run-time image link early
  • 0664b51: 8344987: Test serviceability/sa/TestJhsdbJstackPrintVMLocks.java fails: NoClassDefFoundError: jdk/test/lib/Utils
  • 157a434: 8345389: Bump missed copyright years for JDK-8336768
  • a49f077: 8345221: Replace legacy with new Provider APIs in SunNativeGSS
  • 2be07b5: 8324491: Keyboard layout didn't keep its state if it was changed when dialog was active
  • f37f64d: 8343736: Test java/awt/Focus/UnaccessibleChoice/AccessibleChoiceTest.java failed: Choice can't be controlled by keyboard
  • 73b8b34: 8344368: IndependenceSwingTest.java and IndependenceAWTTest.java failed: Selected text & clipboard contents differs
  • 9267dfa: 8344589: Update IANA Language Subtag Registry to Version 2024-11-19
  • 293323c: 8340141: C1: rework ciMethod::equals following 8338471
  • 76e874c: 8345319: Fix the tag type in PoolEntry and AnnotationValue
  • ... and 31 more: https://git.openjdk.org/jdk/compare/68b1b94d1be686037e2aaef57c0d9adc594fac7a...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the rfr Pull request is ready for review label Dec 3, 2024
@openjdk
Copy link

openjdk bot commented Dec 3, 2024

@JoeWang-Java The following label will be automatically applied to this pull request:

  • core-libs

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the core-libs core-libs-dev@openjdk.org label Dec 3, 2024
@mlbridge
Copy link

mlbridge bot commented Dec 3, 2024

Webrevs

Copy link
Contributor

@LanceAndersen LanceAndersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall Looks good Joe

please see the comment below

* @param expectedResult Expected transformation result
**/
@Test(dataProvider = "document")
//@Test(dataProvider = "document")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason you have this commented out? If the test is not needed, it should be removed or use the 'disable' element and add a comment as to why this is disabled

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch - it was commented out for debugging the other tests.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Dec 3, 2024

{BasisLibrary.UNALLOWED_EXTENSION_ELEMENT_ERR,
"Use of the extension element ''{0}'' is not allowed when the secure processing feature is set to true."},
"Use of the extension function ''{0}'' is not allowed when extension "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it correct that "element" has been replaced by "function" here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"element" it is. Fixed.

* <p>State of secure processing feature.</p>
*/
private boolean _isNotSecureProcessing = true;
private boolean _isNotSecureProcessing = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An unfortunate double-negative state for the feature.
(Makes it hard to understand and easy to get confused about).

Comment on lines 66 to 71
public static boolean isWindows = false;
static {
if (System.getProperty("os.name").contains("Windows")) {
isWindows = true;
}
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be a direct assignment and final:

Suggested change
public static boolean isWindows = false;
static {
if (System.getProperty("os.name").contains("Windows")) {
isWindows = true;
}
};
public static final boolean isWindows = System.getProperty("os.name").contains("Windows");

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Dec 3, 2024
Copy link
Contributor

@RogerRiggs RogerRiggs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Dec 3, 2024
@JoeWang-Java
Copy link
Member Author

/integrate

@openjdk
Copy link

openjdk bot commented Dec 4, 2024

Going to push as commit 7ec36bb.
Since your change was applied there have been 44 commits pushed to the master branch:

  • c143138: 8345351: RISC-V: Rename macro-assembler routine cmpxchg_weak to weak_cmpxchg
  • 4237897: 8345341: Fix incorrect log message in JDI stop002t test
  • 82e8aa6: 8345415: Rollback JDK-8301991 change on xmlsecurity_de.properties
  • 05ee562: 8343839: Detect patched modules and abort run-time image link early
  • 0664b51: 8344987: Test serviceability/sa/TestJhsdbJstackPrintVMLocks.java fails: NoClassDefFoundError: jdk/test/lib/Utils
  • 157a434: 8345389: Bump missed copyright years for JDK-8336768
  • a49f077: 8345221: Replace legacy with new Provider APIs in SunNativeGSS
  • 2be07b5: 8324491: Keyboard layout didn't keep its state if it was changed when dialog was active
  • f37f64d: 8343736: Test java/awt/Focus/UnaccessibleChoice/AccessibleChoiceTest.java failed: Choice can't be controlled by keyboard
  • 73b8b34: 8344368: IndependenceSwingTest.java and IndependenceAWTTest.java failed: Selected text & clipboard contents differs
  • ... and 34 more: https://git.openjdk.org/jdk/compare/68b1b94d1be686037e2aaef57c0d9adc594fac7a...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Dec 4, 2024
@openjdk openjdk bot closed this Dec 4, 2024
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Dec 4, 2024
@openjdk
Copy link

openjdk bot commented Dec 4, 2024

@JoeWang-Java Pushed as commit 7ec36bb.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@JoeWang-Java JoeWang-Java deleted the JDK-8343001 branch December 4, 2024 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core-libs core-libs-dev@openjdk.org integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

3 participants