vladislav.grechko
70c2f2b86f
Support specifying different bytecode listings for FIR and old frontend
2022-10-21 12:57:11 +00:00
Artem Kobzar
8a89b2f29f
[K/JS] Remove the old interface runtime check because of bootstrapping
...
Merge-request: KT-MR-7457
Merged-by: Artem Kobzar <Artem.Kobzar@jetbrains.com >
2022-10-21 11:34:31 +00:00
Pavel Punegov
ae7404878f
[K/N][test] Add test on jar contents.
...
* Check jar for included entries.
* Small changes to embeddable jar smoke test.
* Delete not used test.
2022-10-21 10:33:41 +00:00
Pavel Punegov
d2c58cdd27
[K/N][build] Dependencies fixes: trove4j and kotlin-compiler
...
* Depend on kotlin-compiler project instead of its runtimeElements only
* trove4j fixes: add as a dependency and use common version
* Strip dependencies in different projects: remove unnecessary
2022-10-21 10:33:40 +00:00
Artem Kobzar
ea6b784e41
[K/JS] Exclude Enum.entries property from export to JS
2022-10-21 10:31:06 +00:00
Martin Petrov
6c0b4bcfd4
[KT-54284][Native] Produce deterministic klibs from cinterop. ( #4979 )
...
Pass in temp-file C sources to clang via stdin instead of by name.
This prevents absolute paths of temp files from being encoded in bitcode.
2022-10-21 12:16:34 +02:00
Amit Sharma
68bcff3194
Use default build-tool version in test projects
2022-10-21 09:12:46 +00:00
Ilya Chernikov
8566589cf5
Add minimal roots deduplication on classpath update
...
duplication was detected e.g. in some scripting scenarios
2022-10-21 06:11:42 +00:00
Ilya Chernikov
b50a803b6f
Make jdk root processing more robust
...
#KT-54337 fixed
2022-10-21 06:11:42 +00:00
Ilya Chernikov
942def5828
Preserve app env in FP tests to benefit from FastJarFS caching
2022-10-21 06:11:42 +00:00
Ilya Chernikov
7d5257c258
Preserve FastJarFS in app env and implement intermediate cleanup
...
FastJarFS was behaving differently than the regular CoreJarFS it
tries to replace, namely it was cleaned after each compilation
(had the lifetime tied to core env).
This commit preserve it in the app env the same way as CoreJarFS,
so it could be reused in parallel builds and preserved if automatic
cleanup of the app env is turned off,
But since FastJarFS caches also mmf handles, the additional handles
cleaning is introduced that triggers after all possibly parallel
compilations are finished.
2022-10-21 06:11:41 +00:00
Ilya Chernikov
61e9aaf113
Convert java to kotlin
2022-10-21 06:11:41 +00:00
Ilya Chernikov
bccfc2ad18
Rename .java to .kt
2022-10-21 06:11:40 +00:00
Ilya Goncharov
91f75a9187
[Gradle, JS] Both mode will leave as it was with legacy base
...
Because of both mode will be removed too (because it is redundant when legacy is deprecated), so it is no sense to change it
2022-10-20 20:23:49 +00:00
Ilya Muradyan
352af4b245
Make the code compatible with IDE plugin
2022-10-20 16:00:42 +02:00
Ilya Muradyan
8d12342fc6
Add option for skipping calculating all names for optimizing reasons in LazyImportScope
2022-10-20 16:00:42 +02:00
Ilya Muradyan
4a58274056
Change PUBLICATION lazy to a storageManager one
...
Lazy computation in publication mode may lead to running of init code
many times in parallel, and it actually happens in IDE.
Instead, we stick to the option which is used for lazy computations
all across compiler code.
2022-10-20 16:00:42 +02:00
Ilya Muradyan
b8260257fb
[minor] Remove redundant qualifier name
2022-10-20 16:00:41 +02:00
Nikolay Lunyak
c4fa1ed9d8
[FIR] Prevent StackOverflowError in FirTypeParameterSymbol
2022-10-20 13:08:11 +00:00
Nikolay Lunyak
dd861515ad
[FIR] KT-52157: Fix missing type parameter annotations
2022-10-20 13:08:11 +00:00
Mikhail Glukhikh
5347c3c7cc
FE: add test for KT-53408 to have stable behavior here
2022-10-20 13:27:04 +02:00
Aleksei.Cherepanov
b6612c2dcb
Replace the Cyrillic character "C" with the Latin version in the test data
2022-10-20 12:49:56 +02:00
Oleg Bask
3302aa5017
Rename C.kt containing cyrillic characters ( #4984 )
2022-10-20 12:42:28 +02:00
Leonid Startsev
4cf50d7d23
Add checker for companion objects inside serializable class:
...
Warning for old FE, error in FIR
#KT-54441 Fixed
Merged-by: Leonid Startsev <leonid.startsev@jetbrains.com >
2022-10-20 10:18:04 +00:00
Andrey Uskov
3832c6a520
Do not use File.canonicalPath in incremental caches
...
This fix improves performance of incremental compilation on Windows
machines.
When portable JPS caches are used, DirtyFilesHolder.getRemovedFiles
could return file names which are not allowed on current platform.
Previously it resulted in IOException on File.getCanonicalFile.
#KT-53735 Fixed
2022-10-20 09:04:45 +00:00
Dmitriy Dolovov
9c1de4be9a
[IR][tests] Mute visibility-related tests until KT-54469 is fixed
2022-10-20 10:18:57 +02:00
Dmitriy Dolovov
0d8a6b6fa7
[IR][tests] Include cases when a callable with narrowed visibility is accessed outside the module
...
^KT-53608
2022-10-20 10:18:57 +02:00
Dmitriy Dolovov
f7d2dfd729
[IR] Linker: Small improvements
2022-10-20 10:18:57 +02:00
Dmitriy Dolovov
181809e2af
[IR][tests] Support friend-dependencies in KLIB ABI compatibility tests
2022-10-20 10:18:56 +02:00
Dmitriy Dolovov
bd4304c6e2
[IR] Partial linkage: Avoid false positively-detected unimplemented callables
...
^KT-53663
2022-10-20 10:18:56 +02:00
Dmitriy Dolovov
500e4f5e24
[IR][tests] Add test to check absence of false positively-detected unimplemented callables
...
^KT-53663
2022-10-20 10:18:56 +02:00
Dmitriy Dolovov
cd007c02df
[IR][tests] Add cases to visibility-related tests where a callable accidentally starts to override newly added open callable in super class
...
^KT-53608
2022-10-20 10:18:56 +02:00
Dmitriy Dolovov
ec4b85b111
[IR][tests] Add cases to visibility-related tests where a visibility of an open callable in super class is narrowed
...
^KT-53608
2022-10-20 10:18:56 +02:00
Dmitriy Dolovov
15cf2bab98
[IR][tests] Replace returned values in visibility-related tests
...
^KT-53608
2022-10-20 10:18:55 +02:00
Dmitriy Dolovov
f846ecf7d7
[IR] Partial linkage: Avoid overriding of private callable members
...
^KT-53608
2022-10-20 10:18:55 +02:00
Dmitriy Dolovov
84b3e7bfbe
[IR] Minor: Code cleanup
2022-10-20 10:18:55 +02:00
Dmitriy Dolovov
64867a1627
[IR][tests] Rename top-level declarations in visibility-related tests to distinguish them from nested declarations
2022-10-20 10:18:55 +02:00
Dmitriy Dolovov
71d51801ce
[IR] Partial linkage fix: Implement abstract fake overrides in non-abstract classes so that there are no call sites that still refer to abstract fake overrides
...
^KT-53663
2022-10-20 10:18:54 +02:00
Dmitriy Dolovov
cb20998d93
[IR] Allow different origins in Ir[Function|Property]WithLateBinding
...
^KT-53663
2022-10-20 10:18:54 +02:00
Dmitriy Dolovov
859c465b9e
[IR] Rename IrFakeOverride[Function|Property] to Ir[Function|Property]WithLateBinding
...
^KT-53663
2022-10-20 10:18:54 +02:00
Dmitriy Dolovov
296c1cbd0f
[Native][tests] Add partial linkage tests (muted) for replacement-of-return-type case
...
^KT-51707
2022-10-20 10:18:54 +02:00
Dmitriy Dolovov
24d8ac97cd
[IR][tests] Make ABI compatibility tests less verbose, part 2
2022-10-20 10:18:54 +02:00
Dmitriy Dolovov
db1c8cc7a7
[IR][tests] Make ABI compatibility tests less verbose, part 1
2022-10-20 10:18:53 +02:00
Dmitriy Dolovov
437d6b8391
[IR][tests] AbstractJsKLibABITestCase - forgotten super.tearDown() call
2022-10-20 10:18:53 +02:00
Dmitriy Dolovov
3569ec7666
[IR][tests] New test: change of visibility for callables
2022-10-20 10:18:53 +02:00
Dmitriy Dolovov
8374b2da85
[IR][tests] New test: non-abstract callable member in abstract class becomes abstract
...
^KT-53663
2022-10-20 10:18:53 +02:00
Dmitriy Dolovov
94f9963230
[Native][tests] Update test warnings filter to reflect changes in partial linkage warnings
2022-10-20 10:18:52 +02:00
Dmitriy Dolovov
4d056b211e
[IR][tests] Update tests to reflect changes in partial linkage error messages
2022-10-20 10:18:52 +02:00
Dmitriy Dolovov
12c6015d5e
[IR] Partial linkage: report the exact IR element where unlinked symbols are used
2022-10-20 10:18:52 +02:00
Mikhail Glukhikh
bd3e3e2524
Make some features targeting 1.8/1.9 bug fixes (was forgotten before)
2022-10-19 17:24:46 +00:00