Dmitry Petrov
b86fb64008
KT-12358: fake override of a method of 'Any' in an interface is not an "implementation".
2016-05-20 13:02:29 +03:00
Stanislav Erokhin
74bddcfb70
Refactoring. Convert Annotated to kotlin.
2016-05-20 09:32:55 +03:00
Stanislav Erokhin
450ea78b1d
Refactoring. Convert KotlinType to kotlin.
2016-05-20 09:32:54 +03:00
Stanislav Erokhin
8c2d68fff0
Refactoring. Move specificity relations into TypeSpecificityComparator component.
2016-05-20 09:32:53 +03:00
Stanislav Erokhin
921eb8402c
Transform OverloadUtil into OverloadChecker component.
2016-05-20 09:32:53 +03:00
Stanislav Erokhin
c4778bfe5a
Fixed type checking recursive problem.
...
#KT-11995 Fixed
2016-05-20 09:26:56 +03:00
Alexander Udalov
1c8272d3f1
Simplify data class function generation and signature lookup code
...
- change prerequisites for generating equals/hashCode/toString in a data class:
previously they were generated if the corresponding method is trivial (i.e.
it comes from kotlin.Any), now we're generating it always unless it'll cause
a JVM signature clash error (see KT-6206)
- use static KotlinBuiltIns.isXxx methods to compare types instead of checking
against descriptors loaded from certain built-ins instance, this is quicker
and more correct in environments where several built-ins are possible
- don't use isOrOverridesSynthesized, it's not relevant for
equals/hashCode/toString because functions with these names are never
synthesized
#KT-6206 Fixed
2016-05-20 00:54:19 +03:00
Alexander Udalov
2200bfcc85
Simplify ImplementationBodyCodegen#generateToArray
...
- don't do anything for interfaces because there's no point in generating
abstract methods which are already abstract in supertypes
- don't use getDeclaredFunctionByRawSignature, check function signature
manually instead
- don't use isOrOverridesSynthesized because 'toArray' is never synthesized
2016-05-20 00:54:18 +03:00
Alexander Udalov
b208995d73
Render different class kinds differently in bytecode listing test
2016-05-20 00:36:56 +03:00
Alexander Udalov
c1c2651988
J2K backend-common classes: convert
...
Also merge CodegenUtilKt into CodegenUtil
2016-05-20 00:36:56 +03:00
Alexander Udalov
27ed0dd25f
J2K backend-common classes: rename .java -> .kt
2016-05-20 00:36:56 +03:00
Ilya Gorbunov
bf2576e25c
Change snapshot version in gradle configurator and AddKotlinLib quick fixes.
2016-05-19 18:10:57 +03:00
Denis Zharkov
4cbd2fbe62
Compute cached-value under common storage manager
...
Before this commit it was calculated under separate lock, so it could turn into dead-lock
#KT-12396 Fixed
2016-05-19 17:55:38 +03:00
Dmitry Petrov
a25ba5baf1
KT-12156: for the purposes of inline-related diagnostics
...
treat function declaration as final if it is a member of a final class
2016-05-19 17:43:29 +03:00
Stanislav Erokhin
7332032bb6
Support sealed class inheritors in the same file
...
#KT-11573 Fixed
2016-05-19 16:22:40 +03:00
Alexey Sedunov
26be254fbe
Spring Support: Show autowiring candidates line markers for @Autowired-annotated constructors and constructor parameters
...
#KT-12120 Fixed
2016-05-19 13:56:12 +03:00
Alexey Sedunov
2bd03fe9b0
Spring Support: Fixed bean references in factory method calls
...
#KT-12384 Fixed
2016-05-19 13:56:11 +03:00
Alexey Sedunov
417995b569
Spring Support: Fixed "Spring Facet Code Configuration (Kotlin)" inspection description
...
#KT-12143 Fixed
2016-05-19 13:56:10 +03:00
Alexey Sedunov
53b08a1d33
Spring Support: Report object declarations in "Final Kotlin class or function with Spring annotation" inspection
...
#KT-12148 Fixed
2016-05-19 13:56:09 +03:00
Alexey Sedunov
aaa42e872a
Spring Support: Fixed "Autowired members defined in invalid Spring bean (Kotlin)" inspection description
...
#KT-12363 Fixed
2016-05-19 13:56:07 +03:00
Alexey Sedunov
85d07e5f6d
Spring Support: Implement Spring @Autowired inspection
...
#KT-12278 Fixed
#KT-12147 Fixed
#KT-12366 Fixed
#KT-12122 Fixed
2016-05-19 13:56:06 +03:00
Alexey Sedunov
36f3d30250
Refactoring: Extract registerWithElementsUnwrapped() function
2016-05-19 13:56:04 +03:00
Alexey Andreev
cb36b61f7f
KT-12254 Prevent JsEmptyExpression from getting into initializer JS when compiling code like val x = throw Exception()
2016-05-19 11:41:50 +03:00
Alexey Andreev
4387c31939
KT-8005 Add test to prove the issue is no more reproducible
2016-05-19 11:37:02 +03:00
Alexey Andreev
3cd7dcdb26
KT-8299 Make proper access to private fields in generated methods of data classes
2016-05-19 11:32:22 +03:00
Ilya Gorbunov
fda9797dc4
Do not deploy anymore kotlin maven plugin tests and build common test utilities to maven central
2016-05-19 05:31:18 +03:00
Ilya Gorbunov
bdf80ec747
Sanitize escape sequences when verifying maven output
2016-05-19 05:31:15 +03:00
Ilya Gorbunov
7f5b586e3f
Specify kotlin snapshot version in maven plugin integration tests only once.
2016-05-19 05:31:08 +03:00
Mikhail Glukhikh
f81192d48f
Simplify for: take into account two or more possible local variables for the same loop parameter property
2016-05-18 19:56:19 +03:00
Mikhail Glukhikh
9108ab1923
Simplify for: take into account local property mutability
2016-05-18 19:56:14 +03:00
Mikhail Glukhikh
d0fd3dea67
Simplify for: take into account loop parameter nullability
2016-05-18 19:56:10 +03:00
Mikhail Glukhikh
a56248a11a
Simplify for now works even if no variables are declared inside loop #KT-12145 Fixed
2016-05-18 19:56:06 +03:00
Denis Zharkov
46ac26147b
Annotate with @UnsafeVariance relevant types in built-ins
2016-05-18 19:21:38 +03:00
Denis Zharkov
279ff0b561
Extract variance check algorithm into 'core' module
2016-05-18 19:21:38 +03:00
Mikhail Glukhikh
c95e11cc7e
Import as alias with another name is now counted as usage itself #KT-11933 Fixed
2016-05-18 17:46:18 +03:00
Mikhail Glukhikh
0cf61b1b5b
Cleanup: simplify for
2016-05-18 17:46:13 +03:00
Mikhail Glukhikh
d366da5cd6
Simplify for intention: now is not active if map / data class properties aren't used in a loop #KT-11716 Fixed
2016-05-18 17:46:09 +03:00
Mikhail Glukhikh
3930184f1f
Can be parameter inspection: usage in secondary constructor is now handled as property use
2016-05-18 17:46:05 +03:00
Mikhail Glukhikh
bc7fbdc0a2
Can be parameter inspection: minor test correction
2016-05-18 17:46:01 +03:00
Mikhail Glukhikh
b026969144
Can be parameter inspection: handle usage in super call; again #KT-10819 Fixed
2016-05-18 17:45:57 +03:00
Zalim Bashorov
7b1afd4e6a
JS backend: use ResolvedCall when translate super expression and remove some heuristics when translate receivers; generate right receiver when reference to super of outer class;
2016-05-18 17:34:18 +03:00
Alexey Tsvetkov
07adf65f70
Minor: add repository path for android test
2016-05-18 15:24:27 +03:00
Alexey Tsvetkov
a36e3a47ed
Keep order of parsed annotations
2016-05-18 15:24:21 +03:00
Alexey Tsvetkov
65df1debe0
Minor: fix downloading sdk in test
2016-05-18 15:24:17 +03:00
Alexey Tsvetkov
b4d47df52b
Avoid cache corruption on compile error
...
#KT-11874 fixed
2016-05-18 15:24:13 +03:00
Sergey Mashkov
09caa65806
KT-12074 Building Kotlin maven projects using a parent pom will silently fail
...
integration tests
2016-05-18 14:47:17 +03:00
Sergey Mashkov
2d03a5a106
Maven: add maven plugin multimodule test
2016-05-18 14:47:16 +03:00
Sergey Mashkov
77df2e07ad
KT-12074 Building Kotlin maven projects using a parent pom will silently fail
...
We should consider module's basedir if there is relative source directory specified for the execution
2016-05-18 14:47:16 +03:00
Nikolay Krasko
add07ad1a5
Remove unused import
2016-05-18 13:33:18 +03:00
Ilya Gorbunov
5ba8046b48
Change memory growth assertions in testKotlinOnlyDaemonMemory: ensure that the maximum of the used memory established after several first builds doesn't raise significantly in the subsequent builds. Current constraint is 500K per 10 builds which gives 50K per build at average.
2016-05-18 01:45:37 +03:00