Skip to content

Commit

Permalink
[ci maven-central-release] Merge pull request #2022 from mockito/cons…
Browse files Browse the repository at this point in the history
…tructor-dispatch

Only apply argument on illegal module access for inline tests if Java version is at least 9.
  • Loading branch information
raphw committed Aug 24, 2020
2 parents 76a91f0 + f48b98a commit 7a350f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions subprojects/inline/inline.gradle
Expand Up @@ -13,6 +13,8 @@ tasks.javadoc.enabled = false
test.maxHeapSize = "256m"
retryTest.maxHeapSize = "256m"

test {
jvmArgs '--illegal-access=debug'
if (JavaVersion.current().java9Compatible) {
test {
jvmArgs '--illegal-access=deny'
}
}

0 comments on commit 7a350f3

Please sign in to comment.