Skip to content

Conversation

rieske
Copy link
Contributor

@rieske rieske commented Jul 28, 2021

This is a workaround to https://youtrack.jetbrains.com/issue/KT-47152
The fix is planned in Kotlin 1.5.30.

If the fix lands before Java 17, then it would be preferable to
upgrade.

On the other hand, I was able to work around this issue in a smoke
test by adding the required JVM arguments to the Kotlin compiler daemon
here: 3fd0d21

At the same time, I am not able to apply such a workaround within
Gradle as was done previously with --illegal-access=permit:
https://github.com/gradle/gradle/pull/17781/files#diff-66f4b61ab1b7cbf83f68849143ddd9934681ab75a5a68f26c6a51df7ad5c3f88
I do not understand why setting the same JVM args as in above
smoke test in this place does not seem to do the trick here.
Figuring this out instead,would be a better approach than
disabling incremental Kotlin compiler on Java 17.

This is a workaround to https://youtrack.jetbrains.com/issue/KT-47152
The fix is planned in Kotlin 1.5.30.

If the fix lands before Java 17, then it would be preferable to
upgrade.

On the other hand, I was able to work around this issue in a smoke
test by adding the required JVM arguments to the Kotlin compiler daemon
here: 3fd0d21

At the same time, I am not able to apply such workaround within
Gradle as was done previously with `--illegal-access=permit`:
https://github.com/gradle/gradle/pull/17781/files#diff-66f4b61ab1b7cbf83f68849143ddd9934681ab75a5a68f26c6a51df7ad5c3f88
I do not understand why setting the same JVM args as in above
smoke test in this place does not seem to do the trick here.
Figuring this out instead, would be a better approach than
disabling incremental Kotlin compiler on Java 17.
@rieske rieske added the @core Issue owned by GBT Core label Jul 28, 2021
@rieske rieske added this to the 7.3 RC1 milestone Jul 28, 2021
@rieske rieske requested a review from big-guy July 28, 2021 11:28
@rieske rieske self-assigned this Jul 28, 2021
@rieske
Copy link
Contributor Author

rieske commented Jul 28, 2021

@bot-gradle test this

@bot-gradle
Copy link
Collaborator

OK, I've already triggered ReadyForMerge build for you.

@dreis2211
Copy link
Contributor

@rieske --illegal-access=permit and alike are ignored on JDK 17. See http://openjdk.java.net/jeps/403

@rieske
Copy link
Contributor Author

rieske commented Jul 29, 2021

Yes. I'm setting the following 3fd0d21

@big-guy big-guy self-assigned this Aug 2, 2021
@big-guy
Copy link
Member

big-guy commented Sep 1, 2021

@bot-gradle test and merge

@gradle gradle deleted a comment from rieske Sep 1, 2021
@bot-gradle
Copy link
Collaborator

OK, I've already triggered a build for you.

@bot-gradle bot-gradle merged commit 564ae83 into master Sep 1, 2021
@blindpirate blindpirate deleted the vv/jdk17/disable-incremental-kotlin branch October 13, 2021 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@core Issue owned by GBT Core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants