Commit 5ec4439
committed
Build: Update kotlin to 1.6.10
This update is necessary because otherwise, with newer versions of Java
(see Java 17), this project cannot be compiled due to the fact that with
JDK17 it is no longer possible to make a field accessible using
reflection. It seems that Kotlin 1.4.20 is doing it, rightfully so, as
that point of time this 1.4.20 version of Kotlin wasn't ready for
Java 17.
FYI: The code fails to compile with the below exception:
------------------------------------------------------------------------
> Task :aztec:compileDebugKotlin FAILED
Could not perform incremental compilation: Could not connect to Kotlin
compile daemon
Could not connect to kotlin daemon. Using fallback strategy.
exception: java.lang.ExceptionInInitializerError
at org.jetbrains.kotlin.com.intellij.pom.java.LanguageLevel.
<clinit>(LanguageLevel.java:25)
...
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make
protected void java.util.ResourceBundle.setParent
(java.util.ResourceBundle) accessible: module java.base does not "opens
java.util" to unnamed module @41e77c24
at java.base/java.lang.reflect.AccessibleObject.
checkCanSetAccessible(AccessibleObject.java:354)
...
... 19 more
------------------------------------------------------------------------
Also, as part of this update the 'max/mindBy' were replaced by
'max/mindByOrNull', but other than that everything else remained the
same.1 parent ba86630 commit 5ec4439
File tree
2 files changed
+3
-3
lines changed- aztec/src/main/kotlin/org/wordpress/aztec/spans
2 files changed
+3
-3
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments