[Maven] Add test for the fix of illegal reflective access while using jdk17
IJ-203 dependency has illegal reflective access usage, which is prohibited without a special flag since JDK17. Specific reflect usage was fixed on the IntelliJ side (IDEA-31024). After the new IC was present in 1.8.0, this problem shows up on modules with a large number of source files in Maven projects. During the incremental compilation, FileSnapshotMap is filled up with paths to files as keys, so in the test, we generate a lot of source files with long names. If there are a lot of files to compile, a key chunk with paths overflowed and drops the current chunk to the disk, after that PersistentHashMap caches FilterOutputStream and uses illegal reflective access. Closing caches after the first IC attempt fix this problem: `63a0660c` IC: Close caches before falling back to non-incremental compile `908dbf32` IC: Clean up closing caches logic in IncrementalCompilerRunner.kt authored by Hung Nguyen This commit should be reverted after the update of IJ dependency (KT-47765) #KT-55709 Fixed Merge-request: KT-MR-8359 Merged-by: Aleksei Cherepanov <aleksei.cherepanov@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
b558382f17
commit
07d369998c
@@ -350,6 +350,18 @@
|
||||
<jdk_9_0>${env.JDK_9}</jdk_9_0>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>jdk_17_0_new</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>env.JDK_17_0</name>
|
||||
</property>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
<properties>
|
||||
<jdk_17_0>${env.JDK_17_0}</jdk_17_0>
|
||||
</properties>
|
||||
</profile>
|
||||
|
||||
<profile>
|
||||
<id>sign-artifacts</id>
|
||||
|
||||
Reference in New Issue
Block a user