Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move ide modules job to JDK 11 and fix tests where needed. #5144

Merged
merged 1 commit into from
Dec 24, 2022

Conversation

mbien
Copy link
Member

@mbien mbien commented Dec 24, 2022

  • don't test JDK APIs, lets assume that they work.
  • JDK 11 fixes: javac path and java.lang.Module classname conflict.
  • fix WSDLSchemaValidatorTest assertion, some xml validation errors seem to appear twice on newer JDKs.

meta issue: #4904

 - don't test JDK APIs.
 - JDK 11 fixes: javac path and java.lang.Module classname conflict.
 - fix WSDLSchemaValidatorTest assertion, some xml validation errors
   seem to appear twice on newer JDKs.
@mbien mbien added CI Continuous Integration tests labels Dec 24, 2022
@mbien mbien added this to the NB17 milestone Dec 24, 2022
@mbien mbien marked this pull request as ready for review December 24, 2022 03:51
Copy link
Contributor

@matthiasblaesing matthiasblaesing left a comment

Choose a reason for hiding this comment

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

Thanks - look sane to me.

@@ -167,7 +168,13 @@ private void validate(URI uri, int expectedErrorCount)
assertNotNull(vr.getValidationResult());

ValidationHelper.dumpErrors(vr);
assertTrue("expect error " + expectedErrorCount, vr.getValidationResult().size() == expectedErrorCount);

// some missing element errors appear twice on newer JDKs
Copy link
Contributor

Choose a reason for hiding this comment

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

Could reproduce the problem in JDK 19 (17 was ok).

Copy link
Member Author

Choose a reason for hiding this comment

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

might depend on the update release version since it is also reproducible on JDK 11 with the zulu distribution:
https://github.com/apache/netbeans/actions/runs/3761176522/jobs/6394078954#step:94:2272

     [junit] Testcase: testValidateMessageNoName(org.netbeans.modules.xml.wsdl.validator.WSDLSchemaValidatorTest):	FAILED
    [junit] expect error 2
    [junit] junit.framework.AssertionFailedError: expect error 2
    [junit] 	at org.netbeans.modules.xml.wsdl.validator.WSDLSchemaValidatorTest.validate(WSDLSchemaValidatorTest.java:170)

i vaguely remember that xml libs got an update in OpenJDK, I just don't know the backporting rules for things like that.

@mbien mbien merged commit b350a4a into apache:master Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants