Commit Graph

26454 Commits

Author SHA1 Message Date
Mikhail Glukhikh c77d0b9cce No protected inside object: performance counter fixed 2015-10-07 10:17:44 +03:00
Mikhail Glukhikh 06cd19dd0d Open / data forbidden: AnalysisResult fix 2015-10-07 10:17:41 +03:00
Mikhail Glukhikh 5e6c9f1979 Internal is deprecated in interfaces: reflection fix 2015-10-07 10:17:38 +03:00
Mikhail Glukhikh 434a318439 Typo fixed 2015-10-07 10:17:35 +03:00
Denis Zharkov 6a1566a6dc Make JVM backend work with Collection.size as val
0. Such properties are called special because their accessor JVM name differs from usual one
1. When making call to such property, always choose special name
2. When generating Kotlin class inheriting such property generate `final bridge int size() { return this.getSize(); }`
3. If there is no `size` declaration in current class generate `bridge int getSize() { // super-call }`
2015-10-07 08:46:35 +03:00
Denis Zharkov 252c82abe3 Generate bridges for FAKE_OVERRIDE properties
The same way it's done for function, just call generateBridges for accessors

 #KT-9442 Fixed
2015-10-07 08:46:34 +03:00
Denis Zharkov c21d827326 Adjust various testData to size transformation 2015-10-07 08:46:34 +03:00
Denis Zharkov a0e9754edc Adjust js collections to size transformation 2015-10-07 08:46:33 +03:00
Denis Zharkov e52e6cf869 Temporary make SmartSet less smart
SmartSet is compiled both with bootstrap and new compiler, so it can't
implement both old and new Set interfaces (with 'size' as function and as property).

