Otherwise, `org.jetbrains.kotlin.idea.testGenerator.all.AllTestsGeneratedTest.testAllTestsIsUpToDate` fails with an error like:
```
com.intellij.platform.testFramework.core.FileComparisonFailedError: 'GradleBuildFileHighlightingTestGenerated.java' is not up to date
Use 'Generate Kotlin Tests' run configuration to regenerate tests
at org.jetbrains.kotlin.testGenerator.generator.TestGeneratorKt.write(TestGenerator.kt:156)
at org.jetbrains.kotlin.testGenerator.generator.TestGenerator.write(TestGenerator.kt:72)
at org.jetbrains.kotlin.testGenerator.generator.TestGenerator.write(TestGenerator.kt:32)
at org.jetbrains.kotlin.fe10.testGenerator.Fe10GenerateTestsKt.generateK1Tests(Fe10GenerateTests.kt:172)
at org.jetbrains.kotlin.idea.testGenerator.all.AllTestsGeneratedTest.testAllTestsIsUpToDate(AllTestsGeneratedTest.kt:10)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at junit.framework.TestCase.runTest(TestCase.java:177)
at junit.framework.TestCase.runBare(TestCase.java:142)
at junit.framework.TestResult$1.protect(TestResult.java:122)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at junit.framework.TestResult.run(TestResult.java:125)
at junit.framework.TestCase.run(TestCase.java:130)
at junit.framework.TestSuite.runTest(TestSuite.java:241)
at junit.framework.TestSuite.run(TestSuite.java:236)
at com.intellij.TestAll.runOrCollectNextTest(TestAll.java:399)
at com.intellij.TestAll.run(TestAll.java:280)
at junit.framework.TestSuite.runTest(TestSuite.java:241)
at junit.framework.TestSuite.run(TestSuite.java:236)
```
GitOrigin-RevId: c8a0adce00acd8196ac923bf62425f682be70931
1. testImportFromTarget:
Some bug in nullability inferrer.
2. testAddImportsDummyConflict, testAddImportsButNoConversion:
Imports are not added in these specific cases because
in K2 we don't use KotlinCopyPasteReferenceProcessor (KTIJ-32359).
Note: in most cases, however, we correctly insert imports
even without the KotlinCopyPasteReferenceProcessor thanks
to the "shorten references" post-processing. So maybe we don't
even need the KotlinCopyPasteReferenceProcessor.
KTIJ-28714
(cherry picked from commit 01c295af7e18ce3083fa729c4a8dcacdd4d5ed8d)
GitOrigin-RevId: 116ae4c0e6bc38dca75c85a3671f141bc3a1e604
Mostly small differences in nullability, mutability
and some other things.
KTIJ-28714
(cherry picked from commit 37aadb47d4f04c66c41778e5b8b9bc4bc98465d0)
GitOrigin-RevId: 57956284eca03441dbb9fe72df3df8d7e81855ca
Almost every copy-paste test file has expected errors
(usually, unresolved references), so it looks noisy to dump them all.
Also, this will help to share expected results between K1 and K2,
because they often differ only in exact wording of error messages.
KTIJ-28714
(cherry picked from commit 4d2e181ee3d4781f3064f046f4f6ac3005d1e9fc)
GitOrigin-RevId: 69501d6a2916dc8959707a4c7ada3a3322f8209e
Technical commit to preserve git history (code does not compile).
KTIJ-28714
(cherry picked from commit 238ccf885463d82334151ad6c1105402699b226c)
GitOrigin-RevId: 98785e63a10e7fdafc64c9dbbbbb339af284dd0e
J2K copy-paste processors are enabled in K2 but don't work yet.
Now all J2K-related code (except JavaToKotlinAction)
is located in `j2k` modules.
KTIJ-28714
(cherry picked from commit 71774b698b53420dc95637b720ab3e4c3ec05867)
GitOrigin-RevId: 2e5432817ec7d8d512be25704dd0bb4f57e0c999
It seems like the fix for ConvertTextJavaCopyPasteProcessor
implemented in KTIJ-14329 is not necessary for ConvertJavaCopyPasteProcessor,
but we should still have the tests for it (from user's POV use cases are similar).
KTIJ-14329
KTIJ-28714
(cherry picked from commit cb181d85923627e052882d32892519ac8af641e0)
GitOrigin-RevId: e2846124c73f2013f0f5c0fe465d2fcc18273193
This work is now done during the JK building phase, mostly on the Java analysis side.
1. New var-to-val analysis may not work on red Java code (some testdata is affected).
2. It is also more conservative and doesn't attempt to analyze public fields.
3. "Partial converter" tests are related to cross-language "inline" refactoring,
which still works the same (the real tests are in `InlineTestGenerated`)
^KTIJ-31124 Fixed
^KTIJ-31182 Fixed
^KTIJ-31196 Fixed
GitOrigin-RevId: 812379dcf5a6dab0002fceba82488bcc7c450d7f
Only in XML directly; no editing UI for now; no inlays for now; only for libraries (Cls), currently no intent to extend to sources (Psi)
Part of IDEA-231901 Support TYPE_USE in external annotations
GitOrigin-RevId: 672ed09f57ffc40b61e8fe4dd33d0f9acdac92dc
Initially, the library (javaslang) was brought with
Kotlin compiler parts and now it's being updated to
its new reincarnation (vavr) which resolves
ClassLoader-related issue in the compiler (see KT-63502).
Thus, we replace it in the IJ repository, too.
GitOrigin-RevId: c91d98a842670a8c98cd731f4e3827235a487cec