Dmitriy Novozhilov
e79d02f482
[Test] Don't generate extends clause for nested classes in generated tests for JUnit5
...
This is fine since all nested classes in tests are inners by JUnit5
specification, so they will see `runTest` method from outer root class
2021-02-02 17:54:58 +03:00
Dmitriy Novozhilov
a4e9ab90a0
[Test] Migrate :tests-different-jdk on runners which are using JUnit5
2021-02-02 17:54:51 +03:00
Dmitriy Novozhilov
c969a34644
[Test] Set static field with application to null after tests are completed
2021-02-02 17:54:51 +03:00
Dmitriy Novozhilov
53e5aa4364
[Test] Don't use PSI based class reading in codegen BB tests
...
#KT-34826 is rela ted
2021-02-02 17:54:51 +03:00
Dmitriy Novozhilov
09ec3f6eaf
[Test] Support various jdk targets in test infrastructure
2021-02-02 17:54:51 +03:00
Dmitriy Novozhilov
93741ced5c
[Test] Read default target version from sys property in new test infra
2021-02-02 17:54:50 +03:00
Dmitriy Novozhilov
a3ad626f99
[Test] Support invoking box method in BB tests in separate process
2021-02-02 17:54:50 +03:00
Dmitriy Novozhilov
b351ca6bd4
[Test] Regenerate spec tests
2021-02-02 17:54:50 +03:00
Dmitriy Novozhilov
3199ce03a6
[Test] Merge box against java testdata into codegen black box testsdata
2021-02-02 17:54:49 +03:00
Dmitriy Novozhilov
e62b118351
[TD] Ignore JS backends in boxAgainstJava tests
2021-02-02 17:54:49 +03:00
Dmitriy Novozhilov
99cb85ab00
[Test] Merge box against java tests into codegen black box tests
2021-02-02 17:54:47 +03:00
Dmitriy Novozhilov
6f3713af5f
[Test] Migrate AbstractIrCompileKotlinAgainstKotlinTest to new infrastructure
2021-02-02 17:53:53 +03:00
Dmitriy Novozhilov
49c2bfe637
[Test] Enable SMAP dump handler in boxInline tests
2021-02-02 17:53:53 +03:00
Dmitriy Novozhilov
64a300bfcd
[TD] Update testdata according to previous commit
2021-02-02 17:53:52 +03:00
Dmitriy Novozhilov
3a0eee64b8
[Test] Migrate all jvm tests runners for boxInline tests
2021-02-02 17:53:50 +03:00
Dmitriy Novozhilov
8973e3f362
[TD] Update fir directives in boxInline tests
2021-02-02 17:50:07 +03:00
Dmitriy Novozhilov
92e21e76ba
[Test] Implement SMAP dump handler
2021-02-02 17:50:07 +03:00
Dmitriy Novozhilov
e3ab3d6be3
[Test] Align lines in TestFile with lines in real testdata file
2021-02-02 17:50:07 +03:00
Dmitriy Novozhilov
60e0831c11
[Test] Introduce two module structure transformers for codegen test
2021-02-02 17:50:07 +03:00
Dmitriy Novozhilov
13a778fd9c
[Test] Add ability to freely transform module structure which was parsed from directive
...
Service ModuleStructureExtractor may break readabilty of test so it
should be used very carefully
Originally it is created for box inline test where we have different
runners on same testdata where one runner assumes that all files
in test in same module and other that they in different ones
2021-02-02 17:50:06 +03:00
Dmitriy Novozhilov
fc83dc17fe
[Test] Support USE_OLD_INLINE_CLASSES_MANGLING_SCHEME directive
2021-02-02 17:50:06 +03:00
Dmitriy Novozhilov
3f758a3fa2
[Test] Make BytecodeInliningHandler for new infrastructure
2021-02-02 17:50:06 +03:00
Dmitriy Novozhilov
0768a7089c
[TD] Fix friend modules
2021-02-02 17:50:06 +03:00
Dmitriy Novozhilov
5075484c8e
[TD] Update directives in kotlinAgainstKotlin testdata
2021-02-02 17:50:05 +03:00
Dmitriy Novozhilov
9ba41c5b88
[Test] Improve error reporting if there are too many values passed to directive
2021-02-02 17:50:05 +03:00
Dmitriy Novozhilov
5c8d555808
[Test] Move KotlinAgainstKotlin tests under BlackBoxCodegen tests
2021-02-02 17:50:05 +03:00
Mikhael Bogdanov
1ea4fa4464
Fix android test with type annotations. Remove obsolete JVM 8 flavors
...
Remove some new test cause their originals would be executed on JvmTarget6OnJvm8
2021-02-02 14:32:50 +01:00
Mikhael Bogdanov
c13f38f6df
Support proper frame maps for enumValues
2021-02-02 14:32:50 +01:00
Mikhael Bogdanov
1a044e5af4
Support proper frame maps for enum valueOf
2021-02-02 14:32:50 +01:00
Mikhael Bogdanov
5b64ceceb3
JVM_IR. Generate additional checkcast for when/try epressions to avoid frame map problems on reification
2021-02-02 14:32:50 +01:00
Mikhael Bogdanov
16928d6e3f
Don't remove checkcast for reified values
...
#KT-35511 Fixed
2021-02-02 14:32:50 +01:00
Mikhail Glukhikh
0b0ba7d987
Don't use warningsAsError in compiler modules if useFIR is ON
2021-02-02 16:29:27 +03:00
Marcin Aman
d953a03807
Specify type explicitly in KotlinCoreProjectEnvironment.createCoreFileManager to allow overriding this method with different implementation
2021-02-02 05:26:04 -08:00
Mikhail Glukhikh
21000f4174
[FIR] Support TypeVariableMarker.isReified
2021-02-02 16:25:08 +03:00
Mikhail Glukhikh
465261e611
FIR: don't create intersection override for duplicating symbols
2021-02-02 16:25:08 +03:00
Dmitry Gridin
b9c33a0c6e
[i18n] copy-paste message from RefactoringBundle to fix missing resource in 202
...
^KT-44675 Fixed
2021-02-02 20:23:04 +07:00
Ivan Gavrilovic
2fce6a4af9
Locate build history when file is outside of root project dir
...
Support use-cases when the build dir is outside of root project dir.
Many projects set up output dir as <root_project>/../out/<project_name>/build
to be able to clean build dir more easily. This commit adds support
to build history file detection and it tries to find build history
files for artifacts that are:
- under root project dir (a default structure)
- under root project's build dir parent (to support typical custom setup)
Fixes https://youtrack.jetbrains.com/issue/KT-40875
Test: BaseIncrementalCompilationMultiProjectIT
2021-02-02 12:47:07 +03:00
Nicola Corti
5de34b052f
Remove unsupported '!' from DIAGNOSTICS directive
2021-02-02 01:30:33 -08:00
Nicola Corti
e2b7aba086
Do not report UNNECESSARY_SAFE_CALL on ErrorType
2021-02-02 12:10:56 +03:00
Roman Artemev
59551eb037
[Plugin API] Provide diagnostic API for IR plugins
2021-02-02 12:05:35 +03:00
Roman Artemev
9fa5feeeea
[CLI] Provide MessageCollector based logger for IR from CLI
2021-02-02 12:05:35 +03:00
Roman Artemev
daa65a2fff
[KLIB] Handle linkage error
...
Do not crash compiler with ugly stacktrace in case of misconfiguration.
Report relatively friendly diagnostic message instead
2021-02-02 12:05:35 +03:00
Roman Artemev
bf67308cc2
[KLIB] Use IrMessageLogger in klib linker to report errors
2021-02-02 12:05:35 +03:00
Roman Artemev
6891ad0dfc
[IR] Add IrMessageLogger interface for diagnostic reporting from IR
2021-02-02 12:05:35 +03:00
Roman Artemev
bb66b2fd04
Drop redundant compile dependency
2021-02-02 12:05:35 +03:00
Roman Artemev
c5068b7d45
[KLIB] Drop unused logger
2021-02-02 12:05:34 +03:00
Roman Artemev
484b884d04
[KLIB] Make IrModuleDeserializer's printable
2021-02-02 12:05:34 +03:00
Roman Artemev
d6bb1f2d4e
[KLIB] Make KotlinLibraryImpl printable
2021-02-02 12:05:34 +03:00
Roman Artemev
24d82c63e0
[JS IR] Commonize CLI error reporting
...
Use general `AnalysisResult.CompilationErrorException` instead of
custom JsIrCompilationError to indicate about unsuccessful compilation
- Drop JsIrCompilationError
2021-02-02 12:05:34 +03:00
Roman Artemev
ba5193870e
[IR] Drop unused language version settings parameters from DependenciesGenerator
2021-02-02 12:05:34 +03:00