Commit Graph

10547 Commits

Author SHA1 Message Date
Alexander Udalov 8697adb28a Fix generic data class hashCode for null
Null may come from everywhere, so we always check for it (when the property's
type is not primitive)
2013-02-06 17:54:26 +04:00
Alexander Udalov 1021ec5ff4 Add Intrinsics.areEqual()
It's more safe, short and less error-prone (especially w.r.t. nullability of
generic types)
2013-02-06 17:54:26 +04:00
max-kammerer 41b379497d revert of 59ede8b 2013-02-06 14:33:19 +04:00
max-kammerer 59ede8b979 Test for KT-2763 2013-02-06 14:15:24 +04:00
Leonid Shalupov bf33dd4091 Merge remote-tracking branch 'remotes/origin/remote-run/shalupov' 2013-02-06 14:00:02 +04:00
Leonid Shalupov a6468bdff1 fix tests 2013-02-06 13:16:38 +04:00
Alexander Udalov 1f4dd8cd33 Add CodegenUtil.isNullableType(), fix assertions
JetType.isNullable() is not accurate when the type denotes a type parameter:
a parameter can be not null (isNullable=false), but its upper bound can be
nullable (<T: Any?>), so null may appear in the value of such type. Therefore
it's preferred to use a special check (isNullableType()) in codegen from now on

Do not generate assertion for parameters of not-null types which have a
nullable upper bound + the same with Java method calls

Also fix Intrinsics class internal name in tests

 #KT-3313 Fixed