This commit should be reverted after bootstraping
2015-10-07 08:46:33 +03:00
Denis Zharkov 61416b3d14 Adjust stdlib to size transformation 2015-10-07 08:46:27 +03:00
Denis Zharkov 7b432e4830 Introduce size() extensions for migrational purposes 2015-10-06 23:56:17 +03:00
Denis Zharkov 547aa2cda6 Load special java methods as properites
Currently only those that override special builtin properties (e.g. `Collection.size`)
Their modality is defined by method's modality
2015-10-06 23:56:17 +03:00
Denis Zharkov a02b64f0e3 Setup overridability rules for properties built on Java fields
- They overrides each other
- They do not overrides Kotlin propeties and vice versa
2015-10-06 23:56:17 +03:00
Denis Zharkov dfe93406d9 Minor. Inline parameter 2015-10-06 23:56:17 +03:00
Denis Zharkov 27b231cd7d Minor. Do not record method within resolveMethodToFunctionDescriptor 2015-10-06 23:56:17 +03:00
Denis Zharkov 9d087ce5bd Convert size() functions in builtins to properties
Just like it will work itself out :)
2015-10-06 23:56:17 +03:00
Nikolay Krasko a4d029dab2 Rename ant tasks for continuous builds: unify suffixes with correspondent branches 2015-10-06 20:51:43 +03:00
Ilya Gorbunov 0851728454 Deprecate mapNotNull to change its behavior later.
#KT-4410
2015-10-06 18:32:06 +03:00
Ilya Gorbunov d7da8b7bd3 J2K: Special conversion for java.lang.String methods.
#KT-7732
2015-10-06 18:24:24 +03:00
Dmitry Jemerov 4b92bd100c add space between property type parameter list and property name 2015-10-06 16:20:48 +02:00
Dmitry Jemerov 1fdf08bec5 quickfix to migrate function type parameter lists to new syntax 2015-10-06 16:20:48 +02:00
Dmitry Jemerov 7c20630272 diagnostics for deprecated syntax of function type parameter list 2015-10-06 16:20:47 +02:00
Dmitry Jemerov c5d3673b6b change the ID of the language from "jet" to "kotlin"; rename JetLanguage to KotlinLanguage 2015-10-06 16:14:07 +02:00
Dmitry Jemerov 870b640008 "add operator modifier" fix handles fake overrides
#KT-9347 Fixed
2015-10-06 16:12:09 +02:00
Dmitry Jemerov 8fd9d181de add @suppress to the list of known KDoc tags
#KT-9415 Fixed
2015-10-06 16:12:08 +02:00
Dmitry Jemerov 2884a1c6ea handle semicolons in "introduce backing property"
#KT-9417 Fixed
2015-10-06 16:12:08 +02:00
Pavel V. Talanov 3ed04aea8a Imports from objects: Do not create new instances on getOriginal every time
Also fixes a problem where DeclarationLookupObjectImpl didn't have stable hashCode
2015-10-06 16:31:23 +03:00
Pavel V. Talanov 508b401603 Codegen: fix callable reference to member imported from object 2015-10-06 16:31:22 +03:00
Pavel V. Talanov 37d5c4b223 Allow to import members from object by name
Wrap object members so they do not require dispatch receiver
Hack jvm backend to make it work
2015-10-06 16:31:21 +03:00
Pavel V. Talanov 507293e1ff QualifiedExpressionResolver, minor: extract a couple of functions 2015-10-06 16:31:20 +03:00
Nikolay Krasko ca2c78e629 Refactoring: remove warnings about javaClass() call 2015-10-06 14:00:23 +03:00
Nikolay Krasko 05cf67049c Allow roots before parent setup and disallow after teardown 2015-10-06 14:00:20 +03:00
Nikolay Krasko d999000705 Minor: fix warning about annotation absence 2015-10-06 14:00:18 +03:00
Dmitry Petrov 4a3f53b322 Revert fbf2424838:
postpone "transparent semantics for spread operator"
until Java-related design issues are resolved (java.utils.Arrays#asList).
2015-10-06 13:48:59 +03:00
Dmitry Petrov fbf2424838 Spread should always copy arrays. 2015-10-06 10:07:12 +03:00
Dmitry Petrov 9e546bda27 Support is/as/as? with Function[K]<...> types. 2015-10-06 10:06:27 +03:00
Ilya Gorbunov e1d53a2843 kotlin-jdbc can be found in its own repository: https://github.com/kotlin-projects/kotlin-jdbc 2015-10-05 21:28:09 +03:00
Ilya Gorbunov b081535bb6 kotlin-swing can be found in its own repository: https://github.com/kotlin-projects/kotlin-swing 2015-10-05 21:27:31 +03:00
Stanislav Erokhin b69197962d KT-9461: Inference failed: type parameter fixed early
#KT-9461 Fixed
2015-10-05 20:32:44 +03:00
Nikolay Krasko 493108eca1 Change default visibility icon for declaration with absent modifier to public (KT-9411)
#KT-9411 Fixed
2015-10-05 16:09:46 +03:00
Nikolay Krasko cb510a6809 Don't pack version of libraries into compiler artifact 2015-10-05 16:09:45 +03:00
Valentin Kipyatkov 45748eb169 More correct check for ResolvedCall status everywhere in the IDE + added assert into ResolvedCallImpl 2015-10-05 15:39:08 +03:00
Valentin Kipyatkov 110d53b4a6 No setter parameter type required 2015-10-05 15:35:17 +03:00
Valentin Kipyatkov 596635270e J2K: more correct comment placement 2015-10-05 15:35:17 +03:00
Valentin Kipyatkov 1fb01dcfbb Minor correction 2015-10-05 15:35:17 +03:00
Valentin Kipyatkov ec685195bd Better tests 2015-10-05 15:33:50 +03:00
Valentin Kipyatkov 7b063d0391 Completion: lower priority for override member items
#KT-9403 Fixed
2015-10-05 15:33:50 +03:00
Valentin Kipyatkov c5fdd649ab Overrides completion on typing member name too
#KT-9431 Fixed
2015-10-05 15:33:49 +03:00
Valentin Kipyatkov fd6244ac51 Never take ExpectedInfo from outer expression "as is" 2015-10-05 15:33:49 +03:00
Valentin Kipyatkov da7c62e788 Refactored 2015-10-05 15:33:48 +03:00