Mikhail Glukhikh
045a23ae10
Cleanup: apply "Convert lambda to reference"
2017-03-15 17:36:02 +03:00
Mikhail Glukhikh
b121bf8802
Cleanup: fix some compiler warnings (mostly deprecations, javaClass)
2017-03-15 17:35:31 +03:00
Mikhail Glukhikh
d0cc1635db
Cleanup: apply "Use synthetic property access syntax"
2017-03-15 16:13:40 +03:00
Vyacheslav Gerasimov
b8563f7fcf
Fix KotlinUastTypesTest.testCycleInTypeParameters
2017-03-15 00:20:40 +03:00
Yan Zhulanow
f6734e74e1
Minor, SamWithReceiver: Fix services for kotlinc CLI execution
...
Move service files to META-INF to support execution from CLI (using PluginCliParser).
2017-03-14 18:36:40 +03:00
Dmitry Jemerov
006062499c
Optimize imports (to fix compilation under 171 branch)
2017-03-13 16:34:48 +01:00
Dmitry Petrov
a087ea559f
Eliminate redundant CHECKCAST instructions
...
CHECKCAST is redundant if the corresponding static type exactly matches the target type.
CHECKCAST instructions to-be-reified should not be eliminated.
KT-14811 Unnecessary checkcast generated in parameterized functions
KT-14963 unnecessary checkcast java/lang/Object
2017-03-13 09:04:31 +03:00
Vyacheslav Gerasimov
830bf62d94
Fix SOE from UAST in containsLocalType
...
containsLocalType now properly handles start projections
#KT-16680 Fixed
2017-03-10 17:30:21 +03:00
Alexey Sedunov
641a9a7153
Kotlin Facet: Get rid of duplicating data in facet configuration
2017-03-09 23:06:12 +03:00
Dmitry Jemerov
01a9d9a284
Support lazy conversion of parent chain; correctly check expected class
2017-03-09 17:07:43 +01:00
Dmitry Jemerov
8c3936a0ee
Update to UAST 0.12
2017-03-09 17:07:43 +01:00
Vyacheslav Gerasimov
1376c8f8cf
Implement quickfixes for Android Lint api issues
...
#KT-16624 Fixed
#KT-16625 Fixed
#KT-14947 Fixed
2017-03-03 16:22:36 +03:00
Vyacheslav Gerasimov
39010ab847
Fix broken isReferenceTo checking code for Android extensions
...
#KT-16132 Fixed
2017-03-03 16:17:52 +03:00
Dmitry Jemerov
ea228a2fa8
Fix testdata for SimpleKotlinRenderLogTest
2017-02-16 11:43:16 +01: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
Dmitry Jemerov
95bfe8668d
UAST tests no longer leave a disposed application around
2017-02-15 12:56:21 +01:00
Vyacheslav Gerasimov
a2e429a912
Fixed exception in getUastLocation of class annotation argument
...
#KT-16326 Fixed
2017-02-14 15:56:37 +03:00
Dmitry Jemerov
87187437ab
Update UAST to version 1.0.11
2017-02-10 13:55:25 +01:00
Yan Zhulanow
131570080d
Kapt3: Generate import statements in stubs
2017-02-08 19:01:17 +03:00
Yan Zhulanow
69a063b0b2
Kapt3: Serialize annotation processor options to base64 to support spaces in option values
2017-02-08 19:01:16 +03:00
Yan Zhulanow
8479618632
Kapt3: Invoke integration tests with the Kotlin runtime in the compile classpath (this fixes integration tests, nullability annotations from org.jetbrains were not found)
2017-02-08 19:01:15 +03:00
Yan Zhulanow
823781ea6c
Kapt3: "$annotations" are not always ACC_PRIVATE now (see also KT-15993)
2017-02-08 19:01:14 +03:00
Yan Zhulanow
2553513205
Kapt3: Allow users to disable error type correction (and now it's disabled by default)
2017-02-08 19:01:13 +03:00
Yan Zhulanow
297f8d4161
Kapt3: Use the javac's finalCompiler log to determine if there were any annotation processing errors (KT-16176)
2017-02-08 19:01:13 +03:00
Yan Zhulanow
62092f31cc
Minor: Update test data because of KT-15697
2017-02-08 19:01:12 +03:00
Yan Zhulanow
de3cb4567f
Minor: Remove obsolete JAVA_FILE_PARSING_ERROR constant, fix corresponding test
2017-02-08 19:01:11 +03:00
Yan Zhulanow
08b98f7133
Kapt3: Ignore declarations with illegal Java identifiers (KT-16153)
2017-02-08 19:01:10 +03:00
Yan Zhulanow
7296d9cb7c
Kapt3: Fix working in verbose mode (NPE in JavacFiler.java:597) (KT-16146)
2017-02-08 19:01:09 +03:00
Yan Zhulanow
43a377d3e1
Kapt: Fix error messages map name
2017-02-08 19:01:08 +03:00
Yan Zhulanow
1819194a4c
Kapt3: Allow annotations with Kotlin-only targets, such as PROPERTY (KT-15697)
2017-02-08 19:01:07 +03:00
Yan Zhulanow
6ded5939eb
Kapt: Fix javac error reporting in Kotlin daemon, also fix parsing error reporting (KT-15524)
2017-02-08 19:01:06 +03:00
Yan Zhulanow
cde7cb1076
Kapt3: Write Intellij annotations (NotNull/Nullable) to stubs
2017-02-08 19:01:05 +03:00
Yan Zhulanow
1797ea62f4
NoArg: Support @Embeddable JPA annotation (KT-15946)
2017-02-08 19:01:03 +03:00
Yan Zhulanow
feb5397f6f
AllOpen, NoArg: Refactoring, support presets in order to hold special annotations for Spring and JPA in one place
2017-02-08 17:36:19 +03:00
Dmitry Jemerov
00003684e8
Add test for converting a string literal to UAST
2017-02-08 11:29:53 +01:00
Dmitry Jemerov
5dc178460e
Update UAST to 1.0.10; move uast-kotlin tests to Kotlin project
2017-02-08 11:29:53 +01:00
Dmitry Jemerov
0709561869
Add missing required type checks; correctly skip elements which have no UAST equivalents when converting an element together with parent; correctly convert string template entries (they aren't expressions)
2017-02-07 19:18:05 +01:00
Vyacheslav Gerasimov
1452129b60
Fixed InvalidMirrorException in uast while getting annotation argument location
2017-02-03 18:06:05 +03:00
Vyacheslav Gerasimov
6699b03c0b
Fixed error reporting in AnnotationDetector
...
#KT-14920 Fixed
(cherry picked from commit 3647d53)
2017-02-03 18:06:05 +03:00
Vyacheslav Gerasimov
10517c16ee
Uast 1.0.9
2017-02-03 18:06:04 +03:00
Yan Zhulanow
1b337e1a48
Generate enum values with bodies properly (KT-15803)
2017-01-30 20:13:08 +03:00
Yan Zhulanow
18e0baa13e
Kapt: Allow empty .kt files list in kapt in order to support kapt with Java-only source files. (KT-15675)
2017-01-30 20:13:08 +03:00
Alexander Udalov
7ac96163ac
Introduce CompilerMessageSeverity.STRONG_WARNING
...
This is a severity for mandatory warnings, i.e. those which should be reported
in any case, even if there are compilation errors
2017-01-30 16:01:27 +03:00
Alexey Sedunov
be3e33051e
Kotlin Facet: Fix Gradle import without "module per source set" option
...
#KT-15812 Fixed
2017-01-27 20:05:01 +03:00
Dmitry Jemerov
2c1c3d1f31
Workaround for compilation issue: don't use a Java shim to access token name, use toString() instead (for all relevant tokens, it will return the name, and for all others, the return value won't match the Java keyword filter regexp)
2017-01-27 13:32:20 +01:00
Ilya Chernikov
4bb5e978a7
Implement SamWithReceiverAnnotations annotation and it's handling (KT-15848)
...
TODO: tests
2017-01-26 20:53:24 +01:00
Yan Zhulanow
3b4a8e0f33
Kapt3: Write qualified name of classes on error type conversion, handle declaration-site variance properly.
2017-01-27 01:20:01 +09:00
Yan Zhulanow
72bbf9697b
Kapt3: As javac now reads stubs from Java files, not from AST, we should provide the valid names for all identifiers (at least names should not clash with Java keywords).
...
Rename identifiers if it clashes with Java keywords. (KT-15838)
2017-01-27 01:20:01 +09:00
Yan Zhulanow
e28b4dfbc7
Kapt3: Do not check type for star projection, it causes the infinite recursion. Also limit recursion depth to 10. (KT-15841)
2017-01-27 01:20:00 +09:00
Vyacheslav Gerasimov
4fe040eeb9
Fixed several bugs in Android lint ApiDetector (KT-15002, KT-12024, KT-14737, KT-14825, KT-12023, KT-15018)
...
Merged IntelliJApiDetector to ApiDetector
#KT-15002 Fixed
#KT-12024 Fixed
#KT-14737 Fixed
#KT-14825 Fixed
#KT-12023 Fixed
#KT-15018 Fixed
(cherry picked from commit e830e8b55fa2e354303a6c604b3905285a05b9db)
2017-01-25 10:50:36 +03:00