Ilya Gorbunov
a18770fbbb
Remove projectDist dependency helper usages
...
Use default configuration dependencies instead of projectDist ones.
2018-09-12 06:05:05 +03:00
Denis Zharkov
3bdfd811e8
Add some new String methods in JDK 11 to built-ins mapping blacklist
...
These three methods are conflicting with existing extensions,
thus the behavior might be changed when switching to JDK 11
Probably, it's worth revisiting our strategy here,
e.g. by blacklisting all new methods in
#KT-24974 Fixed
2018-08-31 10:33:09 +03:00
Mikhael Bogdanov
ca5b19d0c6
Merge Java 8 write signature tests in common ones
2018-08-27 15:55:03 +02:00
Alexander Udalov
1c2a9e4b21
Map annotation target TYPE -> TYPE_USE if JVM target >= 1.8
...
And TYPE_PARAMETER -> TYPE_PARAMETER similarly
#KT-23857 Fixed
2018-08-21 12:38:05 +02:00
Alexander Udalov
5da8ce844a
Minor, move ContentRoot and KotlinSourceRoot to module 'cli'
...
Also move CONTENT_ROOTS from JVMConfigurationKeys to
CLIConfigurationKeys since it's used on all platforms, not just JVM
2018-08-07 13:38:30 +02:00
Alexander Udalov
1464a4ac58
Load Java parameter names correctly in BinaryJavaMethod
...
PSI-based implementation (accessible via
`-Xuse-old-class-files-reading`) loads parameter names from the
"MethodParameters" attribute if it's present, so our own implementation
should as well.
This metadata doesn't seem supported in the java.lang.model.element API
though, so SymbolBasedValueParameter (which is used in `-Xuse-javac`)
will continue to have incorrect behavior for now
#KT-25193 Fixed
2018-07-18 18:15:09 +02:00
Alexander Udalov
873e1b01d6
Merge and improve tests on Java parameter metadata in reflection
2018-07-18 18:15:08 +02:00
Alexander Udalov
959c2f4843
Get rid of split packages in descriptors, descriptors.jvm, deserialization
...
Also move some other files to related packages and reformat moved files
2018-07-06 14:08:35 +02:00
Roman Artemev
c887b88ed9
Fix coroutine test generator
2018-07-02 15:35:02 +03:00
Vyacheslav Gerasimov
01db78d776
Build: Introduce Project extension properties for source sets
2018-06-22 21:42:30 +03:00
Alexander Udalov
e689733f69
Revert "Map Kotlin TYPE target to Java TYPE_USE in bytecode"
...
This reverts commit d122406dca .
See KT-23857
#KT-24952 Fixed
2018-06-19 12:08:18 +02:00
Vyacheslav Gerasimov
992a31af88
Build: introduce javaPluginConvention extension on project
...
`ExtensionAware.the<T>()` introduced in gradle 4.7 made existing calls `the<JavaPluginConvention>()` invalid (on wrong receiver)
2018-06-13 19:43:03 +03:00
Mikhael Bogdanov
a0060dd25b
Generate synthetic method for @JvmDefault properties in DefaultImpls
2018-06-08 10:08:23 +02:00
Mikhael Bogdanov
ad717d5335
Support properties in compatibility mode
2018-05-29 15:08:07 +02:00
Mikhael Bogdanov
689a492b9a
Minor. Fix test data
2018-05-29 12:47:07 +02:00
Mikhael Bogdanov
60f2dbeb8a
Support property accessor in compatibility mode
2018-05-29 09:29:48 +02:00
Mikhael Bogdanov
340920fe38
Support compatibility mode for @JvmDefault
2018-05-28 22:15:45 +02:00
Alexander Udalov
d122406dca
Map Kotlin TYPE target to Java TYPE_USE in bytecode
...
And TYPE_PARAMETER -> TYPE_PARAMETER similarly
#KT-23857 Fixed
2018-05-24 14:41:22 +02:00
Ilmir Usmanov
f60787d57c
Move coroutines to kotlin.coroutines package: tests
...
Introduce COMMON_COROUTINES_TEST directive.
Every test with this directive is run twice: one time with
language version 1.2 and kotlin.coroutines.experimental package
and the other time with language version 1.3 and kotlin.coroutines
package. Each run is a separate method: with suffixes _1_2 and _1_3
respectively.
However, since codegen of release coroutines is not supported in JS
backend, we generate only one method: with suffix _1_2.
#KT-23362
2018-04-23 21:51:59 +03:00
Zalim Bashorov
ab03ab84bb
Regenerate tests
2018-04-19 13:17:27 +03:00
Zalim Bashorov
4227d8e73a
Remove accidentally left test classes: BytecodeTextTestGenerated and JsTypedArraysBoxTestGenerated
2018-04-19 13:17:22 +03:00
Mikhael Bogdanov
2a8041e77e
Check method abstractness during bridge generation per method not interface
2018-04-03 19:18:14 +02:00
Mikhael Bogdanov
f290b325ee
Remove @JvmDefault members from delegation
2018-04-03 19:18:14 +02:00
Mikhael Bogdanov
d84a15c0f6
Support inline for private @JvmDefault members
2018-04-03 19:18:13 +02:00
Mikhael Bogdanov
308283e52e
Support synthetic accessors for @JvmDefault members
2018-04-03 19:18:12 +02:00
Mikhael Bogdanov
fe45eb2a81
Initial support of @JvmDefault
2018-04-03 19:18:09 +02:00
Mikhael Bogdanov
b337b9ea8d
Specify idea.home.path for java 8 tests
...
Default discovery mechanism points to wrong location
2018-04-03 19:18:06 +02:00
Alexey Tsvetkov
8a82c1618c
Use Plugins DSL in Kotlin Gradle scripts
...
When plugins DSL is used, there is no need to
manually generate typesafe accessors for extensions and
conventions (by running `./gradlew kotlinDslAccessorsSnapshot`).
2018-03-26 16:09:29 +03:00
Zalim Bashorov
9970dd051f
Fix copyright's start year in generated tests
2018-03-14 15:04:58 +03:00
Alexey Tsvetkov
3a7a34cc4e
Add all necessary compile dependencies to 'pill:generate-all-tests'
...
Before this change running the pill:generate-all-tests:testClasses
task (which is run by Intellij on "Build" invocation) led to compile error
2018-03-13 21:26:28 +03:00
Yan Zhulanow
34d1611ed4
Add Pill support to compiler and IDE modules
2018-03-02 03:15:17 +03:00
Mikaël Peltier
e1f44d6237
Move tests to the right place
2018-02-09 09:10:53 +03:00
Mikaël Peltier
9274241c0e
KT-22714 Avoid to generate unecessary checkcast
...
- StackValue already avoid to generate checkcast from a type or an
array to java.lang.Object. Add a new case to avoid to generate a
checkcast from an array to an array of java.lang.Object when arrays
have the same dimensions.
Fix of https://youtrack.jetbrains.com/issue/KT-22714
2018-02-09 09:10:53 +03:00
Denis Zharkov
88a23c73c7
Ignore @Nullable annotation for vararg parameter
...
See the comment in code for clarification
#KT-19786 Fixed
2018-02-08 13:36:10 +03:00
Mikhael Bogdanov
ad48099ca6
Move java 8 tests to java8 folder
2018-02-06 10:32:14 +01:00
Vyacheslav Gerasimov
ec511f7a78
Use dependsOn for dependencies on dist & ideaPlugin tasks
...
instead `shouldRunAfter`
2018-02-01 18:11:25 +03:00
Ilya Chernikov
555e9674b2
Fix dependencies to the cross-project tasks
2018-01-30 17:06:17 +03:00
Ilya Chernikov
6f1e6f1f1b
Fix tests after rebasing and messing with the dependencies
2018-01-30 17:06:15 +03:00
Ilya Chernikov
7e21573cf4
Convert the rest of the project to intellij repo prepared in buildSrc
2018-01-30 17:06:13 +03:00
Ilya Chernikov
4eb557724c
Convert compiler projects to the new intellij deps
2018-01-30 17:06:13 +03:00
Ilya Chernikov
a4f28cd94f
Make all dependencies to idea sdk intransitive
2018-01-30 17:06:11 +03:00
Ilya Chernikov
6614695616
Convert more projects
2018-01-30 17:06:06 +03:00
Dmitry Jemerov
e80dae1802
Update copyright in generated tests
2018-01-10 11:55:28 +01:00
Mikhael Bogdanov
c9d0ab38cf
Generate proper java parameter names for DefaultImpls
...
#KT-21919 Fixed
2017-12-22 10:02:04 +01:00
Alexander Udalov
aca74cef0e
Replace dependencies on kotlin-reflect with kotlin-reflect-api
...
See the previous commit for information on the kotlin-reflect vs
kotlin-reflect-api distinction.
Add kotlin-reflect as an explicit runtime dependency of most of the test
configurations because even though they all depend on tests-common, the
runtime dependency on kotlin-reflect is not exported from tests-common
to other modules because the projectTests dependency is not transitive.
2017-11-28 12:35:49 +01:00
Mikhael Bogdanov
f529069077
Move common test parts to tests-common. Minify test jar dependencies
2017-11-28 11:04:39 +01:00
Mikhael Bogdanov
a547019ed0
Switch DEFAULT_METHOD_CALL_FROM_JAVA6_TARGET according to LL
2017-11-17 13:48:44 +01:00
Alexander Udalov
d26486b7df
Move JvmRuntimeDescriptorLoaderTest to core/descriptors.runtime/tests
...
This allows to get rid of the dependency on descriptors.runtime from
compiler/IDE tests which is problematic: classes there clash with the
classes in kotlin-reflect, which reference declarations in shadowed
packages
2017-11-10 18:58:31 +01:00
Mikhael Bogdanov
5d84aec8f7
Clean dependencies in 'tests-java8' module
2017-11-10 09:46:41 +01:00
Alexander Udalov
3ead2e9cd4
Use KotlinCoreEnvironment.createForTests in test code
...
createForProduction creates and caches JavaCoreApplicationEnvironment
instance, which can alter behavior of subsequent tests
2017-11-03 14:03:02 +01:00