Ilya Gorbunov
4827aadcfd
Improve stability of lazy test, make some tests take less time
2017-12-26 23:14:09 +03:00
Ilya Gorbunov
934b3cc54e
Do not read volatile _value field second time it is already initialized
2017-12-26 23:14:07 +03:00
Ilya Gorbunov
5d62277fa5
Make SafePublicationLazyImpl.initializer volatile
...
This establishes happens-before relation between nulling out the initializer and
checking whether it is null. This will prevent the subsequent _value reads
being reordered before the initializer reads.
#KT-21868 Fixed
2017-12-26 23:13:14 +03:00
Sergey Igushkin
685b138f79
(minor) Fix testAndroidExtensionsIncremental() ambiguous file operation
2017-12-26 21:38:15 +03:00
Sergey Igushkin
01931c2ae6
Fix Kotlin internal files created in 'build/' ignoring custom buildDir
...
Issue #KT-10537 Fixed
2017-12-26 21:38:15 +03:00
Ilya Chernikov
953a485fe7
Increment repl line generation on compilation error
...
fixes #KT-17921 and #KT-21141
Tests added to the JSR223 local eval example
2017-12-26 19:27:32 +01:00
Ilya Chernikov
2d8e73f3f6
Make JSR 223 examples compatible with embeddable compiler, strip ...
...
some dependencies.
Fixes #KT-17561 and related issues
Warning: API changed slightly
2017-12-26 19:27:31 +01:00
Sergey Igushkin
d51b17c1b2
Fix @OutputFile annotation on a String property outputFile.
2017-12-26 20:29:45 +03:00
Sergey Igushkin
9d1091cdaa
Add java-gradle-plugin for kotlin-gradle-plugin tasks validation;
...
Make task properties validation fail on warnings; run it during IT
2017-12-26 20:29:45 +03:00
Sergey Igushkin
7031087a93
Mark Gradle task properties with input/output annotations.
2017-12-26 20:29:45 +03:00
Sergey Igushkin
d62ced3a82
Compile against gradleApi()
2017-12-26 20:29:45 +03:00
Ilya Gorbunov
10639eaf6a
Add pattern and options properties to common Regex
...
And add a test that accesses them and checks they work as expected.
2017-12-26 05:40:37 +03:00
Ilya Gorbunov
053f3b6ac0
Tests: use helper function to assert compile-time and run-time type check
...
To cleanup warnings about useless cast or type check that is always true.
2017-12-26 04:55:44 +03:00
Ilya Gorbunov
ecd42f14b3
Compile common stdlib tests against common stdlib
...
Declare platform-specific test utilities as expect.
2017-12-26 04:55:40 +03:00
Sergey Igushkin
149b197b24
Fix unconditional warning in JS compilation with sourceMap disabled.
2017-12-25 15:30:01 +03:00
Sergey Igushkin
66d3c94193
Fix both moduleFile and destination passed to the compiler
...
when it is run not in daemon from Gradle; don't pass the destination in
such case.
Issue #KT-21637 Fixed
2017-12-25 15:29:34 +03:00
Sergey Igushkin
00d7150944
Fix warning check in tests:
...
* Fix the regex that could not actually find warnings
* Suppress an unused parameter warning in the test project
* Add allWarningsAsErrors to ExecutionStrategyIT
2017-12-25 15:28:33 +03:00
Sergey Igushkin
41086f26ae
Fix duplicate classpath entry in JS Gradle compilation causing warnings
...
Issue #KT-21943 Fixed
2017-12-25 15:15:54 +03:00
Sergey Igushkin
a88206c5ea
(minor) Fix platform-dependent line separators in source maps test
2017-12-21 20:49:58 +03:00
Ilya Gorbunov
94a0e508d9
Use empty array instead of presized for Collection.toArray
...
#KT-21918
2017-12-21 20:10:28 +03:00
Sergey Igushkin
710c726c9a
Improve kapt arguments & javac options usability with Kotlin DSL
...
Issue #KT-21596 Fixed
2017-12-20 20:49:30 +03:00
Anton Bannykh
8ed8e05a68
JS: honor ignoreTestFailures flag and report failures to TC (KT-20735
...
fixed)
2017-12-19 14:38:15 +03:00
Ilya Chernikov
1cd14f00eb
Ignore connection error on the (optional) daemon.clearJarCache call
...
May fix issues with NoSuchObjectException and UnmarshalException - the
stacktraces often point to this place
2017-12-18 16:49:50 +01:00
Ilya Gorbunov
d8cd926a8c
Do not leak primitiveness of an array wrapped with asList
...
A primitive array wrapped in a List with asList had incorrect implementation of toArray method:
while it declares that an object array is returned, it returned a primitive array.
Therefore the methods such as `Collection.toTypedArray()` and its dependents
`ArrayList(collection)`, `Collection + Iterable` might behave incorrectly
having relied on `toTypedArray` returned an object array.
#KT-21828 Fixed
2017-12-18 15:50:15 +03:00
Yan Zhulanow
1692d1a087
Kapt: Add missing 'flush()', otherwise the serialized data can be empty
2017-12-18 18:57:38 +09:00
Yan Zhulanow
d4be55df0e
Kapt, Minor: Fix empty option parsing
2017-12-16 02:17:24 +09:00
Simon Ogorodnik
7c5897c1ab
Skip deprecated for org.junit package in kotlin.test
2017-12-15 20:09:51 +03:00
Simon Ogorodnik
c2e706db6c
Enable generation of docs for deprecated declarations
2017-12-15 20:09:49 +03:00
Simon Ogorodnik
c5c52dbda5
Fix annotations docs for kotlin.test
2017-12-15 20:09:48 +03:00
Simon Ogorodnik
430aad3651
Set LV = 1.2 in Dokka for generating stdlib docs
2017-12-15 20:09:47 +03:00
Simon Ogorodnik
3c78156f0f
Suppress kotlin.reflect.jvm.internal
2017-12-15 20:09:46 +03:00
Simon Ogorodnik
fb3cf212ce
Suppress docs for org.junit.Test header in kotlin.test
2017-12-15 20:09:45 +03:00
Simon Ogorodnik
99951db7e3
Add module docs for kotlin.test
2017-12-15 20:09:44 +03:00
Simon Ogorodnik
978a7fdfaa
Add stdlib to kotlin.test docs classpath
2017-12-15 20:09:43 +03:00
Simon Ogorodnik
773fca5245
Use correct task to build builtins.jar
2017-12-15 20:09:42 +03:00
Simon Ogorodnik
640ce213cf
Compile stdlib builtins ant pass it to Dokka
...
We need builtins to allow linking to type-aliased classes
such as Exception
2017-12-15 20:09:41 +03:00
Simon Ogorodnik
697b358293
Make local dokka run easier
2017-12-15 20:09:40 +03:00
Simon Ogorodnik
9ab48d8374
Suppress whole org.w3c
2017-12-15 20:09:38 +03:00
Simon Ogorodnik
99af2372c3
Suppress undocumented warnings for third-party js packages
2017-12-15 20:09:37 +03:00
Simon Ogorodnik
17106d6546
Use makeurl to create package-list URL in ant
2017-12-15 20:09:36 +03:00
Ilya Gorbunov
cc139856c8
List all source folders instead of project folder
2017-12-15 20:09:34 +03:00
Ilya Gorbunov
9b1867ce64
Docs: run gradle project and wrapper from the root dir
...
Build docs for kotlin-stdlib-jdk7/8 instead of jre7/8.
2017-12-15 20:09:33 +03:00
Simon Ogorodnik
a19e229a72
Minor: prepare for documentation generation
2017-12-15 20:09:32 +03:00
Anton Bannykh
f68d639c63
Add @Target's to kotlin.test annotations
2017-12-15 14:14:00 +03:00
Yan Zhulanow
f9813e3276
Kapt, Minor: Add kapt-runtime to sources for kotlin-annotation-processing-maven
2017-12-15 02:35:17 +09:00
Yan Zhulanow
db4c441573
Kapt, Maven: Fix path for kapt3 compiler plugin sources
2017-12-15 02:35:16 +09:00
Yan Zhulanow
4d067ab9ce
Kapt, Maven: Support passing javac/annotation processor options (KT-21565, KT-21566)
2017-12-15 02:35:15 +09:00
Yan Zhulanow
1af93b8342
Kapt: Consider all 'kapt' configuration dependencies as KaptTask dependencies.
2017-12-15 02:35:14 +09:00
Yan Zhulanow
d58665b5a8
Kapt: Remove duplicating check, this also removes the senseless warning (KT-21425)
2017-12-15 02:35:12 +09:00
Yan Zhulanow
5116f598df
Kapt: Fix error message when no annotation processors were found (KT-21729)
...
Error message says "androidProcessor", it should be "annotationProcessor"
2017-12-14 19:28:51 +09:00