Alexander Udalov
d499998655
Inject CompilerConfiguration instead of LanguageVersionSettings
...
LanguageVersionSettings can be read from the configuration. Also, the
configuration may be used for other stuff, not related to language version
settings, soon
2017-02-20 16:18:00 +03:00
Alexander Udalov
4b31e75550
Refactor createContainerForLazyResolve/createLazyResolveSession
2017-02-20 16:18:00 +03:00
Alexander Udalov
ee1152bc98
Simplify injection of LanguageVersionSettings into JVM analysis
...
Pass the LanguageVersionSettings instance inside the CompilerConfiguration,
since it's needed anyway. In compiler and tests, the configuration comes from
KotlinCoreEnvironment; in IDE, we're constructing it in JvmAnalyzerFacade
2017-02-20 16:18:00 +03:00
Denis Zharkov
f2aacf774e
Get rid of redundant not-null assertion for parameter
...
The problem was that in `Function<T>.apply(T)` T is now not-platform,
so when checking if not-null assertion is needed for parameter in SAM,
it's defined by the upper bounds of T that is a platform (Any..Any?),
and while it's definitely not marked as nullable it's still nullable
in a sense that it can contain null as a value.
So the solution is obvious
#KT-16413 Fixed
2017-02-20 15:46:49 +03:00
Dmitry Jemerov
1bb7a617ad
Don't overwrite explicitly specified language version in facet with version from dependencies; add tests for setting language version based on dependencies
...
(cherry picked from commit fc2b9f6)
2017-02-20 11:32:11 +01:00
Denis Zharkov
a3baca829f
Drop KotlinTarget.INNER_CLASS entry
...
In most of the cases it was used together with CLASS_ONLY and vice versa
They only case when CLASS_ONLY was used without INNER_CLASS
is possibleParentTargetMap.COMPANION_KEYWORD.
But after diagnostic NESTED_OBJECT_NOT_ALLOWED has been introduced,
there's no sense in the restriction of exactly the companion's parent
For clarification see test data changed
2017-02-20 13:24:42 +03:00
Denis Zharkov
d1b17f050b
Prohibit objects inside inner classes
...
#KT-16232 Fixed
2017-02-20 13:24:42 +03:00
Denis Zharkov
5b9b003e02
Prohibit inner sealed classes
...
#KT-16233 Fixed
2017-02-20 13:24:42 +03:00
Alexey Andreev
86d1c7b7ec
JS: fix absence of temporary variable in secondary constructors. See KT-16377
2017-02-20 11:31:38 +03:00
Alexey Tsvetkov
3b222f13f3
Replace daemon's message after start with constant string
...
#KT-15783 fixed
When a daemon client cannot find an existing daemon, it starts a new one.
The client waits for a daemon to start and initialize.
Then the daemon is expected to signal that it is ready for compiling by printing message in stdout.
Before this change the message was the daemons' run path (a directory where all daemons store
their "flag" files).
However the path printed by the daemon was not matched by the path expected by the client somehow
on Windows for a user with a username containing non-English letters.
This commit replaces the message with the constant string.
2017-02-18 19:35:06 +03:00
Alexey Tsvetkov
b2de822fd4
Start daemon with explicit server ip address to prevent host name resolution
2017-02-18 19:35:06 +03:00
Denis Zharkov
0d8f64353a
Fix JVM signature mapping for multi-dimensional arrays
...
#KT-11314 Fixed
2017-02-17 17:50:43 +03:00
Dmitry Jemerov
83d64e8eba
Don't replace explicitly configured project settings with autodetected ones
...
(cherry picked from commit f16f975)
2017-02-17 14:44:37 +01:00
Nikolay Krasko
7bae72113b
Rename: ExtraSteppingFilter -> KotlinExtraSteppingFilter
2017-02-17 15:57:11 +03:00
Nikolay Krasko
f7391f6c1a
Minor: refactoring
2017-02-17 15:57:11 +03:00
Nikolay Krasko
d58707972d
Keep empty bodies for declarations with comments (KT-16078)
...
#KT-16078 Fixed
2017-02-17 15:57:11 +03:00
Denis Zharkov
e16b0524b6
Fix inline codegen on local functions inside inlined lambda
...
The problem was that anonymous classes wasn't regenerated
although they capture another anonymous class that is a subject
for regeneration
#KT-8689 Fixed
2017-02-17 13:48:19 +03:00
Alexey Tsvetkov
dfb60ba4ac
Minor: remove the word 'experimental' from Gradle IC description
2017-02-16 21:27:04 +03:00
Alexey Tsvetkov
62a15e803b
Avoid storing absolute paths in SyncOutputTask
...
#KT-16003 fixed
2017-02-16 21:26:50 +03:00
Alexey Tsvetkov
6e0f3b7f1f
Avoid having -d and -module set at the same time
...
#KT-14619 fixed
2017-02-16 21:26:50 +03:00
Alexey Tsvetkov
667c00e3ed
Copy compiler arguments from compile task to kapt task
...
#KT-15994 fixed
2017-02-16 21:26:50 +03:00
Dmitry Jemerov
3225c93ce0
Don't pass paths to non-existing metadata files from dependent modules
2017-02-16 19:16:19 +01:00
Mikhail Glukhikh
797813a8d4
Change log update (final) for 1.1-RC
2017-02-16 18:55:14 +03:00
Dmitry Jemerov
6aa3c26f78
Disable facet detection; force detection of API/language level from dependencies on project opening
2017-02-16 16:51:09 +01:00
Dmitry Jemerov
58713270bb
Ask to update runtime library when increasing language version for module
2017-02-16 16:50:47 +01:00
Alexander Udalov
de2117663c
Fix overload resolution ambiguity on *Array.clone() with runtime 1.0
...
#KT-16371 Fixed
2017-02-16 18:46:05 +03:00
Alexander Udalov
9d11f0b92f
Minor, check every deserialized value in refsAreSerializable.kt
2017-02-16 18:00:19 +03:00
Alexander Udalov
1ee2053a16
Make callable references Serializable on JVM
...
#KT-11254 Fixed
2017-02-16 18:00:18 +03:00
Dmitry Jemerov
4d451356eb
Quickfixes to enable unsupported and experimental features handle API level correctly and support updating the runtime library
2017-02-16 12:41:42 +01:00
Dmitry Jemerov
ea228a2fa8
Fix testdata for SimpleKotlinRenderLogTest
2017-02-16 11:43:16 +01:00
Alexander Udalov
612481f0f4
Fix stub builder for builtins after cdeabf26b4
2017-02-16 10:35:07 +03:00
Alexander Udalov
cdeabf26b4
Fix NPE from KotlinBuiltInDecompiler
...
This happened because of bae955aafd : similarly to the corresponding code in
the compiler, the IDE should also skip the metadata for kotlin.Cloneable when
decompiling built-ins because the deserializer is not going to resolve this
class from the metadata
2017-02-16 01:31:44 +03:00
Mikhail Glukhikh
4d4e2c5c94
Change log for 1.1-RC updated
...
(cherry picked from commit 4897af1)
2017-02-15 20:53:44 +03:00
Alexander Udalov
8e407d548a
Suggest to provide explicit dependency on new kotlin-reflect
...
In case when there's kotlin-stdlib 1.1 and kotlin-reflect 1.0 in the classpath
2017-02-15 20:43:25 +03:00
Alexander Udalov
71fcb07fad
Infer API version from older runtime in compiler's classpath
...
For example, if you invoke kotlinc 1.1 with kotlin-stdlib 1.0 in the classpath,
we now infer -api-version 1.0 automatically
2017-02-15 20:43:25 +03:00
Alexander Udalov
b56639a775
Filter out files with the same paths in runtime version checker
...
To prevent listing them several times in the diagnostic message
2017-02-15 20:43:25 +03:00
Alexander Udalov
8457ab7c58
Report warnings instead of errors in runtime version checker
2017-02-15 20:43:25 +03:00
Alexander Udalov
ba84338862
Support smart cast for nullability in LHS of class literal
...
#KT-16291 Fixed
2017-02-15 20:43:25 +03:00
Alexander Udalov
bae955aafd
Serialize metadata for Cloneable and discard it during deserialization
...
#KT-16358 Fixed
2017-02-15 20:43:25 +03:00
Alexander Udalov
46bd64f59a
Rename FunctionImpl -> FunctionBase, restore abstract class FunctionImpl
...
This fixes the IncompatibleClassChangeError which happens when kotlin-reflect
1.0.x and kotlin-stdlib 1.1.x are in the classpath
#KT-16358 In Progress
2017-02-15 20:43:25 +03:00
Dmitry Jemerov
41f7950ab8
UAST tests: don't null out the application if we have a valid one that we restored from a previous test
2017-02-15 18:21:37 +01:00
Anton Bannykh
4c808e8691
JS: concat vararg arguments using Kotlin.concat and Kotlin.concatPrimitive functions in order to be binary compatible with (Kotlin PrimitiveArray -> JS TypedArrays) mapping.
2017-02-15 18:58:29 +03:00
Ilya Gorbunov
a903c4ab0e
Change log clarifications regarding stdlib
...
(cherry picked from commit ba857a83fff9ec28f8cecce9b560e3922972bc20)
2017-02-15 18:17:11 +03:00
Dmitry Jemerov
7704310359
Fix Kotlin facet autodetection so that it actually works and stores the correct language/API level based on project dependencies
2017-02-15 15:48:43 +01:00
Mikhail Glukhikh
3bc322c2ce
Change log for 1.1-RC updated
2017-02-15 17:45:47 +03:00
Dmitry Jemerov
f06d46fe9a
Advance until-build to 172.*
2017-02-15 14:43:53 +01:00
Yan Zhulanow
8e9536f61d
Revert "Kapt3: Add generated source files to Java compile task after kapt execution. Filter only .java files."
...
This reverts commit 82c2ce3a336b8d15161ecb6dbad0c269c9966818.
2017-02-15 16:28:33 +03:00
Yan Zhulanow
35b41b9401
Kapt3: Fix annotation processor option passing
2017-02-15 16:28:26 +03:00
Dmitry Jemerov
95bfe8668d
UAST tests no longer leave a disposed application around
2017-02-15 12:56:21 +01:00
Alexey Sedunov
5d65e6bc9b
Kotlin Facet: Facet migration workaround for the case pre-1.1-beta -> 1.1.rc+ (reset useProjectSettings to false for old configurations)
2017-02-15 14:40:09 +03:00