Commit Graph

2881 Commits

Author SHA1 Message Date
Anna Kozlova
49dfdded70 new inference: don't push resolved vars in case of failed substitution 2015-11-24 10:30:21 +01:00
Anna Kozlova
138bd5a034 new inference: provide diagnostics on failed inference (strict subtyping constraints); don't resolve vars before incorporate - this way captures won't be opened too early 2015-11-24 10:30:21 +01:00
Anna Kozlova
e7d095d85f new inference: provide diagnostics on failed inference (checked exceptions) 2015-11-24 10:30:21 +01:00
Dmitry Batrak
74ab324342 follow up to IDEA-145931 one more case of garbage text when viewing JDK Javadoc 2015-11-23 15:04:37 +03:00
Anna Kozlova
be2db1f940 new inference: report inference errors of containing call for lambdas 2015-11-20 21:47:13 +01:00
Anna Kozlova
6bec6fdf0f testdata IDEA-131282 2015-11-20 21:47:13 +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
b4396c8f98 new inference: register incompatible message if inference fails (IDEA-131882; to be extended); filter out candidates if inference had failed for them 2015-11-19 20:43:59 +01:00
Dmitry Batrak
f1a2e519d8 IDEA-148225 {@code} and {@literal} Javadoc blocks aren't treated literally by Ctrl+Q 2015-11-19 19:39:50 +03:00
Anna Kozlova
d32e6ec080 new inference: start inference from top to bottom; ensure getTargetType doesn't perform any inference; cache intermediate results 2015-11-19 10:47:21 +01:00
Dmitry Batrak
4d2d2a388d IDEA-148027 recognize html links to package summary in javadoc 2015-11-19 12:11:00 +03:00
Roman Shevchenko
37ef1d7bca [java] avoid copying nullability type annotations (IDEA-132058) 2015-11-17 12:58:08 +01:00
Alexey Kudravtsev
9f98ff47c3 moved JSP-dependent test back to ultimate 2015-11-16 16:45:17 +03:00
Alexey Kudravtsev
70290391f9 moved to community 2015-11-16 13:31:16 +03:00
Anna Kozlova
fcf8e6f373 move inference error from element to method candidate to avoid overload method pollution; show inference error in the editor if applicability check was successful; register inference error if variable has incompatible upper bounds (IDEA-145106) 2015-11-16 10:05:50 +01:00
Anna Kozlova
64ff5ff961 push condition in call: fix different qualifiers (IDEA-147901) 2015-11-13 16:07:17 +01:00
Anna Kozlova
cbbd0e4456 detect array initializer type based on short variable array notation (IDEA-147881) 2015-11-13 16:07:17 +01:00
Anna Kozlova
e1f9d33a32 testdata for IDEA-147873 2015-11-13 16:07:17 +01:00
Dmitry Batkovich
6afbed569a quick fix which adds exception from field initializer to constructor signature (IDEA-142284) 2015-11-13 15:59:53 +03:00
Anna Kozlova
03d4334430 eliminate wildcards elimination in flattening intersection types (IDEA-143194); fully follow specification in determining target type - javac would be fixed (JDK-8142876), eclipse already obeys the spec 2015-11-12 20:14:15 +01:00
Anna Kozlova
44f26da2bc type arguments distinct checker: do not distinguish wildcards with array bounds from arrays with corresponding bounds (IDEA-134944) 2015-11-12 20:14:15 +01:00
Alexey Kudravtsev
89b362ef96 IDEA-146946 2015-11-12 17:04:34 +03:00
Anna Kozlova
e484d54fb8 missed usages of method references (IDEA-147828) 2015-11-12 12:36:59 +01:00
Anna Kozlova
823cd15864 static method import: collect all overloaded methods to filter them after finish of stub processing (IDEA-147745) 2015-11-11 17:35:32 +01:00
Anna Kozlova
59b55c3c00 new inference, incorporation step: ignore type arguments in bounds, retrieve upper bounds of captured wildcards (IDEA-145244) 2015-11-11 17:35:32 +01:00
Anna Kozlova
a45937536a unchecked warnings: check inferred type against bounds for java > 1.8 (IDEA-147529) 2015-11-10 18:45:36 +01:00
Anna Kozlova
99338ada50 incorporation: deal with PsiType.NULL (IDEA-147529) 2015-11-10 18:45:36 +01:00
Anna Kozlova
c29f92472e inferred type check for raw constraints (IDEA-147529) 2015-11-10 18:45:36 +01:00
Anna Kozlova
c798f3ab6b inference variables: ensure variable is not mixed with type parameter for recursive calls (IDEA-147639) 2015-11-09 19:08:30 +01:00
Anna Kozlova
289aea179d isPertinentToApplicability: check class type parameters if constructor is called with diamonds (IDEA-147619) 2015-11-09 19:08:30 +01:00
Anna Kozlova
a73d1238ff testdata for IDEA-147511 2015-11-06 16:21:29 +01:00
peter
96431dd854 IDEA-147454 Smart completion add parentheses to class declaration in throws statement 2015-11-06 16:07:41 +01:00
Dmitry Batkovich
e8805cb2cc "initialize variable" & "initialize in constructor" suggests default constructors (with inheritor's if collection) (IDEA-145431) 2015-11-06 15:56:50 +03:00
Anna Kozlova
6e853bf571 new inference: stop at first common supertypes pair during incorporation of upper bounds (IDEA-147393) 2015-11-05 15:24:18 +01:00
peter
4cac3b6b78 IDEA-147313 Adding @NotNull in front of a method parameter and finishing lookup with Space inserts 2 spaces 2015-11-04 16:51:15 +01:00
Anna Kozlova
94e3eb2c04 compound filter from filters chain (IDEA-146147) 2015-11-04 15:52:15 +01:00
Anna Kozlova
ae4b083aec split compound filter into filters chain (IDEA-146147) 2015-11-04 15:52:15 +01:00
Anna Kozlova
2d21b7777e method reference: don't start containing class parameter type inference for receiver-reference; corresponding substitutor should be already known (IDEA-146604; IDEA-147223) 2015-11-03 17:10:58 +01:00
Anna Kozlova
d7f768366b fix testdata 2015-11-02 15:29:42 +01:00
Anna Kozlova
41916174b6 return Object if denotable type is needed for functional expression (e.g. lambda expression) type
EA-75552 - IOE: PsiElementFactoryImpl.createField
2015-11-02 15:29:42 +01:00
Anna Kozlova
62cc281a3d disable lambda -> methref for qualified new expressions (IDEA-147054) 2015-10-29 19:40:11 +01:00
Anna Kozlova
543e5f3cdf remove this qualifier on anonym -> method ref fix 2015-10-28 19:45:32 +01:00
Dmitry Batkovich
713a1289c7 IDEA-146770 Suggest Math.toIntExact to convert long to int 2015-10-28 19:55:14 +03:00
Anna Kozlova
b12b47c2ea ignore most specific check if parameter count were not matched at all
EA-75076 - AIOOBE: InferenceSession.isMoreSpecific
2015-10-28 16:05:07 +01:00
Anna Kozlova
5d98d49ecf ensure denotable types 2015-10-28 16:05:05 +01:00
Anna Kozlova
1420ac66b8 testdata for EA-53634 - assert: PsiWildcardType.createSuper 2015-10-28 16:05:03 +01:00
Alexey Kudravtsev
f9547c2ece do not suggest org.jruby.util.ShellLauncher.ChannelPumper when find usages of "Thread.start" 2015-10-28 14:55:39 +03:00
Anna Kozlova
e27c654b20 silly assignment: ignore non-trivial casts involving primitives (IDEA-146830) 2015-10-27 19:35:20 +01:00
Anna Kozlova
0deaf6d6a5 recursive substitutors: additional constraints substitution should not repeat already performed substitution with site substitutor (IDEA-146841) 2015-10-26 18:56:03 +01:00
Anna Kozlova
47c3c2bbc1 null types (IDEA-146740) 2015-10-26 13:50:02 +01:00