Commit Graph

10191 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 1ddf074052 Compacted serialized versions of methods and functions in JavaToKotlinMethodMapGenerated. 2013-04-02 22:04:22 +04:00
Evgeny Gerashchenko 9bccb98a7d KT-3468 Kotlin can't understand compareTo was overridden in Java
Never using parameter names when serializing methods. They were added to external name if JDK sources were present and not added if JDK sources were absent.

 #KT-3468 fixed
2013-04-02 22:04:22 +04:00
Natalia.Ukhorskaya d84cf971c1 Do not fold imports if there is only one
#KT-3410 Fixed
2013-04-02 17:49:55 +04:00
Andrey Breslav 0985b124df Compilation fixed 2013-04-02 13:14:06 +04:00
Andrey Breslav ffeb73beb5 EA-43573 - assert: KotlinJavaFileStubProvider$.generate
The problem was that KotlinJavaFileStubProvider instances remembered information that changed between their invocation:
 e.g. when a package gets renamed the qualified name in a java file stub does not get updated
2013-04-02 13:11:55 +04:00
Svetlana Isakova d57003dece added ? as type argument to avoid raw types
to CallResolutionContext
2013-04-01 20:02:08 +04:00
Svetlana Isakova 12c0a2cb77 KT-3461 Nullable argument allowed where shouldn't be
#KT-3461 Fixed
2013-04-01 19:07:36 +04:00
Leonid Shalupov dd0acf6013 gradle: fix test 2013-04-01 18:58:59 +04:00
Leonid Shalupov 7b0e3465c2 gradle: handling of noJdkAnnotations argument 2013-04-01 18:58:56 +04:00
Leonid Shalupov f81e3f6881 Merge pull request #236 from nskvortsov/master
Fix kotlin class injection to javac classpath
2013-04-01 07:48:39 -07:00
Nikita Skvortsov b93f7f3202 inject Kotlin classes to javac classpath carefully 2013-04-01 18:38:21 +04:00
Mikhael Bogdanov 16aa4153e4 KT-3457 fix: added missed spread operator and receiver became format template 2013-04-01 14:50:20 +04:00
Andrey Breslav a0e9f4ea01 Copyright added 2013-04-01 13:39:44 +04:00
Andrey Breslav d42a9f37a3 Proper checking for a qualified name
When i18n plugin is enabled, it looks for classes like "java.lang.Object...)" while highlighting annotations.xml

