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
Alexander Udalov
988af8208c
Refactor, make CodegenTestCase.generateCommon() static and reusable
2012-10-08 19:03:19 +04:00
Alexander Udalov
95ec2448eb
Generate not-null assertions after method calls
...
If a method comes from Java and is annotated as returning NotNull, after
calling it we should check if it actually returned something other than null.
Introduce checkReturnedValueIsNotNull() in jet/runtime/Intrinsics which does
exactly that.
CallableMethod's invoke() and invokeDefault() are now private, use asserted
versions instead
2012-10-08 14:11:56 +04:00
Alexander Udalov
1cf5e92981
Support multi-file tests with Java in CodegenTestCase
2012-10-08 14:11:54 +04:00
Pavel V. Talanov
37fd1aebf6
Extract util methods from JavaDescriptorResolver to the new class DescriptorResolverUtils
2012-10-06 20:09:45 +04:00
Nikolay Krasko
572173a8f8
Fields alternative signature processing with refactoring of AlternativeSignatureData
...
Refactoring details:
- Move and rename AlternativeSignatureData to kotlinSignature.AlternativeMethodSignatureData
- Extract TypeTransforming visitor
- Extract AlternativeSignatureMistmatchException
- Move errors, return type, and syntax processing to base class
2012-10-05 15:51:23 +04:00
Nikolay Krasko
8d608f2887
Tests for loading KotlinSignature annotation for constructors
...
#KT-2774 In Progress
2012-10-05 15:51:09 +04:00
Evgeny Gerashchenko
22e62c5723
KT-1973 added tests.
...
#KT-1973 Fixed
2012-10-03 23:33:16 +04:00
Pavel V. Talanov
c5b29354c0
JDR: move *Scope classes to scope package
2012-10-03 21:56:38 +04:00
Svetlana Isakova
9d5f5f7adf
KT-2842 Function with declared non-null receiver resolves with nullable argument receiver
...
#KT-2842 fixed
2012-10-02 14:20:00 +04:00
Pavel V. Talanov
90ce15d96f
Modify test for KT-1515 to actually test using javaClass in another package as stated in the request.
...
NOTE: not 100% that this test actually covers the corresponding fix by Alex Tkachman.
2012-10-01 16:14:40 +04:00
Evgeny Gerashchenko
8c7d1b5dd0
Added test checking that all IDEA's @NotNull external annotations for JDK are reflected in Kotlin's annotations.
...
#KT-2778 fixed
2012-09-27 18:27:29 +04:00
Evgeny Gerashchenko
4b3364508b
Added test checking that external annotations for JDK don't contain errors.
...
#KT-2778 in progress
2012-09-27 18:27:29 +04:00
Alexander Udalov
acf8702ccf
KT-2822 Can't make a super call from an object literal
...
#KT-2822 Fixed
2012-09-27 16:30:58 +04:00
Alex Tkachman
57c27bdd37
jdk annotations for some java.sql methods, related cleanup in stdlib & tests
2012-09-27 12:01:54 +02:00
Alex Tkachman
7ed2126ebb
tests should not ignore jdk-annotation dir
2012-09-26 18:48:53 +02:00
Svetlana Isakova
67ec48eaa6
KT-2829 Local variables used only in multi-declaration are marked as unused
...
#KT-2829 fixed
2012-09-26 15:17:26 +04:00
Andrey Breslav
92ac865c72
KT-2819 Duplicate toString() method generated in data class
...
#KT-2819 Fixed
2012-09-26 12:32:16 +04:00
Kirill Berezin
194ef38ba3
KT-2477 fake overrides now get INHERITED visibility in order to maximize visibility according to inherited traits\classes
2012-09-25 19:17:55 +04:00
Natalia.Ukhorskaya
32d707ca9b
Inner Java Enums
...
KT-2691 Fixed
KT-2686 Fixed
2012-09-24 12:33:58 +04:00
Alex Tkachman
ee784eb2fe
some debug print commented
2012-09-23 18:04:14 +02:00
Alex Tkachman
be09227569
generation of inner classes inside object literal. #KT-2607 fixed
...
on the way ClassCodegen and MemberCodegen refactored out and injectors regenerated
2012-09-20 17:57:07 +03:00
Alex Tkachman
00d7a0a8ae
test case for KT-2655 which duplicates KT-2786
2012-09-20 17:54:40 +03:00
Alex Tkachman
242ee38606
generic signatures for properties #KT2677 fixed
2012-09-20 17:54:40 +03:00