Alexander Udalov
bfb3b38ebc
Do not try to load Java classes from incorrect packages
...
#KT-11474 Fixed
2017-05-18 13:30:06 +03:00
Alexander Udalov
52237ce77f
Fix KClass.java intrinsic for stack values of type Unit
...
#KT-17692 Fixed
2017-05-18 13:29:04 +03:00
Alexander Udalov
9b85fed3c4
Fix typo in kotlinc-js help
...
File separator is '/', path separator is ':' or ';'
2017-05-18 13:29:03 +03:00
Alexander Udalov
18a211cb84
Add regression test for obsolete issue
...
#KT-17365
2017-05-18 13:29:02 +03:00
Denis Zharkov
49453ca705
Avoid dependency on coroutine-related public API changes
...
These changes has been introduced in c3a032ea0b
to support new scheme for named functions
At the same time they can be avoided by generating some additional
code/accessors in the anonymous classes for coroutine state
Now we cannot simply remove introduced API because of bootstrap problems
#KT-17898 Fixed
2017-05-18 12:42:12 +03:00
Denis Zharkov
06b598e595
Minor. Rename CoroutineCodegenForLambda.kt -> CoroutineCodegen.kt
2017-05-18 12:42:12 +03:00
Dmitry Petrov
c1ef0bfcdb
Report deprecation on usage of type alias expanded to a deprecated class
...
#KT-15243 Fixed
2017-05-18 10:56:02 +03:00
Dmitry Petrov
a2db4dc0d5
Fix incremental compilation problems related to type alias constructors
...
1. Determine source element for descriptors with NO_SOURCE recursively.
2. Always provide type abbreviation for type alias constructor
return type.
#KT-15495 Fixed
2017-05-18 10:55:16 +03:00
baratynskiy
1eb1735ac9
Return from compile() function immediately if javaFiles collection is empty
2017-05-17 17:49:53 +03:00
baratynskiy
eb85e9f5f3
Introduce isFromSourceCodeInScope function
...
See `VirtualFileBoundJavaClass` interface
2017-05-17 17:49:33 +03:00
baratynskiy
91412b0ee9
Add tools.jar for JPS plugin
2017-05-17 17:48:59 +03:00
baratynskiy
71ba8e3ad0
Add tools.jar for command line compiler if -Xuse-javac is specified
2017-05-17 17:48:53 +03:00
baratynskiy
5eea3b6569
Introduce experimental -Xuse-javac compilation mode
...
In this mode, javac AST and Symbol files are used during
Kotlin compilation instead of PSI / binary stuff.
Later, they are reused for Java file compilation.
javac in this mode is integrated into kotlinc.
2017-05-17 17:48:17 +03:00
baratynskiy
c9a04fe1e2
Extract VirtualFileBoundJavaClass interface
2017-05-17 17:42:13 +03:00
baratynskiy
a815125281
Use JDK 8 in AbstractCompileAgainstKotlin test
2017-05-17 17:42:12 +03:00
baratynskiy
65aac7ae13
Extract AbstractJavaResolverCache
2017-05-17 17:42:10 +03:00
baratynskiy
f576f0b4a0
Extract AbstractJavaClassFinder
2017-05-17 17:42:09 +03:00
baratynskiy
fe9a2b30fd
JavaClassFinderImpl: J2K
2017-05-17 17:42:08 +03:00
baratynskiy
7af5dc7d03
JavaClassFinderImpl: java -> kt
2017-05-17 17:42:07 +03:00
baratynskiy
5c01b6fa20
AbstractCompileJavaAgainstKotlinTest: J2K
2017-05-17 17:42:05 +03:00
baratynskiy
be41364fdd
AbstractCompileJavaAgainstKotlinTest: java -> kt
2017-05-17 17:42:04 +03:00
Denis Zharkov
692840860e
Use allScope when resolving classifiers of binary classes
...
Otherwise it might lead to the problems when reading class files
from the source scope (e.g. a groovy file or an already compiled java file)
Note that it may be reproduced only with Maven because in JPS
and Gradle we reading source java files even when they're shouldn't be
recompiled, while in Maven we read class files in the case
#KT-17897 Fixed
2017-05-17 14:33:23 +03:00
Mikhael Bogdanov
d9dc2bd443
Minor. Fix review remarks
2017-05-17 10:20:04 +02:00
Mikhael Bogdanov
fd561c6cb9
Support default bound callable reference inlining
...
#KT-6884 Fixed
2017-05-17 10:20:03 +02:00
Mikhael Bogdanov
8a083a41d5
Clean code after transformation
2017-05-17 10:20:02 +02:00
Mikhael Bogdanov
eca359f176
Convert RegeneratedLambdaFieldRemapper to Kotlin
2017-05-17 10:20:01 +02:00
Mikhael Bogdanov
fe4668c315
Rename RegeneratedLambdaFieldRemapper.java to RegeneratedLambdaFieldRemapper.kt
2017-05-17 10:20:01 +02:00
Mikhael Bogdanov
77af888b6f
Code clean after convertion
2017-05-17 10:20:00 +02:00
Mikhael Bogdanov
5b947ac27e
Convert FieldRemapper to Kotlin
2017-05-17 10:19:59 +02:00
Mikhael Bogdanov
f795f2777c
Rename FieldRemapper.java to FieldRemapper.kt
2017-05-17 10:19:58 +02:00
Mikhael Bogdanov
e86e128c8a
Code clean after convertion
2017-05-17 10:19:58 +02:00
Mikhael Bogdanov
fcd76e6dec
Convert InlinedLambdaRemapper to Kotlin
2017-05-17 10:19:57 +02:00
Mikhael Bogdanov
d1fdfd484b
Rename InlinedLambdaRemapper.java to InlinedLambdaRemapper.kt
2017-05-17 10:19:56 +02:00
Mikhael Bogdanov
05d2aa700b
Support default property reference inlining
2017-05-17 10:19:55 +02:00
Mikhael Bogdanov
a96fada230
Switch tests for default lambda inlining on language level 1.2
2017-05-17 10:19:55 +02:00
Mikhael Bogdanov
0ac23c789e
Add diagnostics for default lambda inlining
2017-05-17 10:19:54 +02:00
Mikhael Bogdanov
81c2e1dd8c
Code clean after convertion
2017-05-17 10:19:53 +02:00
Mikhael Bogdanov
6373c3115a
Convert LocalVarRemapper to Kotlin
2017-05-17 10:19:52 +02:00
Mikhael Bogdanov
c6189076cc
Rename LocalVarRemapper.java to LocalVarRemapper.kt
2017-05-17 10:19:51 +02:00
Mikhael Bogdanov
6730fa2bbf
Support default inline lambda reification
2017-05-17 10:19:51 +02:00
Mikhael Bogdanov
9e8495dc3d
Clean code
2017-05-17 10:19:50 +02:00
Mikhael Bogdanov
45bfb2075d
Move reifiedTypeInliner to root context
2017-05-17 10:19:49 +02:00
Mikhael Bogdanov
da13ea4a8a
Move all InliningContext's to one place
2017-05-17 10:19:48 +02:00
Mikhael Bogdanov
9fdd4c647a
Clean code. Add LambdaInfo to InliningContext
2017-05-17 10:19:48 +02:00
Mikhael Bogdanov
9dae183e3a
Convert RootInliningContext.java to Kotlin
2017-05-17 10:19:47 +02:00
Mikhael Bogdanov
8b2164e2b8
Code clean after transformation
2017-05-17 10:19:46 +02:00
Mikhael Bogdanov
fcbd27fdc4
Convert InliningContext.java to Kotlin
2017-05-17 10:19:45 +02:00
Mikhael Bogdanov
04cf5d49d6
Rename InliningContext.java to InliningContext.kt
2017-05-17 10:19:45 +02:00
Mikhael Bogdanov
309051bd21
Obtain reification marker on default lambda extraction.
...
Add reification tests.
2017-05-17 10:19:44 +02:00
Mikhael Bogdanov
47c5e64ba5
Sort smap data by output file name
2017-05-17 10:19:43 +02:00