-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incremental recompilation of JvmMultifileClass with top level fun…
…ction See 53b584f and previous changes where this behavior was broken (this was untested, however). Fixes EA-90065 (cherry picked from commit 7b2a80f)
- Loading branch information
Showing
10 changed files
with
104 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
jps-plugin/testData/incremental/pureKotlin/multifileClassAddTopLevelFunWithDefault/a.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@file:[JvmName("Test") JvmMultifileClass] | ||
package test | ||
|
||
fun a() = "a" |
4 changes: 4 additions & 0 deletions
4
jps-plugin/testData/incremental/pureKotlin/multifileClassAddTopLevelFunWithDefault/b.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@file:[JvmName("Test") JvmMultifileClass] | ||
package test | ||
|
||
fun b() = "" |
5 changes: 5 additions & 0 deletions
5
jps-plugin/testData/incremental/pureKotlin/multifileClassAddTopLevelFunWithDefault/b.kt.new
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@file:[JvmName("Test") JvmMultifileClass] | ||
package test | ||
|
||
fun b() = "" | ||
fun b(s: String = "") = s |
24 changes: 24 additions & 0 deletions
24
jps-plugin/testData/incremental/pureKotlin/multifileClassAddTopLevelFunWithDefault/build.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
================ Step #1 ================= | ||
|
||
Cleaning output files: | ||
out/production/module/META-INF/module.kotlin_module | ||
out/production/module/test/Test.class | ||
out/production/module/test/Test__BKt.class | ||
End of files | ||
Compiling files: | ||
src/b.kt | ||
End of files | ||
Exit code: ADDITIONAL_PASS_REQUIRED | ||
------------------------------------------ | ||
Cleaning output files: | ||
out/production/module/META-INF/module.kotlin_module | ||
out/production/module/test/Test.class | ||
out/production/module/test/Test__AKt.class | ||
out/production/module/usage/UsageKt.class | ||
End of files | ||
Compiling files: | ||
src/a.kt | ||
src/usage.kt | ||
End of files | ||
Exit code: OK | ||
------------------------------------------ |
26 changes: 26 additions & 0 deletions
26
.../incremental/pureKotlin/multifileClassAddTopLevelFunWithDefault/experimental-ic-build.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
================ Step #1 ================= | ||
|
||
Cleaning output files: | ||
out/production/module/META-INF/module.kotlin_module | ||
out/production/module/test/Test.class | ||
out/production/module/test/Test__BKt.class | ||
End of files | ||
Compiling files: | ||
src/b.kt | ||
End of files | ||
Marked as dirty by Kotlin: | ||
src/usage.kt | ||
Exit code: ADDITIONAL_PASS_REQUIRED | ||
------------------------------------------ | ||
Cleaning output files: | ||
out/production/module/META-INF/module.kotlin_module | ||
out/production/module/test/Test.class | ||
out/production/module/test/Test__AKt.class | ||
out/production/module/usage/UsageKt.class | ||
End of files | ||
Compiling files: | ||
src/a.kt | ||
src/usage.kt | ||
End of files | ||
Exit code: OK | ||
------------------------------------------ |
8 changes: 8 additions & 0 deletions
8
jps-plugin/testData/incremental/pureKotlin/multifileClassAddTopLevelFunWithDefault/usage.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package usage | ||
|
||
import test.* | ||
|
||
fun usage() { | ||
a() | ||
b() | ||
} |