Alexander Udalov
87ef4ff7c5
Fix KClassImpl#toString to render Kotlin FQ name, not JVM one
2015-04-07 20:25:06 +03:00
Alexander Udalov
137ee53e85
Reflection test: only skip Java annotation constructors
...
The order of Kotlin annotation parameters is retained
2015-04-07 20:25:05 +03:00
Alexander Udalov
9c1e7f93d2
Reflection: refactor property construction and fix memory leak
...
Properties obtained by KClass.properties were having strong references to
descriptors (captured by closures, which are strongly retained by
DescriptorBasedProperty). Support initial value in lazy soft properties
2015-04-07 20:22:52 +03:00
Alexander Udalov
715641fb0d
Call getMethod/getDeclaredMethod depending on visibility
2015-04-07 20:20:40 +03:00
Alexander Udalov
0202217135
Fix JVM signatures involving multi-dimensional array types
...
Apparently ASM's Type#getElementType returns the type of the array even if it's
multi-dimensional, so the loop was incorrect
2015-04-07 20:06:23 +03:00
Alexander Udalov
7e86d87133
Move built-in companion intrinsics to core to reuse in reflection
2015-04-07 20:06:23 +03:00
Denis Zharkov
ce51327509
Refine descriptor renderer test
...
Now it checks:
- Whether resolveToDescriptor on secondary constructors works well
- If there is explicit primary constructor declaration
resolveToDescriptor should return it
- Renderer itself works well with constructors
2015-04-07 19:31:31 +03:00
Denis Zharkov
468233b624
Change default visiting behaviour of constructors to proper one
...
visitJetElement -> visitDeclaration
2015-04-07 19:31:31 +03:00
Denis Zharkov
f85e92a247
j2k: Adjust annotation converter to last changes
...
Only parameter named `value` can be marked vararg
2015-04-07 19:31:30 +03:00
Denis Zharkov
37d7327482
Implement visitPrimaryConstructor in LazyDeclarationResolver
...
It's need to prevent exception when trying to analyze each declaration
node within class
#KT-7279 Fixed
#KT-7315 Fixed
2015-04-07 19:31:30 +03:00
Denis Zharkov
1324667bc9
Prohibit use of positioned value arguments for java annotation
2015-04-07 19:31:30 +03:00
Denis Zharkov
a29c0ff9a3
Use default value if annotation vararg argument is empty
2015-04-07 19:31:30 +03:00
Denis Zharkov
9b1443954f
Refine loading annotation parameters from java
...
- Parameter named `value` is always first
- Array parameter represented as vararg iff its name is `value` and all
other parameters have default values
#KT-2576 Fixed
#KT-6641 Fixed
#KT-6220 Fixed
#KT-6652 Fixed
2015-04-07 19:31:29 +03:00
Andrey Breslav
84ed0e7255
Create annotation-arguments.md
...
(cherry picked from commit 202ea7c)
2015-04-07 19:31:29 +03:00
Mikhail Glukhikh
27b1f1ddad
Test and implementation for KT-6819. Now when entry condition data flow information is used for subsequent conditions. #KT-6819 Fixed
2015-04-07 19:03:34 +03:00
Mikhail Glukhikh
cd206fc97b
Test for KT-3711. Passes already in M11 or even earlier
2015-04-07 19:03:31 +03:00
Mikhail Glukhikh
221501c0d9
Tests for KT-2865. Passes already in M11 or even earlier
2015-04-07 19:03:29 +03:00
Mikhail Glukhikh
39e01f4df2
Tests for KT-3899. Passes already in M11 or even earlier
2015-04-07 19:03:27 +03:00
Mikhail Glukhikh
f49c79f4f0
Tests for KT-3224 and KT-3244. Both pass already in M11 or even earlier
2015-04-07 19:03:24 +03:00
Natalia Ukhorskaya
8f07960fd4
Debugger: do not use DelegatedPropertyRenderer for fields with name = delegate
2015-04-07 18:53:10 +03:00
Natalia Ukhorskaya
649654999f
Debugger: add an option for computing delegated properties values in Variables View
2015-04-07 18:53:08 +03:00
Natalia Ukhorskaya
111f375fa6
Eval4j: disable object collection during evaluation
2015-04-07 18:10:23 +03:00
Michael Bogdanov
7abbf1ec12
Rename invokeWithout assertion to genInvokeInstruction
2015-04-07 17:28:02 +03:00
Michael Bogdanov
8b4886e3e0
Remove invokeWithAssertion function
2015-04-07 17:28:02 +03:00
Michael Bogdanov
3e953dbe24
Remove commented code
2015-04-07 17:28:01 +03:00
Michael Bogdanov
841b199d49
Optimize comparison with zero and null
2015-04-07 17:28:01 +03:00
Michael Bogdanov
ccfc613c31
Get rid of some genLazy
2015-04-07 17:28:01 +03:00
Michael Bogdanov
f551e90d7c
Use callableMethod return type as function call result type
2015-04-07 17:27:25 +03:00
Michael Bogdanov
86e12f1f42
IntrinsicCallable clean
2015-04-07 16:05:43 +03:00
Michael Bogdanov
31c4aaac4d
Rename thisType and receiverType to dispatch and extension ones
2015-04-07 16:05:43 +03:00
Michael Bogdanov
a201cb3258
IntrinsicCallable clean
2015-04-07 16:05:43 +03:00
Michael Bogdanov
c72bae5081
Clean intr
2015-04-07 16:05:43 +03:00
Michael Bogdanov
de11ecb9b4
Fix for KT-7288: VerifyError on accessing array element in 'is' block
...
#KT-7288 Fixed
2015-04-07 16:05:42 +03:00
Michael Bogdanov
a44def05cc
Rollback hack for rangeTo safe call support
2015-04-07 16:05:42 +03:00
Michael Bogdanov
c7fe8e0b66
Branched value refactoring, And/Or support
2015-04-07 16:05:42 +03:00
Michael Bogdanov
c63ac3e30a
Test for KT-7222 Redundant boxing on toString call
...
#KT-7222 Fixed
2015-04-07 16:05:42 +03:00
Michael Bogdanov
0efe8890b8
Added new string tests
2015-04-07 16:05:42 +03:00
Michael Bogdanov
a19c1ed476
ArrayIterator refactoring
2015-04-07 16:05:42 +03:00
Michael Bogdanov
69ddb6bfca
Intrinsic.toCallable clean
2015-04-07 16:05:41 +03:00
Michael Bogdanov
d55c5fe0e4
Array get convertion
2015-04-07 16:05:41 +03:00
Michael Bogdanov
c8a4fa586c
ArrayGet.java to kt
2015-04-07 16:05:41 +03:00
Michael Bogdanov
a1f365d17c
Clean
2015-04-07 16:05:41 +03:00
Michael Bogdanov
47c838e62b
Move some callable method impl to trait
2015-04-07 16:05:41 +03:00
Michael Bogdanov
05aa80e7f1
Callable methods to properties
2015-04-07 16:05:41 +03:00
Michael Bogdanov
45d5a86468
Clean Intrinsics
2015-04-07 16:05:40 +03:00
Michael Bogdanov
32d4845606
ExCallable to Callable renaming
2015-04-07 16:05:40 +03:00
Michael Bogdanov
6213d68553
Ex -> kt
2015-04-07 16:05:40 +03:00
Michael Bogdanov
8e0003c1a5
Callable Convertion
2015-04-07 16:05:40 +03:00
Michael Bogdanov
1d31b93c33
Callable*.java->Callable.kt
2015-04-07 16:05:40 +03:00
Michael Bogdanov
390c03d03f
Concat conversion
2015-04-07 16:05:40 +03:00