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
Alex Tkachman
eaf9a79420
correct handling of delegate properties #KT-2786 fixed
2012-09-20 17:54:40 +03:00
Andrey Breslav
936f53fcbf
Don't complain about compareTo returning ERROR type instead of Int
2012-09-20 18:12:57 +04:00
Alexander Udalov
dadc97d29f
Fix maven build
...
Do not create class objects for classes which come from Java.
2012-09-20 18:10:19 +04:00
Alexander Udalov
bce5cb9034
Support inner enums from binaries
...
#KT-2771 Fixed
2012-09-20 15:02:58 +04:00
Alexander Udalov
37fd9cea08
Place inner enum into its parent's class object
...
#KT-2771 In Progress
ClassifierCollector now collects all enum declarations inside non-static
classes. After all declarations are done, it processes these enums: creates
a class object if it's not present, reports errors on each enum if a class
object is not allowed, and puts every enum into this class object otherwise,
recording this fact to trace.
2012-09-20 15:02:13 +04:00
Svetlana Isakova
b081615e59
added tests for collections
2012-09-20 14:42:39 +04:00
Alex Tkachman
b022eec0fa
call correct methods String.valueOf/StringBuilder.append in case of byte/short. #KT-2794 fixed
2012-09-20 11:46:40 +03:00
Svetlana Isakova
0ccdf79051
no report 'UNNECESSARY_NOT_NULL_ASSERTION' on error types
2012-09-19 15:31:17 +04:00
Svetlana Isakova
618f1b377b
added signatureName format to JvmClassName
2012-09-19 13:06:25 +04:00
Andrey Breslav
c9e9175a88
EA-37399 - ISE: OverrideResolver.findInvisibleOverriddenDescriptor
...
Each of the duplicated methods in the subclass should get the same set of overridden descriptors
2012-09-18 22:01:39 +04:00