Victor Petukhov
e110b49cab
Revert "Don't stop constraints processing if all type variables have proper equality constraints"
...
This reverts commit b87c2a15
2021-04-30 15:46:03 +03:00
Andrey Zinovyev
287ff3ed55
[FIR] Fix for AugmentedArraySetCall expression type
...
Hacky fix so it's type is Unit and not error
2021-04-30 15:25:44 +03:00
Simon Ogorodnik
6365164c21
FIR: Fix gradle integration tests broken by c6fa3634
2021-04-30 15:19:58 +03:00
Sergey Bogolepov
13464cce68
[Native] Adapt Skia interop to ClangArgs refactoring.
2021-04-30 12:07:46 +00:00
Victor Petukhov
f330d67740
Mute foreign annotations tests with compiled java through psi class files reading
2021-04-30 14:43:28 +03:00
Victor Petukhov
78ffefe107
Add jspecify license
2021-04-30 14:43:27 +03:00
Victor Petukhov
909f0d8bdb
Implement caching module annotations per class id
2021-04-30 14:43:27 +03:00
Victor Petukhov
2e57ff25ee
Leave KotlinCliJavaFileManager::findClass only passing JavaClassFinder.Request
2021-04-30 14:43:27 +03:00
Victor Petukhov
072bba109f
Move foreign annotations logic into the corresponding configurator for the tests
2021-04-30 14:43:27 +03:00
Victor Petukhov
e93133a28f
Implement jspecify marks processing in the tests properly, by adding specific handler and cleanuper
2021-04-30 14:43:27 +03:00
Victor Petukhov
b9536a25d6
Support type enhancement on freshly supported module level annotations
...
^KT-45189 Fixed
2021-04-30 14:43:27 +03:00
Victor Petukhov
bc5e92033b
Support reading annotations on java 9 module on sources and binaries
2021-04-30 14:43:27 +03:00
Victor Petukhov
24685ee9d6
Add directive ALL_JAVA_AS_BINARIES and use it explicitly for foreign annotations tests with compiled java
2021-04-30 14:43:27 +03:00
Victor Petukhov
89270399db
Update some third-party annotations
2021-04-30 14:43:26 +03:00
Victor Petukhov
cdcde634e8
Add basic Java 9 module tests
2021-04-30 14:43:26 +03:00
Victor Petukhov
757fdb2b32
Add Java 9 jspecify annotations including module level ones
2021-04-30 14:43:26 +03:00
Victor Petukhov
71755b7a5e
Support java 9 modules in the diagnostic tests both in sources and binaries
2021-04-30 14:43:26 +03:00
Victor Petukhov
1f0616439c
Introduce special common directives for tests based on foreign annotation tests
2021-04-30 14:43:26 +03:00
Victor Petukhov
6065f0e2d0
[Jspecify] Move diagnostic tests against compiled java under the new tests infrastructure
2021-04-30 14:43:26 +03:00
Victor Petukhov
8f097b14cc
[Jspecify] Move jspecify test runner under the new tests infrastructure
2021-04-30 14:43:26 +03:00
Victor Petukhov
6f9694174f
Move foreign annotation tests into diagnostics folder
2021-04-30 14:43:25 +03:00
Victor Petukhov
57bd4d3a98
[Jspecify] Remove Kotlin use sites generator: consider manually picking changes from the jspecify repo
2021-04-30 14:43:25 +03:00
Victor Petukhov
49e838781c
Clean-up JavaModuleInfo.kt
2021-04-30 14:43:25 +03:00
Vasily Levchenko
788d3c022a
[build][kotlin-build-gradle-plugin] version 0.0.27
...
- reading konanVersion and konanMetaVersion from project properties
2021-04-30 10:26:36 +00:00
Vasily Levchenko
9cbcafa8d1
[dependencies][kotlin-build-gradle-plugin] version 0.0.27
...
- reading konanVersion and konanMetaVersion from project properties
2021-04-30 10:26:35 +00:00
Dmitry Petrov
72804d2e8c
JVM_IR KT-45779 don't generate intrinsic method refs via invokedynamic
2021-04-30 12:45:11 +03:00
Sergey Bogolepov
f3a935adb9
Support explicit C++ flags in run_konan tool
2021-04-30 08:39:27 +00:00
Sergey Bogolepov
25ebb3fa75
Remove obsolete Gradle native plugin configuration
2021-04-30 08:39:27 +00:00
Sergey Bogolepov
274d18a141
[Kotlin/Native] Add a workaround for Xcode 12.5
...
SDKs from Xcode 12.5 contain C++ stdlib and it
breaks compilation of C++ parts of compiler.
Mitigate this problem by explicitly specifying
path to C++ stdlib.
2021-04-30 08:39:26 +00:00
Victor Petukhov
8dd71ec5c8
Build recursive raw types and raw types which contain type parameters properly
...
1) Substitute erasure of other type parameters
2) Use star projection at top level for recursive raw types
^KT-46126 Fixed
2021-04-30 10:49:47 +03:00
Andi Wenger
f9d2ca68ce
KJS IR: Fix KT-45738 - Consider recursive checkForPrimitiveOrPattern
...
Recursive results from checkForPrimitiveOrPattern were ignored. If it found a case/condition that could not be optimized the resulting "false" was not propagated. This would lead to a "optimized" when without all conditions.
- see KT-45738
- The return is now lifted out of the when to make it more obvious what is going on.
- New test for mixed multiple conditions in when
2021-04-29 23:52:01 +03:00
Ilya Kirillov
caff279255
FIR IDE: add missing binary extensions
...
This also reveals and error in find usages for fir: it does not work for library source files
So, corresponding tests are muted
2021-04-29 23:31:05 +03:00
Andrey Zinovyev
e4a5775570
Remove duplicated code in annotation-based-compiler-plugins-ide-support
2021-04-29 23:14:16 +03:00
Andrey Zinovyev
8afb6d2761
[lombok] Support import from gradle to IDE
...
Introduce base module for ide compiler plugins
2021-04-29 23:14:15 +03:00
Andrey Zinovyev
b58bea6fa1
[lombok] IDE plugin with maven import handler
2021-04-29 23:14:14 +03:00
Andrey Zinovyev
07daf2165a
[lombok] Rename maven subplugin to 'lombok'
2021-04-29 23:14:13 +03:00
Andrey Zinovyev
b88f54b31a
[lombok] Add maven plugin integration test with kapt
2021-04-29 23:14:12 +03:00
Andrey Zinovyev
3e883120dd
[lombok] Simple maven plugin to enable lombok support
2021-04-29 23:14:11 +03:00
Ivan Kochurkin
7ec709cf46
FIR: fix incorrect reporting of underscores, simplify code, fix test data file
2021-04-29 22:31:39 +03:00
Jinseong Jeon
9b39a8abc2
FIR: avoid wrapping an erroneous type as FirResolvedTypeRef
...
Instead, use FirErrorTypeRef, a subtype of FirResolvedTypeRef
2021-04-29 22:31:38 +03:00
Alexander Gorshenev
887032667d
[Kotlin/Native][Interop] Skia interop plugin for cinterop
2021-04-29 21:43:26 +03:00
Vladimir Ivanov
5f582ad28a
[Kotlin/Native][Interop] Provide pure c wrappers over cpp for skia interop
2021-04-29 21:43:25 +03:00
Yahor Berdnikau
61825e9aec
Made GradleCompileTaskProvder compative with configuration cache.
...
After moving compilerRunner() method evaluation into execution phase,
creation of GradleCompileTaskProvider class started to violate
configuration cache.
^KT-45611 In Progress
2021-04-29 20:43:59 +03:00
Yahor Berdnikau
816e955c61
Introduce KotlinJavaToolchain compile tasks input.
...
This task input provides a way to set different from current Gradle
JDK and use it for Kotlin files compilation. By default it provides
current Gradle JDK.
Provided JDK major version is used as task input, so on providing
different JDK user will see cache miss.
All required interfaces are located inside api module.
^KT-45611 In Progress
2021-04-29 20:43:58 +03:00
Yahor Berdnikau
201b6dfa60
Print path to java executable Kotlin daemon was started with.
...
Useful for tests to validate toolchain correct behaviour.
^KT-45611 In Progress
2021-04-29 20:43:57 +03:00
Yahor Berdnikau
85456bd6d8
Add helper methods simplifying working with lazy properties from Kotlin.
...
Just allow to write Kotlin code easier and nicer when using Gradle
lazy properties.
^KT-45611 In Progress
2021-04-29 20:43:55 +03:00
Yahor Berdnikau
007f11e22e
Add initial test setup to enable and test Gradle build cache.
...
This will allow to write JUnit5 tests to verify tasks are re-using
build cache on rebuilding same project from clean state.
^KT-45611 In Progress
2021-04-29 20:43:54 +03:00
Ilya Kirillov
ddf451739b
FIR IDE: add member type-alias test for FileStructureTest
2021-04-29 17:51:28 +02:00
Ilya Kirillov
d438d2db40
FIR IDE: do not remove duplicated diagnostics
...
This hides the real problem why diagnostics are duplicated
2021-04-29 17:51:28 +02:00
Ilya Kirillov
77ae1fa1f2
FIR IDE: run lazy resolve phases in ContextIndependent ResolutionMode
2021-04-29 17:51:28 +02:00