Commit Graph

335 Commits

Author SHA1 Message Date
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 219506dabf new inference: ignore return dependencies of a variable when proper bound is present (IDEA-119535) 2014-03-13 19:30:34 +01:00
Anna Kozlova 766bdc0151 new inference: method reference constraint for the case of return type depends on type params (IDEA-122100) 2014-03-13 19:30:33 +01:00
Anna Kozlova 853235664f new inference: resolve bounds which are not mentioned by additional constraints before starting algorithm
(cherry picked from commit f4c3b393d749a7ad27936014c932492643a277e4)
2014-03-13 15:15:11 +01:00
Anna Kozlova d03d73ed7d testdata for IDEA-122074, IDEA-122084
(cherry picked from commit 582e8846460cb5f4c20d271cdf7894e557bc6e02)
2014-03-13 15:15:02 +01:00
Anna Kozlova e02ca9c75a comment testdata 2014-03-12 10:54:18 +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 1ee2942d53 new inference: raw inner class method qualifier fixed (IDEA-121909)
(cherry picked from commit 012fcf6e95030e673f24307cb3527e0ea82f5c72)
2014-03-12 10:15:49 +01:00
Anna Kozlova 10760d9bbf new inference: process varargs as separate method candidate/separate phase
(cherry picked from commit fdd6f66268d29bb996a103f69180851b92947d21)
2014-03-12 10:15:03 +01:00
Anna Kozlova fb20169d40 new inference: reject varargs as method reference target
(cherry picked from commit 77017d7790b78c5bb20c591e2588c1eccd0f96d7)
2014-03-12 10:13:54 +01:00
Anna Kozlova 0f40eb9bed new inference: exact method reference is not pertinent to applicability when target type is type parameter
(cherry picked from commit 8b3512a097ef1124a5cede6ade95b4e50017c7b9)
2014-03-12 10:13:19 +01:00
Anna Kozlova dccb826526 new inference: cache substitutor for outer call conflict resolution 2014-03-07 18:02:48 +01:00
Anna Kozlova 09c6a8db6c method refs: search for potentially applicable members in supers (IDEA-121737) 2014-03-06 11:42:08 +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 f86ac6f741 new inference: use equals bounds during incorporation 2014-03-06 10:15:25 +01:00
Anna Kozlova e07fdee02a testdata for IDEA-118965 2014-03-06 10:15:24 +01:00
Anna Kozlova 46112ee3ec new inference: cache lambda functional type during expression constraints reduction (IDEA-121315) 2014-03-06 10:15:23 +01:00
Anna Kozlova 5029b3fc55 new inference: do not prefer specifics based on void return type for both void and value compatible lambdas 2014-03-06 10:15:22 +01:00
Roman Shevchenko b9b76dca15 java: type annotations 2014-03-04 10:53:04 +01:00
Anna Kozlova 80d6e1f570 new inference: use site substitutor during return constraints processing (red code in Collectors) 2014-03-03 20:20:57 +01:00
Anna Kozlova b55527aba3 testdata for IDEA-118965 2014-03-03 20:20:56 +01:00
Anna Kozlova eb3695fffc new inference: non wildcard parametrization: reject primitive bounds 2014-03-03 13:43:47 +01:00
Anna Kozlova ab2348a911 new inference: diamond in lambda return workaround 2014-03-03 13:43:46 +01:00
Anna Kozlova d8b3e5c7fd new inference: captures should stay closed inside nested calls 2014-02-28 20:07:08 +01:00
Anna Kozlova e683dc8fc1 new inference: wildcard parametrization for lambda with formal params: assignability check for complete parametrization only 2014-02-28 20:07:07 +01:00
Anna Kozlova a047666d57 new inference: non wildcard parametrization against the spec 2014-02-28 16:13:52 +01:00
Anna Kozlova cf066deca7 default methods: do not warn about protected methods from Object 2014-02-28 09:59:35 +01:00
Anna Kozlova e7cb908c95 new inference: method refs: apply reference rules first 2014-02-27 21:02:57 +01:00
Anna Kozlova 66a8dedb8c new inference: method refs: accept qualifier substitutor when nothing more could be inferred 2014-02-27 18:32:43 +01:00
Anna Kozlova b31b23cd0b new inference: temp solution to exclude inference results from nested call of the same method on the outer level 2014-02-27 18:32:41 +01:00
Anna Kozlova 5dd7e0622c new inference: support for nested same method calls 2014-02-27 18:32:40 +01:00
Bas Leijdekkers 7b58b81761 IDEA-121215 (Java 1.8: "Interface may be annotated with @FunctionalInterface" inspection should not report @interfaces) 2014-02-26 21:01:13 +01:00
Anna Kozlova 6ded813afe new inference: most specifics, varargs case 2014-02-25 14:17:44 +01:00
Anna Kozlova 89aefc86f1 new inference: non-wildcard parameterization 2014-02-25 14:17:43 +01:00
Anna Kozlova 7a70428d04 lambda: accept ellipsis parameter when array expected (IDEA-117124) 2014-02-24 18:59:47 +01:00
Anna Kozlova e0ce9deea3 testdata 2014-02-24 18:59:43 +01:00
Anna Kozlova f1b256f416 forbid lambda in conditional inside cast context 2014-02-24 18:59:42 +01:00
Anna Kozlova 232f8bd465 new inference: strict subtyping: skip raw types 2014-02-24 18:59:41 +01:00
Anna Kozlova 828cb5a1a2 new inference: erase return type if unchecked conversion was performed 2014-02-24 18:59:40 +01:00
Anna Kozlova 0f39a4ca18 method refs: restore error on invalid array creation 2014-02-21 21:47:03 +01:00
Anna Kozlova b587af7151 exact method refs most specific: void compatibility 2014-02-21 21:47:01 +01:00
Anna Kozlova 2f80e7d9c0 new inference: reject partial computation 2014-02-21 18:55:54 +01:00
Anna Kozlova 948ad3e6d4 new inference: ensure type parameters are not modified during ground type evaluation 2014-02-21 12:42:23 +01:00
Anna Kozlova 6a38fbafaf new inference: avoid current type calculation during conflict resolution for target type detection (IDEA-121052) 2014-02-21 12:42:22 +01:00