Commit Graph

29 Commits

Author SHA1 Message Date
Anna Kozlova
621795bbee isApplicability check based on pertinentToApplicability 2015-11-30 15:11:41 +01:00
Anna Kozlova
61f120b30e new overload resolution: first check that collected methods are potentially compatible with args; for generic methods without specified type arguments this already means that they are applicable; for non generic methods (or raw method calls) expressions should be compatible with parameter types (formal parameter types = actual types as substitutor is known) (IDEA-147798) 2015-11-20 18:22:02 +01:00
Anna Kozlova
98408c72f6 overload resolution: reject more specific inference contradicting site substitution 2015-08-26 12:08:47 +03:00
Anna Kozlova
30a12275a2 lambda: highlight containing method ambiguity on method name: this avoids lots of lines of lambda body to be highlighted and it would show errors even if lambda body contains errors actually caused by the ambiguity on the parent level (IDEA-141580) 2015-06-18 17:54:23 +03:00
Anna Kozlova
465879cacf most specific: infer specific if method is generic even if type arguments are explicitly provided 2015-02-13 18:54:03 +01:00
Anna Kozlova
ed0ff7c07f most specific check: ensure that functional types are specifically checked when method is not generics (IDEA-136287) 2015-02-11 19:05:41 +01:00
Anna Kozlova
7e141da4c2 method references: compare number of arguments for non-vararg applicability only (IDEA-132708) 2014-11-11 12:03:06 +01:00
Anna Kozlova
33f7cb51f2 new inference: most specific check according to spec, fixed testdata after JDK-8043734 2014-09-04 13:45:03 +04:00
Anna Kozlova
89dc528242 new inference: no substitution during most specific inference by means of new spec (IDEA-127584) 2014-07-21 17:56:20 +02:00
Anna Kozlova
d13982bd06 most specific: do not start java 8 algorithm for provided type args (IDEA-125855) 2014-06-03 18:41:27 +04:00
Anna Kozlova
cc743c35cc testdata for JDK-8042508 2014-05-07 12:29:28 +04:00
Anna Kozlova
288ccfa195 most specific check: accept lambdas when target type is type parameter (IDEA-124725) 2014-05-05 17:12:17 +04:00
Anna Kozlova
84deec968d method refs: is exact should check super methods for this/super qualifiers only (IDEA-124507) 2014-04-28 15:12:44 +02:00
Anna Kozlova
0da9f91eec testdata: ensure overload resolution prefer correct one from methods with boxed types 2014-04-22 20:02:49 +02:00
Anna Kozlova
5b91054564 testdata: ensure overload resolution by return type should not take place for interrupted control flow 2014-04-22 20:02:44 +02:00
Anna Kozlova
9aa2f3aaac testdata: ensure correct parameters number in functional interface method 2014-04-22 20:02:42 +02:00
Anna Kozlova
17b020f7c2 new overload resolution: covariant comparison of return types 2014-04-22 20:02:33 +02:00
Anna Kozlova
98ab76f060 new overload resolution: most specific check on invalid class exceptions fixed 2014-04-22 20:02:32 +02:00
Anna Kozlova
1daf8f50df ambiguity (IDEA-123352) 2014-04-03 17:15:53 +02:00
Anna Kozlova
e6547e3991 poly conditional expression type = target type (IDEA-122401) 2014-03-19 19:32:35 +01:00
Anna Kozlova
38168d7531 testdata after JDK-8034223 2014-03-18 16:49:05 +01:00
Anna Kozlova
8b37b2b5d6 overload resolution: compare SAMs erasures 2014-03-14 20:44:00 +01:00
Anna Kozlova
d85189374d testdata for IDEA-121999
(cherry picked from commit 85f88420716c2bb2e0a73d524a33656a5699cf9f)
2014-03-12 10:19:45 +01:00
Anna Kozlova
b89dc394cc testdata for IDEA-121884
(cherry picked from commit 985e902bb5edb3c913d0394492494ed115e545b4)
2014-03-12 10:19:22 +01:00
Anna Kozlova
7d747c8cef new inference: most specific with same functional interface presence
(cherry picked from commit f05ae78f4cfd030258264d717d7522ab0930d9a5)
2014-03-12 10:17:33 +01:00
Anna Kozlova
465325a6a6 new inference: nested varargs
(cherry picked from commit 0d293e439ffcbe97db98c1a1b8072e798d94323e)
2014-03-12 10:17:10 +01:00
Anna Kozlova
4112118f42 new inference: choose most specifics between 2 varargs methods
(cherry picked from commit 9f754331ad04e4be639d94da7a659927f8384294)
2014-03-12 10:16:12 +01:00
Anna Kozlova
5412fbc960 overload resolution: grab lambda from nested parenthesis as well as conditional expressions 2014-03-06 11:42:07 +01:00
Anna Kozlova
b587af7151 exact method refs most specific: void compatibility 2014-02-21 21:47:01 +01:00