2013-02-05 21:52:29 +04:00
Wojciech Lopata b6870b4bba QuickFix for PARAMETER_NAME_CHANGED_ON_OVERRIDE.
It renames method parameter to match the name from the overriden method.
2013-02-05 21:44:00 +04:00
Andrey Breslav c296cbf6d1 Optimize super-interfaces 2013-02-05 21:34:09 +04:00
Andrey Breslav 2ae3dad92f Extract interface: PropertySetterDescriptor 2013-02-05 20:48:18 +04:00
Andrey Breslav d8258ef9fb Extract interface: PropertyGetterDescriptor 2013-02-05 20:47:56 +04:00
Andrey Breslav e09cba03cc Extract interface: PropertyAccessorDescriptor 2013-02-05 20:45:10 +04:00
Andrey Breslav ffedb64ff2 KDoc tests fixed by setting kotlinHome explicitly 2013-02-05 20:32:58 +04:00
Andrey Breslav 01a24c6334 Better debugging of arguments in Maven 2013-02-05 20:32:11 +04:00
Andrey Breslav e3cb79ce2e "--kotlinHome" command-line option 2013-02-05 20:30:32 +04:00
Jack Zhou 5ee9b2fdd1 Added quickfix for REDUNDANT_NULLABLE. 2013-02-05 20:17:29 +04:00
Jack Zhou 93e3bd930e Added quickfix for USELESS_SIMPLE_IMPORT. 2013-02-05 18:16:23 +04:00
Wojciech Lopata 3930d2ca33 Not including empty testcases in suite.
That was sometimes resulting with IDE displaying incorrect number of tests in single run.
2013-02-05 17:55:37 +04:00
Wojciech Lopata b4c21acafd Adding 'Add open modifier to supertype' fix for FINAL_SUPERTYPE error. 2013-02-05 17:55:37 +04:00
Wojciech Lopata fe07fb4932 Create 'refreshPath' utility function in LocalFileSystemUtils class. 2013-02-05 17:55:37 +04:00
Alexander Udalov 8eb6047972 Fix assertions generation for substituted members 2013-02-05 16:26:56 +04:00
Natalia.Ukhorskaya 4fa3909eaf Build jar for j2kConverter 2013-02-05 15:35:43 +04:00
Andrey Breslav 4b96911b37 @NotNull for parameter of substitute() 2013-02-04 21:25:18 +04:00
Andrey Breslav 21eef960b5 Extract PropertyDescriptor interface 2013-02-04 21:22:54 +04:00
max-kammerer dbfb29fdf8 Fixed error on running kotlin-maven-plugin tests 2013-02-04 18:32:01 +04:00
Maxim Shafirov 3545f7758a Merge remote-tracking branch 'origin/master' 2013-02-04 18:04:07 +04:00
Maxim Shafirov 9f546f938d KT-3192 Drop kotlin.nullable package
#KT-3192 Fixed
2013-02-04 18:02:52 +04:00
Evgeny Gerashchenko 649cbb65c0 Reverted proguard in build. 2013-02-04 17:30:12 +04:00
Alexander Udalov c9339c2871 Turn on generating not-null assertions by default
When compiling from IDE
2013-02-04 17:19:10 +04:00
Evgeny Gerashchenko 62bdd75c43 Added assert message. 2013-02-04 16:16:10 +04:00
Evgeny Gerashchenko 658dbda6d4 Regenerated injectors. 2013-02-04 16:16:10 +04:00
Evgeny Gerashchenko d08466d265 Removed redundant 'out' in MutableMap.putAll 2013-02-04 16:16:10 +04:00
Evgeny Gerashchenko c96c3c3d45 Removed resources jar from classpath. It is redundant. 2013-02-04 16:16:09 +04:00
Evgeny Gerashchenko 7f5dfd7319 Minor. 2013-02-04 16:16:09 +04:00
Evgeny Gerashchenko ffbcdb7b49 EA-39239 - assert: ConfigureKotlinLibraryNotificationProvider.addJdkAnnotations 2013-02-04 16:16:09 +04:00
Evgeny Gerashchenko 10df80feda Minor. Extracted method. 2013-02-04 16:16:09 +04:00
Evgeny Gerashchenko c09c85e862 Minor. Simpler code. 2013-02-04 16:16:08 +04:00
Evgeny Gerashchenko 7b71c66fd6 Fixed errors in alternative signatures. 2013-02-04 16:16:08 +04:00
Evgeny Gerashchenko 25dc5b5991 Checking redundant projections in jdk annotations. 2013-02-04 16:16:08 +04:00
Evgeny Gerashchenko 4be1e7d8d8 Checking redundant/conflicting projection kind in alt signatures. 2013-02-04 16:09:14 +04:00
Andrey Breslav a47ff5cdb5 Update to IDEA 12.0.3 2013-02-04 15:41:20 +04:00
Andrey Breslav ae5aeef147 Enable parameter assertions in BytecodeToolwindow 2013-02-04 15:41:19 +04:00
Alexander Udalov 4ca522bf0e Fix codegen of do-while condition
The condition of a do-while loop can use variables declared in the loop
(variables can only be declared inside a block). Previously this behaviour
caused crash because after the block was generated, all variables declared
inside that block were gone from myFrameMap

 #KT-3280 Fixed
2013-02-04 15:30:38 +04:00
Alexander Udalov 2a4f06e32d Make the exception message in JvmClassName helpful 2013-02-04 15:27:31 +04:00
Alexander Udalov 7716feee71 Fix NPE in JetPsiUtil (EA-43298) 2013-02-04 15:27:30 +04:00
Nikolay Krasko 54e5fa5256 Imports resolution tests 2013-02-04 14:23:26 +04:00
Nikolay Krasko e69acd9198 JetPsiBuilder -> JetImportsFactory rename 2013-02-04 14:23:25 +04:00
Nikolay Krasko a15f1c8946 Test are imported functions completed 2013-02-04 14:23:24 +04:00
Nikolay Krasko f05de2ffc8 KT-3165 Weird stack overflow in IDE (test added) 2013-02-04 14:23:23 +04:00
Nikolay Krasko d4e3a4f74d Tests added for checking two-phase (classes and functions) import resolution 2013-02-04 14:23:22 +04:00