EA-43709 - IAE: NameUtils.requireIdentifier
2013-04-01 13:37:02 +04:00
Leonid Shalupov 4c3f8ff633 move maven examples to https://github.com/JetBrains/kotlin-examples 2013-03-30 15:42:46 +04:00
Leonid Shalupov bbb526476e maven plugin: get jdk annotations from plugin's classpath 2013-03-30 15:42:44 +04:00
Leonid Shalupov 5ee5c841cb generators: don't write to files if content is not changed 2013-03-30 15:42:41 +04:00
Agnieszka Paszek 7bac3c5db6 Generated changes 2013-03-29 20:40:26 +04:00
Agnieszka Paszek da2880f985 Added quckfix for PROJECTION_IN_IMMEDIATE_ARGUMENT_TO_SUPERTYPE 2013-03-29 20:39:18 +04:00
Agnieszka Paszek 7c041d5c94 Added quickfix for PROJECTION_ON_NON_CLASS_TYPE_ARGUMENT 2013-03-29 20:39:00 +04:00
Agnieszka Paszek 50f8948706 Added quickfix for CONFLICTING_PROJECTION 2013-03-29 20:38:40 +04:00
Agnieszka Paszek 56774cccd8 Added quickfix for NESTED_CLASS_NOT_ALLOWED 2013-03-29 20:38:18 +04:00
Evgeny Gerashchenko 72284c36d4 Added examples in code. 2013-03-29 20:36:48 +04:00
Evgeny Gerashchenko 8014f1af0b Extracted method. 2013-03-29 20:36:48 +04:00
Evgeny Gerashchenko e5d14f6970 Minor. Simplified, reformatted, got rid of warnings. 2013-03-29 20:36:47 +04:00
Evgeny Gerashchenko 056c7e0df3 Simplified code. 2013-03-29 20:36:47 +04:00
Evgeny Gerashchenko 6ff9bfd4bb Supported SAM constructor calls without function literal. 2013-03-29 20:36:47 +04:00
Evgeny Gerashchenko f11a1a2d28 Minor. Simplified, reformatted, got rid of warnings. 2013-03-29 20:36:46 +04:00
Nikolay Krasko e77f1060b3 Update to IDEA 129.111 (12.1 EAP RC2) 2013-03-29 18:56:35 +04:00
Alexey Sedunov 6a7cd7c6e3 Add tests for mutability annotation support in type resolver 2013-03-29 18:42:47 +04:00
Alexey Sedunov fc7bb67aca Add extended annotation to test environment 2013-03-29 18:42:44 +04:00
Alexey Sedunov 393ebf44aa Implement mutability annotation support in type resolver 2013-03-29 18:42:43 +04:00
Alexey Sedunov 975c66b946 Add module with extended annotations (mutable, read-only) 2013-03-29 18:42:43 +04:00
Nikolay Krasko 3f2102b04f Verify both plugins with idea 12.1 eaps 2013-03-29 13:50:15 +04:00
Evgeny Gerashchenko dcb95fc5ac Fixed priorities for synthetic functions. 2013-03-29 13:10:31 +04:00
Natalia.Ukhorskaya 73bbda5b93 AndroidTests: do not run test which use file system 2013-03-29 11:47:05 +04:00
Leonid Shalupov fb2809388b Merge pull request #233 from nskvortsov/master
Kotlin Gradle plugin improvements
2013-03-28 09:57:00 -07:00
Evgeny Gerashchenko 13d856db8e Moved max priority constant to PriorityProvider. 2013-03-28 20:08:35 +04:00
Evgeny Gerashchenko 0fee69fe07 Prioritized synthetic and not synthetic functions. 2013-03-28 20:07:47 +04:00
Evgeny Gerashchenko 2e678a94f1 Replaced predicate strategy with priority-returning strategy. 2013-03-28 18:27:35 +04:00
Evgeny Gerashchenko 69c5411269 Fixed recently added annotation. 2013-03-28 17:12:26 +04:00
Evgeny Gerashchenko 0bc65321c2 KT-1547 Wrong layout of closure classes
#KT-1547 fixed
2013-03-28 15:54:51 +04:00
Evgeny Gerashchenko 05e4164a0d Committing ant.xml. 2013-03-28 15:54:51 +04:00
Evgeny Gerashchenko b7527101cd Always using "SAM interface" term. 2013-03-28 15:54:51 +04:00
Evgeny Gerashchenko c619685dc8 Added test with overridden j.l.Object methods in trait. 2013-03-28 15:54:51 +04:00
Natalia.Ukhorskaya 221df82c01 Build class hierarchy for classes from BuiltIns 2013-03-28 15:25:28 +04:00
Natalia.Ukhorskaya f4a0808a28 Fix resolve in sources files of libraries 2013-03-28 15:25:24 +04:00
Natalia.Ukhorskaya e1dece4345 Inline functions from AnalyzeSingleFileUtil 2013-03-28 14:30:57 +04:00
Andrey Breslav 1ad0cad020 Incomplete analysis results are available for light class generation
If we have the following classes

 class A // Kotlin
 class B extends A {} // Java
 class C : B() // Kotlin

 The analysis runs into infinite recursion, because C needs all members of B (to compute overrides),
 and B needs all members of A, and A is not available from KotlinCacheManager.getDeclarationsFromProject() -- it is being computed right now,
 so the analysis runs again...

 Our workaround is:
  * when analysis starts put its trace into user data on the project
  * when a light class is about to generate a stub, it requests a trace, and if there is such an incomplete trace, it is returned
  * the logic of TopDownAnalyzer that works in descending order (down the class hierarchy) guarantees that all the superclasses are already processed
2013-03-28 11:29:53 +04:00
Andrey Breslav 83e2986a7b Unused methods removed, class renamed 2013-03-27 20:31:00 +04:00