Commit Graph
2237 Commits
Author SHA1 Message Date
Anna Kozlova 59f416b7d4 replace hardcoded clone with protected methods of Object (IDEA-150196) 2016-01-14 18:42:40 +01:00
Anna Kozlova ae64c30eb9 inference: ensure to convert disjunction type to lub (IDEA-150364) 2016-01-14 16:18:20 +01:00
Anna Kozlova f7bbd49f75 (on-the-fly) static import of constant 2016-01-13 16:54:58 +01:00
Anna Kozlova 1b3ce12a93 anonym -> lambda: accept refs to initialized final fields in classes inside constructors (IDEA-150322) 2016-01-13 16:54:58 +01:00
Anna Kozlova b56e7e0c20 change signature: propagate parameters change to lambda expressions (IDEA-150138) 2016-01-13 16:54:58 +01:00
Anna Kozlova aad1c273e1 trivial functional expressions usage: inline args if provided (IDEA-131090) 2016-01-12 16:23:25 +01:00
Anna Kozlova e39f57a94e trivial functional expressions usage: replace anonymous 2016-01-12 16:23:25 +01:00
Anna Kozlova fee6bc1ba5 trivial functional expressions usage (IDEA-131090) 2016-01-12 13:45:16 +01:00
Anna Kozlova a2c90af6b3 trivial method reference inspection (IDEA-123298) 2016-01-11 20:19:54 +01:00
Anna Kozlova 3baa03058b overload resolution: ensure all list of parameters is checked during most specific check of varargs methods (IDEA-150224) 2016-01-11 16:36:11 +01:00
Anna Kozlova 31c6b67ce6 inference: stop tree up traversal when lambda expression is currently checked
EA-76546 - assert: InferenceSessionContainer.treeWalkUp
IDEA-150168; IDEA-150166
2016-01-08 20:15:17 +01:00
Anna Kozlova d0102e37cb captured wildcards: fix casting to arrays (IDEA-150124) 2016-01-07 20:14:48 +01:00
Anna Kozlova c16e402bed return type equivalence: compare supers with current method (IDEA-147335) 2016-01-07 20:14:48 +01:00
Anna Kozlova 99e4c75ee7 inherit unrelated abstract/default through hierarchy: don't merge methods with not override equivalent signatures (IDEA-146135) 2016-01-07 16:06:39 +01:00
Anna Kozlova df3e5be8cb inherit unrelated abstract/default through hierarchy (IDEA-146070) 2016-01-07 16:06:39 +01:00
Anna Kozlova a25cb73db1 inherit abstract/default when inheritor provides substitutor which makes 2 different methods in the super hierarchy override equivalent (IDEA-140490; IDEA-146056) 2016-01-07 16:06:39 +01:00
Anna Kozlova e32cc02725 inherit unrelated concrete methods with same signature error (IDEA-67838) 2016-01-07 16:06:39 +01:00
Anna Kozlova 01fc1dc40f lambda -> method ref: make cast type denotable (IDEA-134217) 2016-01-04 19:25:03 +01:00
Anna Kozlova 88586f6ab9 method refs: captured wildcard at receiver position
EA-77434 - assert: PsiMethodReferenceCompatibilityConstraint.getParameterizedTypeSubstitutor
2016-01-04 19:25:03 +01:00
Anna Kozlova 82773c69e0 redundant explicit types: available inside nested calls for java 8 (IDEA-134160) 2016-01-04 19:25:03 +01:00
Anna Kozlova 105f33870f method references with qualifier with captured wildcard type: retrieve upper bound as it is done for method calls 2015-12-30 18:56:58 +01:00
Anna Kozlova 6aa61227df method reference: replace raw substitutor from second search with inferred substitutor and don't forget super class substitution (IDEA-149488) 2015-12-30 15:29:56 +01:00
Anna Kozlova ec2128de5a disable add type cast fix for non-denotable types (IDEA-149787) 2015-12-29 16:46:58 +01:00
Anna Kozlova 242cd356a7 method reference: additional diagnostics for invalid method references (IDEA-149688) 2015-12-29 16:46:58 +01:00
Anna Kozlova 210217ecfa new inference: already resolved vars can't have bounds problems (IDEA-149740) 2015-12-29 16:46:58 +01:00
Anna Kozlova 46ce9ed914 testdata for IDEA-149774 2015-12-28 19:07:22 +01:00
Anna Kozlova c4711f94ef testdata for IDEA-149709 2015-12-28 19:07:22 +01:00
Anna Kozlova adaa0f09b7 new inference: pull erased flag through nested calls (IDEA-133613) 2015-12-28 19:07:22 +01:00
Anna Kozlova 2be1c64a13 new inference: correct capture incorporation (IDEA-149807) 2015-12-28 19:07:22 +01:00
Anna Kozlova e4ef475f9e new inference: don't process expressions after param.length for non-varargs (IDEA-149489) 2015-12-28 14:57:27 +01:00
Anna Kozlova 29e713bb7e testdata for IDEA-149670 2015-12-28 14:57:27 +01:00
Anna Kozlova d9aeacbf48 overload resolution: don't prefer generic to raw substitution (IDEA-149289) 2015-12-28 10:27:00 +01:00
Anna Kozlova aa70efc9a4 testdata for IDEA-149224 2015-12-28 10:27:00 +01:00
Anna Kozlova 8edd7a4cf5 method hierarchy: don't merge methods with return types which are not substitutable (IDEA-57393) 2015-12-14 10:30:48 +01:00
Anna Kozlova 132bb137a1 don't show error on method reference if functional expression is located inside invalid context without target functional type 2015-12-10 19:52:16 +01:00
Anna Kozlova 81a6cceb35 fix casting to primitives according to the spec (IDEA-131107; IDEA-148880) 2015-12-10 17:01:55 +01:00
Anna Kozlova 3f72d428a8 method references: show candidates if overload resolution failed (IDEA-148974) 2015-12-10 17:01:55 +01:00
Anna Kozlova a04d90243b method reference: preserve all conflicts to have navigation target 2015-12-10 17:01:55 +01:00
Anna Kozlova 7249fd8179 lambda: missed ground type for target functional type (IDEA-149053) 2015-12-09 22:03:56 +01:00
Anna Kozlova c81d887251 ensure potential compatible for pertinent to applicability: when number of parameters is wrong methods which are not potentially compatible are not filtered (IDEA-149103) 2015-12-09 19:28:03 +01:00
Anna Kozlova 92487fe273 assignment: stop bounds promotion inside nested wildcards (IDEA-139161) 2015-12-09 18:49:28 +01:00
Anna Kozlova c66efb2458 testdata for IDEA-130243 2015-12-09 18:49:28 +01:00
Anna Kozlova be223c2734 testdata for IDEA-139096 2015-12-09 18:49:28 +01:00
Anna Kozlova dd38082794 least upper bound: pull unbounded wildcard up so types Number & Comparable<? extends Number & Comparable<?>> are produced instead of Number & Comparable<? extends Comparable<?>>
inferred type in bounds check cleanup: accept that inference result is not within its bounds and give the inference the second chance
2015-12-09 11:25:11 +01:00
Anna Kozlova a15905ae13 conditional expression type: check poly expression first (IDEA-148965) 2015-12-08 09:37:18 +01:00
Anna Kozlova 6e241e1168 testdata 2015-12-07 12:29:56 +01:00
Anna Kozlova f6f2b83801 testdata for IDEA-146897 2015-12-07 10:35:33 +01:00
Anna Kozlova cde4b88ba3 testdata for IDEA-67808 2015-12-07 10:35:33 +01:00
Anna Kozlova f55279387c recursive types capture: avoid capture comparison during glb computation (IDEA-57379; IDEA-139167; IDEA-139157) 2015-12-07 10:35:33 +01:00
Anna Kozlova b580d8eccb AIOOBE 2015-12-03 19:11:09 +01:00