Commit Graph

1206 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 58b904adb9 Regenerated lazy resolve test. 2012-10-30 18:41:00 +04:00
Evgeny Gerashchenko 78d62fa0c0 Supported loading named objects within class objects from compiled library. 2012-10-30 18:41:00 +04:00
Evgeny Gerashchenko a71fa35187 Supported loading named objects within named objects from compiled library. 2012-10-30 18:41:00 +04:00
Alexander Udalov 3ca976ee77 Generate bridges for delegates 2012-10-30 16:48:02 +04:00
Alexander Udalov 288e3a7b40 Cast arguments to proper types when generating delegates
Also minor refactoring in a couple places to adopt this style
2012-10-30 16:47:50 +04:00
Alexander Udalov 4cfe68da1e Coerce any type to Number before unboxing 2012-10-30 16:47:46 +04:00
Peter Kofler 28160ecb11 fix KT-2892 2012-10-29 22:16:43 +01:00
Peter Brachwitz 81de3cd46a Fix compilation of infix calls (KT-2929)
#KT-2929 Fixed
2012-10-29 22:01:56 +01:00
Svetlana Isakova f90f72a6ec added CandidateResolver
(that took some methods from CallResolver)
2012-10-29 17:11:58 +04:00
Svetlana Isakova fc705edb65 added ResolutionResultsHandler 2012-10-29 17:11:58 +04:00
Svetlana Isakova c7d6bf1b35 OverloadResolutionResults moved to 'results' subpackage 2012-10-29 17:11:57 +04:00
Svetlana Isakova 152368eb04 ResolvedCall, ResolvedValueArgument moved to 'model' subpackage 2012-10-29 17:11:57 +04:00
Natalia.Ukhorskaya bf489c9ed8 KT-2701 Prevent redeclaration in multi-declaration
#KT-2701 Fixed
2012-10-25 19:03:36 +04:00
Andrey Breslav b5385788a3 Don't generate UNNECESSARY_SAFE_CALL on variables of generic type <T: Any?> 2012-10-25 17:05:28 +04:00
Andrey Breslav 3e38870ecc KT-2991 Don't generate UNNECESSARY_NOT_NULL_ASSERTION on variables of
generic type T:Any?

 #KT-2991 Fixed
2012-10-25 17:05:27 +04:00
Sergey Mashkov edb8797fa6 KT-2987 java.lang.AbstractMethodError/java.lang.NoSuchMethodError for delegated class by parameterized parent
#KT-2987 Fixed
2012-10-25 16:26:58 +04:00
Natalia.Ukhorskaya 4db732c11b KT-2948 Assertion fails on a local enum
#KT-2948 Fixed
2012-10-23 19:23:16 +04:00
Natalia.Ukhorskaya a79a31cf01 #KT-2811 Fixed VerifyError on smart-cast 'this' 2012-10-23 13:20:29 +04:00
Andrey Breslav 583dd1564d If t is of type T, comparison (t == null) may be true. No warning in this case 2012-10-20 23:33:50 +04:00
Andrey Breslav d58038d3ef Deparenthesize 'null' before checking the constant expression 2012-10-20 23:33:50 +04:00
Andrey Breslav e8bd42b691 KT-2729 Warn on 'T?' where 'T' has a nullable upper bound 2012-10-19 19:42:54 +04:00
Andrey Breslav 80039d8533 A warning for redundant '?' in types 2012-10-19 19:24:14 +04:00
Alexander Udalov ce2b915645 Generate line numbers for static delegates
Fixes debugger's "step into" for multi-file package
2012-10-17 17:57:54 +04:00
Alexander Udalov 4c710346af Refactor LineNumberTest
Extract methods, annotate with NotNull, inline base code into test class,
other minor stuff
2012-10-17 17:57:53 +04:00
Andrey Breslav b0a651bb20 A reference to jet.src removed 2012-10-17 14:39:07 +04:00
Andrey Breslav ee5b50cb1b Incorrect comparison to default bound fixed 2012-10-17 13:48:07 +04:00
Andrey Breslav 937c4e8baf BuiltinsScopeExtensionMode not needed any more
(see the changes in DefaultModuleConfiguration.java)
2012-10-17 13:48:07 +04:00
Andrey Breslav e81f38b6a8 JetStandardLibrary -> KotlinBuiltIns 2012-10-17 13:48:05 +04:00
Andrey Breslav c719ae427a JetStandardClasses -> KotlinBuiltIns 2012-10-17 13:48:05 +04:00
Svetlana Isakova 5da98b2bf0 KT-2330 Check visibility of getters and setters correspondingly
#KT-2330 fixed
2012-10-16 16:00:22 +04:00
Svetlana Isakova 7d768847a0 KT-2906 If function parameter/variable is invoked in closure using parenthesis syntax, in IDEA it is not highlighted as captured in closure
#KT-2906 fixed
2012-10-16 16:00:22 +04:00
Svetlana Isakova 9d89eb0e58 KT-2841 Can't infer a type for function literal parameter if the return type is error
#KT-2841 fixed
2012-10-16 16:00:22 +04:00
Natalia.Ukhorskaya 4e98ddda96 Add test for check access flags in class file (refactor WriteAccessFlagTest) 2012-10-16 14:44:25 +04:00
Natalia.Ukhorskaya 21900b7871 Move InTextDirectivesUtils from idea module to compiler-tests: change package 2012-10-16 14:41:17 +04:00
Natalia.Ukhorskaya 46d82afc66 Move InTextDirectivesUtils from idea module to compiler-tests 2012-10-16 14:41:17 +04:00
Andrey Breslav 60d5acc48b Comment deleted 2012-10-16 10:11:35 +04:00
Alexander Udalov 8bfb2ddcce Generate bridges for properties declared in constructor
#KT-2926 Fixed
 #KT-2833 Fixed
