Denis.Zharkov
7942bd0b3b
Minor. Regenerate tests
2021-02-03 16:38:13 +03:00
Dmitry Petrov
2535e5d5c9
Minor: LAMBDAS directive in old back-end tests
2021-02-03 15:11:04 +03:00
Alexander Udalov
bd45a6c11d
Support -Xsuppress-version-warnings to suppress API/language version warnings
...
To be used in the project after bootstrap to get rid of warnings like
"Language version 1.3 is deprecated, ..." which prevent us from enabling
`-Werror` in `:compiler:cli` and other modules.
2021-02-03 13:07:04 +01:00
Denis.Zharkov
d901ceb734
FIR: Fix loading Java annotations with Class[]-typed methods
2021-02-03 15:05:22 +03:00
Denis.Zharkov
5a55d56320
IR: Fix offsets for value parameters for bridges
...
Previously, offsets from super class parameter have been used
and they might belong to a different file and those offsets are irrelevant
to the current file
2021-02-03 15:05:22 +03:00
Denis.Zharkov
8712772a5f
FIR: Add test for type resolution when referenced nested class from supertypes
2021-02-03 15:05:22 +03:00
Denis.Zharkov
c51798d46f
Fix warning at VMCounters.kt
2021-02-03 15:05:22 +03:00
Denis.Zharkov
e7669ef9d6
FIR: Fix builder inference case with independent calls inside lambda
2021-02-03 15:05:21 +03:00
Denis.Zharkov
29ac4cb9cc
Minor. Simplify conditions in shouldRunCompletion
2021-02-03 15:05:21 +03:00
Denis.Zharkov
173a852273
FIR: Fix uninitialized lateinit FirSymbol::symbol for supertype of Java class
...
Earlier, isForSupertypes has been mapped to different boolean parameter
2021-02-03 15:05:21 +03:00
Alexander Udalov
8b2279072f
Fix compilation in tests-compiler-utils
2021-02-03 13:04:21 +01:00
Alexander Udalov
e0b6d4d917
Add -Xsuppress-deprecated-jvm-target-warning to modules compiled with 1.6
...
Currently this leads to an unknown argument warning, but it'll be
removed automatically on the next bootstrap.
2021-02-03 12:51:39 +01:00
Alexander Udalov
99b5e5a373
Deprecate JVM target 1.6
...
#KT-44650 Fixed
2021-02-03 12:50:52 +01:00
Dmitry Petrov
ab20a8ffff
JVM_IR indy-lambdas: minor updates and fixes
...
KT-44278 KT-26060 KT-42621
2021-02-03 14:16:25 +03:00
Dmitry Petrov
088448043a
JVM_IR indy-lambdas: don't use indy for big arity lambdas
...
KT-44278 KT-26060 KT-42621
2021-02-03 14:16:24 +03:00
Dmitry Petrov
d94912ed62
JVM_IR indy-lambdas: initial implementation and tests
...
KT-44278 KT-26060 KT-42621
2021-02-03 14:16:22 +03:00
Igor Chevdar
0bc386cb08
[IR] Fixed bug with reflectionTarget evaluation
2021-02-03 15:26:40 +05:00
Igor Chevdar
bb8bf28b8b
[PSI2IR] Set reflectionTarget for all adapted references
2021-02-03 15:26:40 +05:00
Ilya Goncharov
de3678a805
[JS IR] Add test with fun interface call inside lambda
...
^KT-44433 fixed
2021-02-03 12:13:53 +03:00
Ilya Goncharov
d6e74b9620
[JS IR] Use local scope for SAM if there are scopes
...
[JS IR] Use private for top level sam wrappers and local otherwise
^KT-44433 fixed
2021-02-03 12:13:52 +03:00
Jinseong Jeon
ca314c5bb9
FIR checker: add diagnostic CANNOT_WEAKEN_ACCESS_PRIVILEGE
2021-02-03 12:07:36 +03:00
Jinseong Jeon
3a07ca4c64
FIR checker: add diagnostic VAR_OVERRIDDEN_BY_VAL
2021-02-03 12:07:36 +03:00
Jinseong Jeon
80d5a1a1db
FIR checker: add diagnostic OVERRIDING_FINAL_MEMBER
2021-02-03 12:07:36 +03:00
Jinseong Jeon
4ef1e1119f
FIR LT: introduce positioning strategies for specific modifiers
2021-02-03 12:07:35 +03:00
Jinseong Jeon
0dd5b94556
FIR checker: rename override checker
...
We can report more diagnostics than type mismatch, e.g.,
nothing to override, var overridden by val, final override, etc.
2021-02-03 12:07:35 +03:00
Jinseong Jeon
b48835f3ce
FIR checker: fix positions of type mismatch on overrides
...
To handle implicit return types, those should be reported on
declarations with return type positioning strategy, instead of
return type itself.
2021-02-03 12:07:35 +03:00
Dmitriy Novozhilov
571c4ce398
[Test] Support new configuration directives in old codegen tests
2021-02-03 10:03:23 +03:00
pyos
8277c96933
FIR: copy nullability when mapping type alias arguments
2021-02-03 08:38:56 +03:00
scaventz
bd205317aa
CLI: improve behavior of -include-runtime
...
1.fix KT-17344: Include kotlin-reflect to resulting jar if "-include-runtime" is specified, unless the -no-reflect option is specified.
2.fix KT-43220: -include-runtime should add .kotlin_builtins to the output
2021-02-02 12:49:23 -08:00
Alexander Udalov
496d857db1
Add kotlin.build.disable.werror to disable -Werror locally
...
This can be placed, for example, in `local.properties` to temporarily
disable `-Werror` in compiler/stdlib/plugin/test modules during
development.
2021-02-02 21:47:33 +01:00
Mads Ager
6a959fefd0
[JVM_IR] Fix accessibility bridges for static protected fields.
...
Super-qualifiers have to be taken into account. Otherwise, too
few accessibility bridges will be generated which can lead to
binary compatibility issues.
2021-02-02 12:46:08 -08:00
Dmitriy Novozhilov
4bf6e58f2b
[TD] Fix directive order in codegen testdata
2021-02-02 20:37:47 +03:00
Anton Bannykh
f42f2fa743
JS DCE: disable logging by default
...
Based on Vladislav Saifulin's PR #4031
2021-02-02 18:38:50 +03:00
Anton Bannykh
bbc6d2b993
JS DCE: use less LinkedHashSets
2021-02-02 18:38:49 +03:00
Dmitriy Novozhilov
0ebb39a26e
[Test] Exclude multimodule tests from codegen tests on android
2021-02-02 17:54:59 +03:00
Dmitriy Novozhilov
17d59e0daa
[Test] Support skip of android codegen tests with new ASSERTION_MODE directive
2021-02-02 17:54:59 +03:00
Dmitriy Novozhilov
81ba7aa833
[Test] Use javac for compilation test java files from runtime by default
2021-02-02 17:54:59 +03:00
Dmitriy Novozhilov
e9cb30b4f3
[Test] Add ability to use custom CompilerConfigurationProvider
2021-02-02 17:54:59 +03:00
Dmitriy Novozhilov
c432efc364
[Build] Extract configuration of JUnit5 dependencies to common helper in buildSrc
2021-02-02 17:54:59 +03:00
Dmitriy Novozhilov
dea3c954f1
[Test] Add ability to stop test pipeline if there was an exception in handler
2021-02-02 17:54:59 +03:00
Dmitriy Novozhilov
2ae35b0b08
[Test] Move fir backend tests back to :compiler:fir2ir module
2021-02-02 17:54:58 +03:00
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