Mikhail Glukhikh
14e38ff6d4
data deprecations cleanup: reserved word tests fixed
2015-10-19 15:24:36 +03:00
Mikhail Glukhikh
a4af6a3076
data deprecations (empty constructors, non val/var arguments, vararg, superclasses) are now errors, relevant tests fixed
2015-10-19 15:24:28 +03:00
Mikhail Glukhikh
cae0388a57
Code cleanup: data deprecations and some effective visibility stuff
2015-10-19 15:24:22 +03:00
Alexander Udalov
a501878d60
Workaround circular dependency of KProperty1 and KClassImpl
...
This appeared after introduction of KProperty in delegated property convention
methods. If a KProperty1 instance is created while constructing a KClassImpl
instance before assigning the 'jClass' field, an NPE is thrown because the
constructor of that KProperty1 instance tries to lookup the declaring class of
the property, which in some case happens to be the exact KClassImpl we're
constructing. No test added because I was not able to reproduce the behavior in
an isolated environment
2015-10-19 15:20:20 +03:00
Valentin Kipyatkov
d0f318d7db
Fixed bug in completion with double insertion of "::class.java"
2015-10-19 15:10:21 +03:00
Svetlana Isakova
499ca02615
Changed retention to 'binary' for LowPriorityInOverloadResolution
2015-10-19 14:58:02 +03:00
Ilya Chernikov
ab3cfc3454
Adding property to enforce daemon shutdown, dropping unnecessary inheritance of the CompilerServiceImpl from UnicastRemoteObject, because manual control is used
...
(cherry picked from commit 182a231)
(cherry picked from commit eecd953)
2015-10-19 13:32:20 +02:00
Ilya Chernikov
16817f47e9
Removing dependency of kotlin plugin from daemon client (kotlinr), it should only depend on rmi-interface
...
(cherry picked from commit 01309eb)
(cherry picked from commit ed91190)
(cherry picked from commit da54faf)
2015-10-19 13:32:19 +02:00
Svetlana Isakova
514a1dea57
Changed test for 'LowPriorityInOverloadResolution' annotation
2015-10-19 14:15:06 +03:00
Svetlana Isakova
cb34498278
Check nullability in initial constraints
...
except constraints for receiver type (it can be accessed via safe call)
2015-10-19 14:15:06 +03:00
Svetlana Isakova
bb9f7094e0
Report 'TYPE_INFERENCE_EXPECTED_TYPE_MISMATCH'
...
on call element, not on callee expression
2015-10-19 14:15:05 +03:00
Svetlana Isakova
4c85b69c88
Report type inference error
...
when inference failed with 'NoInfer' annotation
2015-10-19 14:15:05 +03:00
Zalim Bashorov
5ab3dd1716
Minor: do simpler check first
2015-10-19 14:01:59 +03:00
Yan Zhulanow
b2470a6aad
Report warning on unary plus()/minus()
2015-10-19 11:51:54 +03:00
Nikolay Krasko
58cbf09232
Refactoring: collect all annotation presentation data in one place
2015-10-19 11:30:50 +03:00
Nikolay Krasko
4adcf3f114
Refactoring: return not-null from doCreateActions()
2015-10-19 11:30:49 +03:00
Nikolay Krasko
9ef8370871
Allow to create quickfix multifile tests in single file
...
It simplifies creating new tests
2015-10-19 11:30:47 +03:00
Nikolay Krasko
573738c87e
Refactoring: extract name highlighting to separate class
2015-10-19 11:30:44 +03:00
Valentin Kipyatkov
734d3f4fca
Removed test which did not work by some reason
2015-10-19 09:43:13 +03:00
Valentin Kipyatkov
963a8992b1
Fixed availability of "Make abstract" and "Implement members" quickfixes
2015-10-19 09:43:13 +03:00
Valentin Kipyatkov
fc10fa66be
J2K does not convert usages of java "get" methods into "[]" (explicit "operator" modifier is required)
2015-10-19 09:43:13 +03:00
Valentin Kipyatkov
e7fa2cb776
Replace with explicit "get" inspection enabled by default but is reported only for functions explicitly marked with "operator"
2015-10-19 09:43:13 +03:00
Valentin Kipyatkov
e3ff464109
Minor
2015-10-19 09:43:13 +03:00
Valentin Kipyatkov
55575b7f10
J2K adds "operator" modifier to methods that look like operator on conversion
2015-10-19 09:43:12 +03:00
Valentin Kipyatkov
563ad4bab2
Added test
2015-10-19 09:43:12 +03:00
Valentin Kipyatkov
5ce0ed37b1
Moved file to another package
2015-10-19 09:43:12 +03:00
Valentin Kipyatkov
d1de2f65c9
Rewritten AddOperatorModifierInspection to be based on an intention (shouldn't we drop the inspection at all?)
2015-10-19 09:43:12 +03:00
Valentin Kipyatkov
df9ad17ea2
Moved&renamed class
2015-10-19 09:43:12 +03:00
Valentin Kipyatkov
627b31f2f7
Minor
2015-10-19 09:43:12 +03:00
Valentin Kipyatkov
f89d41dcda
OperatorModifierInspection: reused code from OperatorChecks
2015-10-19 09:43:11 +03:00
Valentin Kipyatkov
4e73fe0f39
Renamed test data folder
2015-10-19 09:43:11 +03:00
Valentin Kipyatkov
dc909ac166
J2K: coversion of specially mapped built-in methods + replacing "get" with "[]" where possible
2015-10-19 09:43:11 +03:00
Valentin Kipyatkov
50f559a1c8
ReplaceGetIntention should not be available for non-operator functions
2015-10-19 09:43:11 +03:00
Valentin Kipyatkov
45389c61b4
Made AddFunctionToSupertypeFix low priority
2015-10-19 09:43:11 +03:00
Valentin Kipyatkov
5e7fd78028
Don't cause tests to hang because of UnsupportedAbiVersion notification
2015-10-19 09:43:10 +03:00
Valentin Kipyatkov
e42bb1698d
MoveAssignmentToInitializerIntention to select property type when it can be removed
2015-10-19 09:43:10 +03:00
Valentin Kipyatkov
fc89b1e766
ShortenReferences to use partial body resolve
2015-10-19 09:43:10 +03:00
Yan Zhulanow
3a89c2194a
Fix Java 8 tests (annotation methods are not loaded as functions anymore)
2015-10-19 03:56:15 +03:00
Yan Zhulanow
e14c9645dc
Error on 'if' without an 'else' branch when used as an expression
2015-10-19 03:56:15 +03:00
Zalim Bashorov
de5dc61820
Make NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION error
2015-10-18 22:49:08 +03:00
Michael Bogdanov
a16658a9e9
Temporary workaround for convention method invocation
2015-10-18 17:53:29 +03:00
Michael Bogdanov
01864801f3
Stable accessors names
2015-10-18 17:53:29 +03:00
Michael Bogdanov
7851abd535
Generate access to private members through synthetic accessors in inline functions
2015-10-18 17:53:28 +03:00
Michael Bogdanov
3b02498ca8
Tests for private members and accessors for them
2015-10-18 17:53:28 +03:00
Michael Bogdanov
8641dbf42a
Fix couldUseDirectAccessToProperty for private top-level properties
2015-10-18 17:53:27 +03:00
Michael Bogdanov
e2eddac27d
Workaround for KT-9603
2015-10-18 17:53:27 +03:00
Michael Bogdanov
7022d84ec1
Use package part context for class generation
2015-10-18 17:53:27 +03:00
Michael Bogdanov
3e64baad78
Support multifile facades in isCallInsideSameClassAsDeclared
2015-10-18 17:53:26 +03:00
Michael Bogdanov
c63d221da3
Skip private members in facades
2015-10-18 17:53:26 +03:00
Michael Bogdanov
5b3a7a473e
Private visibility for top-level private members
2015-10-18 15:53:48 +03:00