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

Ensure compilation tests will run on JDK 16+. #1004

Merged
merged 1 commit into from
Mar 12, 2021

Conversation

copybara-service[bot]
Copy link
Contributor

@copybara-service copybara-service bot commented Mar 11, 2021

Ensure compilation tests will run on JDK 16+.

As noted here, the change of the default --illegal-access from permit to deny will cause compile-testing tests to fail by default, with messages like this:

class com.google.testing.compile.Parser (in unnamed module @0x4114d843) cannot
access class com.sun.tools.javac.api.JavacTool (in module jdk.compiler) because
module jdk.compiler does not export com.sun.tools.javac.api to unnamed module
@0x4114d843

We can work around that by supplying the necessary --add-opens flag to the JVM that runs the tests.

RELNOTES=n/a

As noted [here](google/compile-testing#222), the change of the default `--illegal-access` from `permit` to `deny` will cause compile-testing tests to fail by default, with messages like this:

```
class com.google.testing.compile.Parser (in unnamed module @0x4114d843) cannot
access class com.sun.tools.javac.api.JavacTool (in module jdk.compiler) because
module jdk.compiler does not export com.sun.tools.javac.api to unnamed module
@0x4114d843
```

We can work around that by supplying the necessary `--add-opens` flag to the JVM that runs the tests.

RELNOTES=n/a
PiperOrigin-RevId: 362531170
@copybara-service copybara-service bot merged commit cdbae35 into master Mar 12, 2021
@copybara-service copybara-service bot deleted the test_362396186 branch March 12, 2021 16:56
aurambaj added a commit to pinterest/l10nmessages that referenced this pull request Nov 14, 2023
When trying to run the test with Java 17, there was an issue with assertion accessing internal API. As reported in: google/compile-testing#222.

As a fix, replaced asserts with plain text asserts, inspired by google/auto#1004

To be running the test on Java 17. Need to update the processor test to
aurambaj added a commit to pinterest/l10nmessages that referenced this pull request Nov 15, 2023
When trying to run the test with Java 17, there was an issue with assertion accessing internal API. As reported in: google/compile-testing#222.

As a fix, replaced asserts with plain text asserts, inspired by google/auto#1004

To be running the test on Java 17. Need to update the processor test to
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant