Yan Zhulanow
425467ca99
Kapt: Switch to more appropriate way of converting URIs to Files
2018-12-12 21:40:46 +09:00
Yan Zhulanow
648fb2ef0b
AllOpen: Update test data (enum constructors are now private)
2018-12-12 21:40:45 +09:00
Yan Zhulanow
79bb609e1e
Uast: Update test data (enum constructors are now private)
2018-12-12 21:40:44 +09:00
Yan Zhulanow
0dda7bd7ca
NoArg: Update test data (enum constructors are now private)
2018-12-12 21:40:44 +09:00
Yan Zhulanow
a090541108
Kapt: Update test data (stub converter tests)
2018-12-12 21:40:44 +09:00
Alexey Tsvetkov
01fbcfad23
Minor: replace UsefulTestCase with KtUsefulTestCase
...
For some reason assertSameLinesWithFile from UsefulTestCase
fails with exception on TeamCity, whereas the one KtUsefulTestCase
does not
2018-12-12 02:53:13 +03:00
Alexey Tsvetkov
57f8f216d1
Exclude local variables and try catch blocks of non-inline functions from ABI
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
495cfec9e9
Check descriptor visibility before excluding method from ABI class
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
34d96dff28
Minor: rename const according to style guide
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
b87058b532
Attempt to fix ABI tests on TC
...
Locally they work fine
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
09dbf427ee
Disable removing private/synthetic/local classes temporarily
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
96f3c67b3b
Report output classes
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
05c5196aaa
Reuse BytecodeListingTextCollectingVisitor in tests
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
497df17eb7
Reuse TransformationMethodVisitor in ABI gen plugin
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
50d8fe611c
Minor fixes after review
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
d54ce2da6f
Exclude nested classes of private classes from ABI classes
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
64380f55d2
Report locations of errors in ABI classes tests
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
9dd09151f0
Add tests for compilation against abi classes
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
8992ee6280
Add tests for non-compatible ABI changes
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
5891617674
Exclude clinit from ABI classes
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
519211036d
Exclude synthetic classes from ABI classes
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
fe047a0092
Minor: extract function
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
f231817559
Delay I/O when transforming ABI classes
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
d74185a74d
Remove unused cosntant pool entries from ABI classes
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
3a29b337a0
Exclude private typealiases from ABI classes
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
1f5ca7274d
Exclude local and private classes from ABI classes
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
7c2f7cab9a
Exclude non-inline method bodies from ABI classes
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
903f6bc79b
Exclude private members from ABI classes
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
33faa00184
Add plugin for JVM ABI classes generation
...
#KT-25128 Fixed
ABI class generation is implemented as a compiler plugin.
Command-line usage:
1. Add a path to 'jvm-abi-gen.jar' to the plguin classpath argument
(`-Xplugin`). By default the jar is located at
'kotlinc/lib/jvm-abi-gen.jar' in the kotlinc distribution archive.
2. Specify an output directory for ABI classes via
`-Pplugin:org.jetbrains.kotlin.jvm.abi:outputDir=<DIR>`.
2018-12-11 22:48:53 +03:00
Alexey Tsvetkov
d6459e6c49
Add option to disable AP discovery in compile classpath
...
#KT-24530 Fixed
To disable discovery and enable avoidance for kapt tasks,
use "kapt.includeCompileClasspath = false"
2018-12-11 16:08:16 +03:00
Vyacheslav Gerasimov
d84c5b1608
Switch to 183 platform
2018-12-06 20:16:58 +03:00
Leonid Startsev
f2e27da5bb
Support @SerialInfo annotation for Native
2018-12-05 15:16:17 +03:00
Leonid Startsev
13af036024
Fix problem with encodeUnitElement : Unit instance is not needed in Native IR
2018-12-05 15:16:16 +03:00
Leonid Startsev
b775501042
Translate KClass references to built-in types in serialization plugin correctly.
...
Add overload with ClassDescriptor to `getPrimitiveClass` translation function and increase it visibility to public to be usable from plugin.
2018-12-05 15:16:15 +03:00
Leonid Startsev
5f2cea917f
Remove redundant check for 'all parameters are properties' in a case of fully-customized serializer
2018-12-05 15:16:15 +03:00
Leonid Startsev
7e32e2e9b9
Increase priority of @ContextualSerialization annotation on types
2018-12-05 15:16:14 +03:00
Leonid Startsev
f13f54d5ad
Fix "kotlin.UninitializedPropertyAccessException: lateinit property typeTranslator has not been initialized" in Native IR serialization plugin
2018-12-05 15:16:13 +03:00
Leonid Startsev
7c8b34fe1c
Fix unresolved symbol to SerialDescriptor in KSerializer if it was
...
referenced from user custom serializer code (kotlinx.serialization/290)
2018-12-05 15:16:12 +03:00
Leonid Startsev
58c145210c
Support for @UseSerializers annotation
2018-12-05 15:16:11 +03:00
Georgy Bronnikov
a35f368ce0
Switch off logging for failing IrBlackBox tests
...
Logging of tests that are expected to fail is controlled by
kotlin.suppress.expected.test.failures project property.
2018-12-05 01:48:43 +03:00
Vyacheslav Gerasimov
a112bebf78
Build: Configure cache-redirector in allprojects block
2018-12-04 15:38:56 +03:00
Sergey Rostov
2fac72cd99
Move resources: remove build code that not required anymore
2018-11-30 15:01:02 +03:00
Sergey Rostov
df2e4524d7
Move resources from /src to separate /resources directory.
...
Previously this files was stored in /src directory and was included in
resources mainly by SourceSet.projectDefault from sourceSets.kt:
val processResources = tasks.getByName(processResourcesTaskName) as ProcessResources
processResources.from("resources") { include("**") }
processResources.from("src") { include("META-INF/**", "**/*.properties") }
Also there are some custom rules like this:
resources.srcDir("../idea-analysis/src").apply { include("**/*.properties") }
resources.srcDirs("idea-repl/src").apply { include("META-INF/**") }
All this rules are synthesized in script
https://github.com/snrostov/kotlin-migrate-resources/blob/master/src/main/kotlin/main.kt
This commit created using that script. See README.md for more details on
script.
2018-11-30 15:01:01 +03:00
Simon Ogorodnik
29a1204b48
Fix test failures on CI due to ProGuard-ed Guava
2018-11-28 15:29:01 +03:00
Yan Zhulanow
47657df8da
Kapt: Convert valid references to qualified names (KT-26304)
2018-11-27 22:21:27 +09:00
Yan Zhulanow
6a8a8b794d
Kapt: Support correctErrorTypes in suspend functions (KT-27711)
2018-11-27 22:21:27 +09:00
Yan Zhulanow
4c5e982f3e
Kapt: Fix an ArrayIndexOutOfBoundsException for suspend functions with generated return types
2018-11-27 22:21:26 +09:00
Yan Zhulanow
69633e6686
Kapt: Fix stubs for delegated properties with anonymous types (KT-27910)
2018-11-27 22:21:26 +09:00
Yan Zhulanow
5fd070a9b9
Kapt: Add option for showing annotation processor timings (KT-28024)
2018-11-27 22:21:26 +09:00
Yan Zhulanow
9feb834d97
Kapt: Support paranoid mode in memory leak searcher
2018-11-27 22:21:26 +09:00