Skip to content

Java 13 support#241

Open
frecco75 wants to merge 1 commit intosta-szek:masterfrom
frecco75:feat/java13-support
Open

Java 13 support#241
frecco75 wants to merge 1 commit intosta-szek:masterfrom
frecco75:feat/java13-support

Conversation

@frecco75
Copy link
Copy Markdown
Collaborator

Regarding to the issue #239, this is a PR for JDK 13 support.

@frecco75 frecco75 force-pushed the feat/java13-support branch from c97b81c to c2f509e Compare March 23, 2020 15:28
@frecco75 frecco75 requested review from ekoutanov and sta-szek March 24, 2020 00:11
outputFormats = ['XML', 'HTML']
}

task wrapper(type: Wrapper) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

why removed?

task junit5CodeCoverageReport(type: JacocoReport) {
executionData junitPlatformTest
sourceSets sourceSets.main
sourceDirectories = files(project.sourceSets.main.allSource.srcDirs)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

why removed?


buildScan {
licenseAgreementUrl = 'https://gradle.com/terms-of-service'
licenseAgree = 'yes'
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

why removed?
it was required for bintray in order to release lib to repository

gradleEnterprise {
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

i see, it was moved here.

} catch (IllegalAccessException | NoSuchFieldException e) {
throw new GetOrSetValueException(MODIFIERS_FIELD_NAME_IN_FIELD_CLASS, clazz, e);
}
field.setAccessible(true);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

i guess it is worth to surround with that try/catch anyway.
it is part of logic to throw throw new GetOrSetValueException(MODIFIERS_FIELD_NAME_IN_FIELD_CLASS, clazz, e); if smth goes wrong here.

right now i cannot recall why such implementation was done, but i remember that field.setAccessible(true); was not enough.

cant it be that you will adjust to java 13 and at the same time it will not work for java 8 anymore?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes we need to try with Java8 for safety.

I think your code was probably for final attributes, when we try to make them accessible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants