-
Notifications
You must be signed in to change notification settings - Fork 26
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
Java 13 support #241
base: master
Are you sure you want to change the base?
Java 13 support #241
Conversation
c97b81c
to
c2f509e
Compare
@@ -125,10 +119,6 @@ pitest { | |||
outputFormats = ['XML', 'HTML'] | |||
} | |||
|
|||
task wrapper(type: Wrapper) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why removed?
@@ -108,8 +104,6 @@ afterEvaluate { | |||
task junit5CodeCoverageReport(type: JacocoReport) { | |||
executionData junitPlatformTest | |||
sourceSets sourceSets.main | |||
sourceDirectories = files(project.sourceSets.main.allSource.srcDirs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why removed?
@@ -34,12 +33,6 @@ apply plugin: 'jacoco' | |||
apply plugin: 'org.junit.platform.gradle.plugin' | |||
apply plugin: 'maven-publish' | |||
|
|||
buildScan { | |||
licenseAgreementUrl = 'https://gradle.com/terms-of-service' | |||
licenseAgree = 'yes' |
There was a problem hiding this comment.
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' |
There was a problem hiding this comment.
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.
src/test/java/pl/pojo/tester/internal/field/primitive/AbstractPrimitiveValueChangerTest.java
Show resolved
Hide resolved
} catch (IllegalAccessException | NoSuchFieldException e) { | ||
throw new GetOrSetValueException(MODIFIERS_FIELD_NAME_IN_FIELD_CLASS, clazz, e); | ||
} | ||
field.setAccessible(true); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Regarding to the issue #239, this is a PR for JDK 13 support.