Alexander Udalov
dce99e2fef
Get rid of LinkedHashSet in some places in favor of ArrayList
2015-08-07 23:01:23 +03:00
Alexander Udalov
f3857cbb89
Change overriddenDescriptors' type from Set to Collection
...
So that the easiest way of constructing a HashSet in the implementation will be
not the only possible way to implement getOverriddenDescriptors(). If there's
not too many overridden descriptors, an implementation may decide to return a
small list for example instead
2015-08-07 23:01:23 +03:00
Alexander Udalov
d328727cea
Don't store overridden descriptors in ValueParameterDescriptor
...
Compute it on each access instead, because it's too costly and not really
needed to store a LinkedHashSet for each parameter. Also inline
'bindFakeOverride'
2015-08-07 23:01:22 +03:00
Alexander Udalov
5aad063076
Extract VariableDescriptorWithInitializerImpl out of VariableDescriptorImpl
...
Because ValueParameterDescriptorImpl extends from VariableDescriptorImpl, but
it never has a compile-time initializer, so it was always storing an extra null
2015-08-07 23:01:21 +03:00
Alexander Udalov
942ab9ef6d
Make 'hasDefaultValue' an extension on ValueParameterDescriptor
...
To avoid storing a Boolean and a boolean. It isn't called frequently enough to
justify this wasted space for each parameter of every function out there
2015-08-07 23:01:20 +03:00
Alexander Udalov
8dddce5ac5
Minor, replace some usages of hasDefaultValue -> declaresDefaultValue
2015-08-07 23:01:20 +03:00
Nikolay Krasko
c13396d92f
Refactoring: inline method
2015-08-07 19:14:20 +03:00
Nikolay Krasko
5fe81d67a3
Refactoring: move function and avoid return lambda
2015-08-07 19:14:18 +03:00
Nikolay Krasko
7de35baa4b
Idea start configuration with fixed fonts on Windows
...
Run with Java 1.7 and add tools.jar to Idea classpath explicitly.
2015-08-07 19:14:13 +03:00
Nikolay Krasko
470a062254
Add kotlin-reflect to additional classpath
2015-08-07 19:14:11 +03:00
Denis Zharkov
5323310950
Use LookupCancelWatcher as component instead of service
2015-08-07 19:14:09 +03:00
Natalia Ukhorskaya
93a3d3a4c4
Fix compilation error
2015-08-07 19:14:07 +03:00
Natalia Ukhorskaya
fbe192b75f
Suppress warnings about org.imgscalr.Scalr class
2015-08-07 19:14:04 +03:00
Nikolay Krasko
4a06ed1271
Update to 142.3553.1
2015-08-07 19:14:02 +03:00
Dmitry Jemerov
5e1b44eac8
fix tests: imported FQ name of an import directive is nullable
2015-08-07 11:41:51 +02:00
Dmitry Jemerov
43bbed495b
code review
2015-08-07 11:41:50 +02:00
Dmitry Jemerov
c29ebfbb04
KotlinAnnotatedElementsSearcher: handle local scope; correctly handle import aliases
2015-08-07 11:41:49 +02:00
Dmitry Jemerov
cca7f08400
store imported FQ name in import directive stub
2015-08-07 11:41:48 +02:00
Dmitry Jemerov
2429ff00f6
KotlinImportDirectiveStubImpl: J2K
2015-08-07 11:41:48 +02:00
Dmitry Jemerov
dfd9ee499b
KotlinImportDirectiveStubImpl: rename to .kt
2015-08-07 11:41:47 +02:00
Dmitry Jemerov
2b3e435401
KotlinFileStubImpl: cleanup after J2K
2015-08-07 11:41:46 +02:00
Dmitry Jemerov
ae6acd1f85
KotlinFileStubImpl: J2K
2015-08-07 11:41:45 +02:00
Dmitry Jemerov
2f724e6a99
KotlinFileStubImpl: rename to .kt
2015-08-07 11:41:44 +02:00
Dmitry Jemerov
df21eee761
KotlinAnnotatedElementsSearcher: cleanup after J2K; correctly handle consumer returning false
2015-08-07 11:41:44 +02:00
Dmitry Jemerov
6b5a227752
KotlinAnnotatedElementsSearcher: J2K
2015-08-07 11:41:43 +02:00
Dmitry Jemerov
b2553ccc38
KotlinAnnotatedElementsSearcher: rename to .kt
2015-08-07 11:41:42 +02:00
Alexander Udalov
0d0ccfef8c
Refactor and simplify FunctionCaller
2015-08-07 00:55:44 +03:00
Alexander Udalov
d3e39812cb
Support mapping of KType to j.l.reflect.Type
2015-08-07 00:55:35 +03:00
Alexander Udalov
49b689f883
Do not allow to assign null to a non-null property via reflection
...
This was already working for accessor-based properties because the assertions
were already generated into corresponding accessors, but for fields we must
manually check the value against null
2015-08-07 00:55:33 +03:00
Alexander Udalov
3091f2af3b
Report argument number mismatch nicely on wrong 'call()' invocation
...
The default Java reflection message in such case is not very helpful: "wrong
number of arguments"
2015-08-07 00:55:32 +03:00
Alexander Udalov
9c522b4d49
Refactor property calls in reflection, fix some corner cases
...
- compute a FunctionCaller instance for getter and setter so that "call" only
delegates to that FunctionCaller's "call", in the same way it's done in
KFunctionImpl
- use RuntimeTypeMapper.mapPropertySignature to get the exact origin and
signature of a property and its accessors. This makes unwrapFakeOverride call
unnecessary and also fixes some cases like private Java fields
- temporarily drop custom range checks, will be re-added soon
2015-08-07 00:55:30 +03:00
Alexander Udalov
a91729e041
Fix isAccessible for property accessors
2015-08-07 00:55:30 +03:00
Alexander Udalov
9f2feb1d27
Set failOnError = true by default in kotlinc Ant task as in javac
...
#KT-8742 Fixed
2015-08-06 22:38:41 +03:00
Dmitry Jemerov
7e7374e28b
bump max permgen size for All tests configuration
2015-08-06 19:51:27 +02:00
Alexey Tsvetkov
102c5f6569
Add SourceElement to LazyJavaPackageFragment
2015-08-06 19:31:07 +03:00
Alexey Tsvetkov
53eccb98e3
Save class file to deserialized descriptor
2015-08-06 19:31:06 +03:00
Alexey Tsvetkov
0688afbb0c
Introduce ClassDataProvider
2015-08-06 19:31:06 +03:00
Denis Zharkov
cb7518c3ee
Minor. Drop irrelevant field from testData
2015-08-06 08:18:18 +03:00
Denis Zharkov
41d4af2cb9
Implement rendering of raw types
...
Also add some clarification in spec
2015-08-06 08:18:18 +03:00
Denis Zharkov
51668b4cc3
Do not substitute arguments while replacing them
...
It prevents from creating complicated types
2015-08-06 08:18:18 +03:00
Denis Zharkov
32c23728b3
Implement raw types (de)serialization via special TypeCapabilities
2015-08-06 08:18:18 +03:00
Denis Zharkov
3593356e1a
Minor. Move RawSubstitution into separate file
2015-08-06 08:18:18 +03:00
Denis Zharkov
460c719753
Make constructor of JetTypeImpl private, introduce factory methods
2015-08-06 08:18:18 +03:00
Denis Zharkov
101ab03721
J2K JetTypeImpl: Convert and clean
2015-08-06 08:18:18 +03:00
Denis Zharkov
ce78dae281
J2K JetTypeImpl: .java -> .kt
2015-08-06 08:18:17 +03:00
Denis Zharkov
ac7c5a93b0
Introduce TypeCapabilities concept
...
It encapsulates special features of type like custom substitution.
2015-08-06 08:18:17 +03:00
Denis Zharkov
4563f4b1f9
Minor. Pull computeMemberScope to AbstractLazyType
2015-08-06 08:18:17 +03:00
Denis Zharkov
b7c042510d
Do not create redundant special variance when enhancing types
...
#KT-8538 Fixed
2015-08-06 08:18:17 +03:00
Denis Zharkov
b2766bfb57
Add test for obsolete issue
...
#KT-4609 Obsolete
2015-08-06 08:18:17 +03:00
Alexander Udalov
47439603bb
Minor, delete useless instanceof
...
A follow-up to 9b832d4
2015-08-05 19:04:31 +03:00