Commit Graph

12228 Commits

Author SHA1 Message Date
Mikhail Glukhikh 285d5d06c7 More precise value reassignment analysis. #KT-7418 Fixed. #KT-6902 Fixed.
Variable can now be "exactly initialized", "may be initialized" and "not initialized".
A set of relevant tests. Some fixed tests.
2015-09-02 12:07:18 +03:00
Denis Zharkov c59b118b09 Implement quckfix adding explicit upper bounds for generic when needed 2015-09-02 12:04:08 +03:00
Denis Zharkov 632e336782 Prohibit unsafe covariant conversion for collections invariant in Java 2015-09-02 10:39:29 +03:00
Denis Zharkov 6dc08f76a6 Preserve type capabilities while substituting
`val result` in test data rendered descriptors should be rendered as having raw type
2015-09-02 10:38:43 +03:00
Denis Zharkov 3b80bf5bda Make call to additional type checker if no error happened 2015-09-02 10:38:43 +03:00
Stanislav Erokhin d015f713cb KT-6244 Overloads with no default parameters should take over ones with defaults
#KT-6244 Fixed
2015-09-01 23:37:43 +03:00
Stanislav Erokhin 5ded315cbb Improved error reporting for candidates with wrong parameter count 2015-09-01 23:37:42 +03:00
Alexey Tsvetkov 8ea6f36903 Minor: move comment to the member it was written for
Accidentally moved comment when refactored GenerationState
2015-09-01 19:16:22 +03:00
Alexey Tsvetkov 7101f9a3a4 Move GenerationState member up to further simplify constructor usages 2015-09-01 19:05:38 +03:00
Alexey Tsvetkov 1d5b869bee Clean up GenerationState initializer 2015-09-01 19:05:38 +03:00
Alexey Tsvetkov ddd469bb88 Minor: change order of GenerationState members 2015-09-01 19:05:37 +03:00
Alexey Tsvetkov 0a11525dd5 Clean up GenerationState constructor usages 2015-09-01 19:05:37 +03:00
Alexey Tsvetkov 1e964c6302 Make "progress" parameter with last in GenerationState constructor
This parameter has a default value, so it's more convenient to have it
closer to the end of parameter list.
2015-09-01 19:05:37 +03:00
Alexey Tsvetkov 79f450e174 Remove GenerationState secondary constructor 2015-09-01 19:05:37 +03:00
Alexey Tsvetkov 04e5cbb5d3 Convert some GenerationState functions to values 2015-09-01 19:05:37 +03:00
Alexey Tsvetkov 6e0332d418 Move GenerationState properties' initialization to declaration 2015-09-01 19:05:37 +03:00
Alexey Tsvetkov de23f7ace8 Move property declaration to constructor 2015-09-01 19:05:37 +03:00
Alexey Tsvetkov 340929233e Remove unneeded brackets in GenerationState 2015-09-01 19:05:37 +03:00
Alexey Tsvetkov 1fcfbbca1b Replace plus operator with string template
This fixes the conversion issue: there is no "JavaClass<T>.plus(s:
String)" overload.
2015-09-01 19:05:37 +03:00
Alexey Tsvetkov 224bf7fb43 Convert GenerationState: actual conversion 2015-09-01 19:05:36 +03:00
Alexey Tsvetkov 4476dd934c Convert GenerationState: change extension 2015-09-01 19:05:36 +03:00
Dmitry Jemerov 4991aff086 validate FQ name when checking the Java mapping (EA-72095) 2015-09-01 15:02:32 +02:00
Nikolay Krasko 9054151546 Use storage manager to create lazy value 2015-09-01 15:55:47 +03:00
Nikolay Krasko 6c45d81b86 Revert "Use lazy to store split annotations, code simplification"
This reverts commit 0b24e56f5a.
2015-09-01 15:55:46 +03:00
Mikhail Glukhikh 754f8af3fc Type<*> is inferred now if Type<A> and Type<B> common supertype is Type<X> and X is not within parameter upper bound. #KT-7585 Fixed. #EA-68943 Fixed.
It provides also a fix for KT-7585 (empty type intersection assertion).
A set of relevant tests, one fixed test
2015-09-01 15:49:29 +03:00
Alexander Udalov f7a178f978 Report warning on 'Singleton.javaClass'
As a temporary measure before 'javaClass' property is deprecated and removed.
Getting the Java class of a singleton this way is confusing and most of the
time is a failed attempt to get the Java class of a class with a companion
object (e.g. 'Int.javaClass')
2015-09-01 11:36:57 +03:00
Alexander Udalov 3f1bf46756 Minor, add toString() for debug 2015-09-01 11:36:57 +03:00
Ilya Chernikov 427b27b367 Merge pull request #743 from JetBrains/rr/compile-service
Kotlin compile daemon
2015-09-01 09:15:13 +02:00
Nikolay Krasko d6b7214a65 More psi-only checks for Kotlin main function 2015-08-31 21:38:44 +03:00
Ilya Chernikov 7c1c628823 Next round of refactoring after review 2015-08-31 19:10:28 +02:00
Ilya Chernikov 9bee97e810 Refactoring after review 2015-08-31 18:39:55 +02:00
Ilya Chernikov 2d45a37884 Passing JPS process JVM memory options to daemon, refactoring options processing 2015-08-31 18:39:54 +02:00
Ilya Chernikov 61de1c3212 Fixes after review 2015-08-31 18:39:54 +02:00
ligee 434c30c1bc Simple test with daemon compilation, minor fixes mostly for easier testing 2015-08-31 18:39:53 +02:00
ligee 6e3ce69faa Shutting down daemon from kotlin plugin on idea exit, passing jvm params to daemon launch 2015-08-31 18:39:53 +02:00
ligee 5fee180d09 Daemon log, controlling it from launching, proper stdout/err redirection technique, params to control jvm options of the daemon 2015-08-31 18:39:52 +02:00
ligee 39d6592e1f Adding compiler id digest calculation and check to detect replaced compiler jar, minor fixes and refactorings 2015-08-31 18:39:51 +02:00
ligee f08476cba9 Adding daemon stop command to kotlinr, minor fixes 2015-08-31 18:39:51 +02:00
ligee d8be831339 Switching to stream for logging to simplify interaction with use sites 2015-08-31 18:39:50 +02:00
ligee 7ab2208fc5 implementing daemon startup, basic check and restart machanisms, switching to kotlin everythere, additional logging and checks, in JPS plugin daemon compilation is off by default, turned on by "kotlin.daemon.enabled" property 2015-08-31 18:39:50 +02:00
ligee 33cead12e0 working version of jps-plugin integration with daemon 2015-08-31 18:39:49 +02:00
ligee b55894499f incremental compilation via daemon 2015-08-31 18:39:49 +02:00
ligee 06b3ca8343 Initial version of rmi-interface, compile server and kotlinr - commandline compile server client app 2015-08-31 18:39:48 +02:00
Yan Zhulanow d734e2e665 Increase stub version 2015-08-31 15:33:18 +03:00
Yan Zhulanow 0b24e56f5a Use lazy to store split annotations, code simplification 2015-08-31 15:33:17 +03:00
Yan Zhulanow b6adaab94b Move AnnotationSplitter to descriptors/annotations 2015-08-31 15:33:16 +03:00
Yan Zhulanow e7703df0b6 Use a single AnnotatedCallableKind enum item for property 2015-08-31 15:33:14 +03:00
Yan Zhulanow 97e4c097ba Split annotations lazily 2015-08-31 15:33:14 +03:00
Yan Zhulanow 2ce9903356 Fix tests 2015-08-31 15:33:13 +03:00
Yan Zhulanow 552211b2f4 Add bytecode listing test for use site targets and default targets (with priorities) 2015-08-31 15:33:12 +03:00