2012-10-11 17:38:46 +04:00
Natalia.Ukhorskaya 78d22e9f81 KT-2823 TypeCastException has no message
#KT-2823 Fixed
2012-10-11 15:41:49 +04:00
Andrey Breslav 7068bee3a6 Fix JDK annotations after updating to IntelliJ IDEA EAP 122.519 2012-10-10 15:57:58 +04:00
Alexander Udalov e869568196 Generate bridges for property accessors
Use existing FunctionCodegen.generateBridgeIfNeeded() on property getters &
setters

 #KT-2920 Fixed
2012-10-09 16:36:24 +04:00
Evgeny Gerashchenko 4b5da9dc17 Checking static members in JdkAnnotationsSanityTest. 2012-10-08 22:49:17 +04:00
Evgeny Gerashchenko 5bc2422cb0 Failing with compilation error when Java library has wrong @KotlinSignatureAnnotation. 2012-10-08 21:48:54 +04:00
Alexander Udalov 326720afc8 Fix failing build
Add runtime and annotations.jar to classpath when compiling Java in codegen
tests
2012-10-08 21:09:07 +04:00
Nikolay Krasko d0b41ff153 Check absence of explicit initializer in field annotation 2012-10-08 21:07:22 +04:00
Nikolay Krasko 3a410064be Test for syntax errors in field annotations 2012-10-08 21:07:20 +04:00
Nikolay Krasko 24fc3cc53f More validation checks for field annotations 2012-10-08 21:07:19 +04:00
Nikolay Krasko 6ffd1aceaa Check field signature name 2012-10-08 21:07:19 +04:00
Alexander Udalov c9984c3d06 Generate not-null assertions on method parameters
Intrinsics.checkParameterIsNotNull() gets its caller's class and method names
from the stack trace to render them in an exception message.

Fix codegen tests because now it's now allowed to pass null to non-null
argument in tests
2012-10-08 19:13:20 +04:00
Alexander Udalov 753ae9e550 Add a compiler parameter to generate not-null parameter assertions
Enable/disable assertion generation on parameters in the beginning of
methods accessible from Java
2012-10-08 19:03:36 +04:00
Alexander Udalov bf779b4ca5 Generate not-null assertions only for descriptors coming from Java
Introduce BindingContext.IS_DECLARED_IN_JAVA, store that info in
JavaDescriptorResolver
2012-10-08 19:03:29 +04:00