Tagir Valeev
d4b107d27a
[java] The highest language level is now 22
...
Some tests are adjusted, as now (after unnamed variables release), we warn on every unused lambda parameter
GitOrigin-RevId: 17ce095a19332d22ba0cbcef1e6751ea309ca774
2024-03-15 14:05:44 +00:00
Mikhail Pyltsin
82abbe2dbb
IJ-CR-119726 [java-highlighting] S IDEA-306108 Assignment to a variable with non-denotable type: confusing error message
...
- fix for quickfix
- refactoring
GitOrigin-RevId: aedc118f2dd67bf56391792e7cd3042a8f7f33a8
2024-01-25 16:31:41 +00:00
Mikhail Pyltsin
8adeaf3193
[java-highlighting] IDEA-306108 Assignment to a variable with non-denotable type: confusing error message and useless quick-fix
...
- add `anonymous` when it is not clear what type is used
GitOrigin-RevId: f3395a590fd4a48a5570fdf9ace540845e5f3879
2023-11-13 17:04:45 +00:00
Bas Leijdekkers
60a6cb2a00
Java: Provide better error message - illegal forward reference (IDEA-337031)
...
GitOrigin-RevId: 789b0bca6e6b1f9d0d366cd20a011c194cf1af0d
2023-11-06 11:16:57 +00:00
Mikhail Pyltsin
bed8faeb52
[java-inspections] IDEA-328239 Casting with conjunction
...
- fix formatting
GitOrigin-RevId: 74955a0e5ddc5d5894455fcbfb3bec813d081b84
2023-08-30 13:11:27 +00:00
Mikhail Pyltsin
bdf1d8226d
[java-inspections] IDEA-328239 Casting with conjunction
...
- Check if SAM is implemented in conjunction
- check lambda Methods signature with generic from types
GitOrigin-RevId: 981b75d4417e08bb6e392a2ab78d6104de19b84f
2023-08-29 22:10:43 +00:00
Mikhail Pyltsin
320f621750
Revert "[java-inspections] IDEA-328239 Casting with conjunction"
...
This reverts commit 97e21dbacccd9382e48387295a911b127882e625.
GitOrigin-RevId: 572b3b40ac196132e233d044631ee27b565f0edc
2023-08-29 22:10:40 +00:00
Mikhail Pyltsin
3072396ff6
[java-inspections] IDEA-328239 Casting with conjunction
...
- Check if SAM is implemented in conjunction
- Created lambda Methods signature with generic from types
GitOrigin-RevId: 97e21dbacccd9382e48387295a911b127882e625
2023-08-29 18:57:55 +00:00
Tagir Valeev
b2dfb4c8a8
[java-highlighting] Do not report lambda return value error if its return type contains unsubstituted type variable
...
Fixes IDEA-310129 IDE hint a wrong position of Java method param compile error
Also: AdaptExpressionTypeFixUtil: try to determine wrong parameter even if several parameter types mention type parameter
Also: AdaptExpressionTypeFixUtil: new type mismatch fix to replace call with qualifier
GitOrigin-RevId: fbc63c0eb3415983ccf52ed5ade15b5895b65b21
2023-01-17 15:37:18 +00:00
Tagir Valeev
a0bc3ee404
[java-highlighting] Better actual type definition; fixes for some type mismatch in collectors
...
GitOrigin-RevId: 3652f4511a067b86bc9138f492a2a88cded09de0
2022-08-08 13:59:57 +00:00
Anna Kozlova
8bb3536c11
[java] effectively final: ensure checks are performed on the same variable
...
GitOrigin-RevId: 77dc60e5a5119eecdd73268e192bd52390dff342
2022-02-10 14:42:24 +00:00
Anna Kozlova
c266a5b737
[java] simplify error message
...
GitOrigin-RevId: 82e449029d1d03994dd6b4e68a5d280dd0f5b0b9
2021-11-17 12:03:12 +00:00
Anna Kozlova
846afc113d
[java] expand error message about incompatible lambda expression (IDEA-282399)
...
GitOrigin-RevId: 39b243021881564fea9e2b359433ab79632697f4
2021-11-16 08:08:51 +00:00
Anna Kozlova
07fe5de1ce
[java inference] treat intersection type in one more place (IDEA-274350)
...
GitOrigin-RevId: d31b30aab900748010f28b02c483c56982d26040
2021-07-27 06:56:28 +00:00
Anna Kozlova
afa0706bfc
java highlighting: provide better incompatible types message on failed inference
...
GitOrigin-RevId: 5f97ec808f753d9ca40c417704ec93a802512745
2019-07-08 12:04:21 +03:00
Rustam Vishnyakov
123242c4b2
EditorConfig documentation test
...
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
2019-06-16 04:03:21 +03:00
Egor Zhdan
c1813cfb52
Cleanup: NotNull/Nullable
...
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-16 04:02:08 +03:00
Anna Kozlova
91f7445298
constructor reference: don't ignore constructor parameters during method reference inference (IDEA-185578)
...
GitOrigin-RevId: e836468e05db28157713e9edd3c70382f8ecdebc
2019-06-13 03:15:49 +03:00
Egor Zhdan
39d2d77155
Cleanup: NotNull/Nullable
...
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-13 03:14:35 +03:00
Aleksey Rostovskiy
185284cee6
get rid of intellij.build.toolbox.litegen parameter and use BuildOptions.TOOLBOX_LITE_GEN_STEP to skip it instead
...
GitOrigin-RevId: 9aac8ee4ed1ebf2a29de18a238825fafb1ab88f9
2019-05-27 15:08:08 +03:00
Alexandr Suhinin
9215f4240b
[duplicates] enable duplicates analysis in PyCharm/WebStorm/PhpStorm/RubyMine
...
GitOrigin-RevId: 1545b79fdca4888f4b94f47f22703fd37694fa7a
2019-05-27 15:07:30 +03:00
peter
000ccd1dbc
java: prohibit caching when using thread-local types imposed on expressions and declarations in complex nested inference scenarios
...
GitOrigin-RevId: a767826dedb5d1879009ee5804e1c675d1b863ac
2019-05-27 09:04:05 +03:00
Anna.Kozlova
b015644d7a
get rid of redundant space in error message
2018-11-21 15:54:15 +01:00
Anna.Kozlova
51a2d549b2
highlight only method name on unhandled exception (IDEA-190912)
2018-04-25 21:11:38 +02:00
Tagir Valeev
4234f0d140
EffectiveFinal tests reported in IDEA-154224, IDEA-163280, IDEA-171790
2018-02-08 13:21:31 +07:00
Anna.Kozlova
1fc76eb779
calc types by applicability constraints if inference fails
...
include all inference variables for resolve and ignore additional constraints checks if the inference is going to failure; this way if (expr()) would get type of the 'standalone' expression instead of expression with boolean as expected type
2017-12-07 15:51:06 +01:00
Anna.Kozlova
3d1ba95725
unhandled exception: shrink the highlighted range (IDEA-177234)
2017-08-09 18:38:29 +02:00
Anna.Kozlova
9e0394a757
lambda constraints: proceed with return expressions (IDEA-175426)
...
lambda with formal types won't lead to additional constraint after return type constraint processing, thus it need to be processed additionally
2017-07-05 16:48:52 +02:00
Anna Kozlova
77f4894aae
inference errors: make applicability error thread safe so multiple threads can perform overload resolution of parent method calls independently, save presentable error when substitutor cached only
2017-05-08 12:12:13 +03:00
Anna.Kozlova
bdd3f7f3d6
pertinent to applicability: process return statements inside block lambda
2017-04-28 20:23:23 +02:00
Roman Shevchenko
6bd1b92c6e
[tests] prepares Java tests for the language level raise
2017-03-24 13:19:01 +01:00
Anna.Kozlova
e55fbf3f1d
isEffectivelyFinal: disallow effectively final variables to be initialized twice (IDEA-165060)
2016-12-06 17:54:19 +01:00
Anna.Kozlova
936294e05d
allow functional expressions in nested conditional expressions (IDEA-164828)
2016-12-01 16:52:02 +01:00
Anna.Kozlova
3797d3ea1c
ensure ambiguity error presentation doesn't depend on previous calls to getSubstitutor()
2016-10-21 18:07:07 +02:00
Anna.Kozlova
b560ee5910
lambda highlighting: if return statement has problem, try to highlight only corresponding return even if containing inference failed
2016-10-07 13:55:01 +02:00
Anna.Kozlova
62d25f9d05
new inference: provide incomplete inference results for lambda (IDEA-162035; IDEA-155230)
2016-10-06 16:21:05 +02:00
Anna.Kozlova
3332a677a6
allow functional interfaces in conditionals inside assignment or invocation contexts only
2016-10-04 18:45:14 +02:00
Anna Kozlova
c95ba9968d
testdata
2016-09-22 17:25:47 +03:00
Anna.Kozlova
9150e6fd4a
clear error message (IDEA-154419)
2016-04-08 18:44:25 +02:00
Anna Kozlova
c16a53a9fb
do not open capture when method call type is calculated
2015-12-03 12:18:25 +01:00
Anna Kozlova
3a669178f5
do not open captured wildcards on substitution; don't capture wildcards on getExtendsTypes for type parameters and their consequences
2015-12-02 10:17:29 +01:00
Anna Kozlova
621795bbee
isApplicability check based on pertinentToApplicability
2015-11-30 15:11:41 +01:00
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
Anna Kozlova
be2db1f940
new inference: report inference errors of containing call for lambdas
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
773e192f1a
recursive getLambdaParameterType problem: don't check nested lambda body for unchecked exceptions, that's impossible anyway (IDEA-146161)
2015-10-09 17:17:09 +02:00
Roman Shevchenko
32a6761ede
Cleanup (i18n; text corrected)
2015-07-20 12:06:25 +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