Andrey Breslav
45a0873afa
KT-1835 cannot call a Java API which has a method from(String) and from(String...)
...
The problem was in the "more specific" relation, that didn't pay enough attention to varargs.
The correct behavior is in the spirit of JLS 15.12.2 (as of Java 5):
* a fixed-arity function always wins over a variable-arity functions
* if two vararg functions are compared, their parameters are checked for subtyping.
In the latter case, the candidates may have different number of formal parameters, so we
compare the matching parts and then check the rest against the vararg parameter.
#KT-1835 Fixed
2012-04-20 19:10:10 +04:00
Andrey Breslav
da474b961f
Detailed status for ValueArgumentsToParameterMapper
...
When a non-vararg parameter gets spread with a '*' in front of it, a "weak error" is returned.
A candidate with a weak error in parameter matching is type-checked, but not successful.
2012-04-20 19:10:10 +04:00
Svetlana Isakova
09f7c012bd
preserve order of resolved calls
2012-04-20 17:12:51 +04:00
Svetlana Isakova
5ec7617c7a
Call resolution refactoring (logic hasn't changed)
...
- interfaces MemberPrioritizer, ResolutionCandidate introduced
- CallTransformationStrategy will be responsible for variable with 'invoke' method as function resolve
2012-04-20 15:52:36 +04:00
Andrey Breslav
13764c06c0
Compiler plugins moved to CompilerEnvironmentConfiguration
2012-04-20 14:58:14 +04:00
Andrey Breslav
e33acbeebf
Use CompileEnvironmentConfiguretion instead of its components
2012-04-20 14:33:49 +04:00
Andrey Breslav
bd9824b752
buildConfluenceLexer script removed from Ant configuration
2012-04-20 14:33:12 +04:00
Andrey Breslav
e14f0e637c
The confluence plugin has been moved to a separate repository
...
New repository is located at https://github.com/jetbrains/kotlin-confluence-plugin
2012-04-20 13:32:49 +04:00
Andrey Breslav
1b7128c6b6
KDoc fixed according to the compiler refactoring
2012-04-20 12:14:11 +04:00
Andrey Breslav
4da91ee3d6
CompileEnvironment removed
...
What used to be CompileEnvironment, now is split into data (in CompileEnvironmentConfiguration) and utility methods (in CompileEnvironmentUtil).
CompilerDependencies should be removed later.
All the relevant stuff sits in the JetCoreEnvironment class
2012-04-20 11:52:02 +04:00
cy6erGn0m
4aae7a7dd1
Added utility functions for simple file reading by lines and by byte blocks
2012-04-19 21:29:30 +04:00
Andrey Breslav
d09916ca38
Merge pull request #41 from NataliaUkhorskaya/master
...
Changes in confluence plugin
2012-04-19 09:25:56 -07:00
Natalia.Ukhorskaya
3d86084a8e
Add tests for rendering: examples from actual confluence, special tags
2012-04-19 20:11:56 +04:00
Natalia.Ukhorskaya
8074629b77
Refactoring in JetMacro
2012-04-19 20:09:47 +04:00
Stepan Koltsov
216cbf7d9a
assert error/NonExistentClass is only generated when mode = SIGNATURES
...
move classBuilderMode to injector and GenerationState from ClassBuilder
2012-04-19 18:56:05 +04:00
Evgeny Gerashchenko
85ce85383b
Added rendering variance for type parameters in DescriptorRenderer.
2012-04-19 18:46:45 +04:00
Nikolay Krasko
4953be7f6f
KT-1786 IDEA complains about toolwindow icon size
...
#KT-1786 fixed
2012-04-19 17:09:51 +04:00
Stepan Koltsov
9bfcc017b2
use proper replace
2012-04-19 16:41:39 +04:00
Stepan Koltsov
b47d37094e
properly report exception if analyze failed
...
#KT-1831 Fixed
2012-04-19 16:41:34 +04:00
Evgeny Gerashchenko
1559f983aa
Made soft keywords bold in DescriptorRenderer.
2012-04-19 16:30:34 +04:00
Evgeny Gerashchenko
d28aed6494
Improved positioning for PROJECTION_ON_NON_CLASS_TYPE_ARGUMENT.
2012-04-19 16:25:48 +04:00
Nikolay Krasko
aa4e4623d4
KT-1630 Do not select automatically completion proposal in definition of lambda parameters
...
#KT-1630 fixed
2012-04-19 16:06:15 +04:00
Nikolay Krasko
414966b27e
More adjustment in icons
2012-04-19 16:06:15 +04:00
Svetlana Isakova
d245a10d02
KT-1822 Error 'cannot infer visibility' required
...
#KT-1822 fixed
2012-04-19 16:01:46 +04:00
Evgeny Gerashchenko
12abe1a5ee
Fixed error for TYPE_MISMATCH_IN_TUPLE_PATTERN.
2012-04-19 15:54:07 +04:00
Svetlana Isakova
558d1a0e2f
KT-1680 Warn if non-null variable is compared to null
...
#KT-1680 fixed
2012-04-19 15:36:44 +04:00
Evgeny Gerashchenko
99acd9cdf0
Fixed rendering "defined in ..." DescriptorRenderer, now it doesn't render "<module>.<root>"
2012-04-19 15:22:01 +04:00
Evgeny Gerashchenko
7e1059d3bd
Added IDE error messages for OVERLOAD_RESOLUTION_AMBIGUITY and NONE_APPLICABLE.
2012-04-19 15:22:00 +04:00
Evgeny Gerashchenko
625101b68d
Added IDE error message for ITERATOR_AMBIGUITY.
2012-04-19 15:22:00 +04:00
Evgeny Gerashchenko
7a605ccee2
Added IDE error message for ASSIGN_OPERATOR_AMBIGUITY.
2012-04-19 15:22:00 +04:00
Evgeny Gerashchenko
a824b81aa5
Minor refactoring renderer for INCOMPATIBLE_MODIFIERS.
2012-04-19 15:22:00 +04:00
Evgeny Gerashchenko
515b79c240
Better error message for WRONG_NUMBER_OF_TYPE_ARGUMENTS. "1 type arguments" will not be shown anymore.
2012-04-19 15:22:00 +04:00
Evgeny Gerashchenko
a45a7ae631
Made renderers added to DiagnosticWithParametersXRenderer nullable.
2012-04-19 15:22:00 +04:00
Evgeny Gerashchenko
5692032530
Added javadoc link to DefaultErrorMessages
2012-04-19 15:22:00 +04:00
Evgeny Gerashchenko
a723d6b073
Added IDE error messages for RESULT_TYPE_MISMATCH.
2012-04-19 15:22:00 +04:00
Evgeny Gerashchenko
a2a9d6847b
Added IDE error messages for CONFLICTING_OVERLOADS.
2012-04-19 15:21:59 +04:00
Evgeny Gerashchenko
3cc1a69905
Added IDE error messages for ABSTRACT_MEMBER_NOT_IMPLEMENTED and MANY_IMPL_MEMBER_NOT_IMPLEMENTED.
2012-04-19 15:21:59 +04:00
Evgeny Gerashchenko
529c416f35
Added IDE error message for VAR_OVERRIDDEN_BY_VAL.
2012-04-19 15:21:59 +04:00
Evgeny Gerashchenko
b0843ce656
Added IDE error message for RETURN_TYPE_MISMATCH_ON_OVERRIDE.
2012-04-19 15:21:59 +04:00
Evgeny Gerashchenko
886ec6a162
Clarified EQUALITY_NOT_APPLICABLE error message.
2012-04-19 15:21:59 +04:00
Evgeny Gerashchenko
c1dde84508
Boolean -> jet.Boolean
2012-04-19 15:21:59 +04:00
Evgeny Gerashchenko
1123a4f438
Clarified error message for TYPE_MISMATCH_IN_BINDING_PATTERN.
2012-04-19 15:21:59 +04:00
Evgeny Gerashchenko
5a69231b92
Added IDE error message for TYPE_MISMATCH_IN_FOR_LOOP.
2012-04-19 15:21:58 +04:00
Evgeny Gerashchenko
d7e9a77fdb
Added IDE error message for UPPER_BOUND_VIOLATED.
2012-04-19 15:21:58 +04:00
Evgeny Gerashchenko
42c079ce98
Added "actual type" parameter for UPPER_BOUND_VIOLATED diagnostic.
2012-04-19 15:21:58 +04:00
Evgeny Gerashchenko
17d290a5da
Added HTML error message for WRONG_SETTER_PARAMETER_TYPE and WRONG_GETTER_RETURN_TYPE diagnostics.
2012-04-19 15:21:58 +04:00
Evgeny Gerashchenko
d9cfde431b
Added "expected type" parameter to WRONG_SETTER_PARAMETER_TYPE and WRONG_GETTER_RETURN_TYPE diagnostics.
2012-04-19 15:21:58 +04:00
Evgeny Gerashchenko
61a26ef5d9
Added first HTML error message, for TYPE_MISMATCH diagnostic.
2012-04-19 15:21:58 +04:00
Evgeny Gerashchenko
2f0760c85b
Removed useless diagnostic parameters for ABSTRACT_PROPERTY_IN_NON_ABSTRACT_CLASS and ABSTRACT_FUNCTION_IN_NON_ABSTRACT_CLASS
2012-04-19 15:21:58 +04:00
Evgeny Gerashchenko
0f1406cf77
Fixed some default error messages.
2012-04-19 15:21:58 +04:00