Mikhail Pyltsin
775154bef0
[java] IDEA-385079 False positive "Unresolved reference" on method reference within lambda when used in switch expression
...
GitOrigin-RevId: f045c611944c9302bff16df4b9ff486422c9e58c
2026-01-28 17:48:13 +00:00
Tagir Valeev
8034f97303
[java-highlighting] IDEA-344501 (part of) IntelliJ Wrong Error Highlighting with Wildcard Method Reference
...
Do not report 'unexpected wildcard' if the method reference is not in the constructor form (see JLS 15.13)
GitOrigin-RevId: 19d0acbe97b2a4d6ae3f5c611ff6a24490eec09c
2025-11-04 20:00:42 +00:00
Bas Leijdekkers
38729705c8
Java: don't report uninitialized fields when constructor has incorrect name (IDEA-380080)
...
GitOrigin-RevId: c83193e8b72f9730e1102220f7a12c35e2722223
2025-10-07 18:33:11 +00:00
Bas Leijdekkers
bc58a5983c
Java: small change in test
...
GitOrigin-RevId: 2428e3babb03526980472fd3a19835c1831d2f4a
2025-07-09 00:31:23 +00:00
Bas Leijdekkers
8b4e7829cb
Java: cache class name for better inference performance
...
GitOrigin-RevId: 3f498927ef9124974bc2d3ad0574a9327da5ea51
2025-06-30 18:41:25 +00:00
Mikhail Pyltsin
128454480a
[java-highlighting] WIP IDEA-372969 Support JEP 512: Compact Source Files and Instance Main Methods
...
- update language levels partially
- fix tests
GitOrigin-RevId: 8d7b599772eda8dfd999bee9f816ec2609be4adb
2025-06-24 23:04:26 +00:00
Tagir Valeev
f6b5d7935a
[java-psi] One more test for lambda parameter type under ambiguous resolve
...
GitOrigin-RevId: 41a80dd4ce9f232d6e5cc273adc8f02dd1a01780
2025-03-26 18:21:27 +00:00
Tagir Valeev
a8dac43c9e
[java-highlighting] Do not report incompatible type on calls when found type is lambda
...
Fixes IDEA-336129 Incorrect error if excess arguments passed to a function with lambda
GitOrigin-RevId: 712960416933e710740b9053b3604039c9a9b2ef
2025-03-21 14:59:41 +00:00
Tagir Valeev
c855231a3b
[java-highlighting] Do not report incompatible type when found type is lambda
...
GitOrigin-RevId: 511c42c0fbbb713ec34b6a25d1ceddb0d5612b2f
2025-03-21 14:59:41 +00:00
Tagir Valeev
ef4334ea4b
[java-psi] Multi-resolve of functional interface type improvements
...
- Support constructors
- Support diamond types
- Infer lambda parameter type even if functions differ
Also: PsiCall.multiResolve method; used where possible
Improves IDEA-364426 Missing variable type inference of lambda in a method call while typing a first parameter if all parameters haven't been provided yet (until overload is chosen, even though the first parameter can be inferred already)
Fixes IDEA-318792 Stray "Cannot resolve constructor" error
GitOrigin-RevId: 3227c2da22ef417457ad07a524403b405aeebbcd
2025-03-20 10:06:40 +00:00
Tagir Valeev
2250bb64ee
[java-highlighting] Finish moving module access errors
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 0f89a7cd9609aea2780e132118aae892a6b0bafd
2025-02-25 17:24:00 +00:00
Aleksey Dobrynin
5151559045
[java, jigsaw] Support JDK-8197532: add tests (IDEA-367339) IJ-CR-154794
...
GitOrigin-RevId: e3acb5c8848ae13da6f28c1593b432e27c81cd14
2025-02-24 10:44:41 +00:00
Tagir Valeev
96bc4480b1
[java-highlighting] Unrelated defaults checks moved to MethodChecker
...
GenericsHighlightUtil.java is removed completely
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: de2bddb49469c21efe1088e86f6a1ec5b9d35b4a
2025-02-21 10:35:05 +00:00
Tagir Valeev
2350d69472
[java-highlighting] JavaCompilationErrorBundle.properties proofreading (DOC-34381)
...
GitOrigin-RevId: 05bdca159a63027ea0d1e3d767d4adb9b258f47e
2025-02-14 12:45:24 +00:00
Tagir Valeev
cc643a5ae4
[java-highlighting] More control-flow-related stuff migrated
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 3c292fdf4869e6d13c16fabbf42e2055ea54f724
2025-02-06 10:35:32 +00:00
Tagir Valeev
caef43a5e5
[java-highlighting] Incompatible lambda parameter types moved
...
Also: report every incompatible parameter, not only the first one
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: a9d75a78207d0910f0bcbb6060e38acedc3f07d3
2025-02-04 19:21:50 +00:00
Tagir Valeev
fd581aa354
[java-highlighting] Refactor FunctionalInterfaceTest to avoid internals dependency; move completion stuff out of LambdaHighlightingUtil
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 4bd5447dd5fc2342f5e9b23e693f7683594470f5
2025-02-04 19:21:50 +00:00
Tagir Valeev
577de68f8a
[java-highlighting] Most of method-reference problems migrated
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 03528950826974c1875e89868dc335c88c2e8149
2025-02-04 19:21:50 +00:00
Tagir Valeev
5b5abb8e13
[java-highlighting] Lambda-related type errors migrated
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 1fb0b4c35b4db63d8c15cb392098380d1014ebf2
2025-02-04 09:52:02 +00:00
Tagir Valeev
9ff09939f1
[java-highlighting] fixes after recent changes in highlighting
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 5fbcd6d223a0ea3c04bc0d219cff125938470816
2025-01-31 15:31:12 +00:00
Tagir Valeev
01bc97b6cc
[java-highlighting] checkAmbiguousMethodCallIdentifier -> ExpressionChecker
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 0edb80ae452250e0d12ff987aa5701b048dc91cb
2025-01-30 17:21:02 +00:00
Tagir Valeev
c449c341b7
[java-highlighting] test-data adjusted (mostly anchors) after recent updates
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 1e1b77009dc78de49c7cc5c44d4704937397bb23
2025-01-29 11:35:30 +00:00
Tagir Valeev
a891bc5b66
[java-highlighting] break, continue errors -> StatementChecker; wording adjusted
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: c16e11baec8b9191ac809a34fc919a4375dd0ebd
2025-01-28 17:28:10 +00:00
Tagir Valeev
79c582597a
[java-highlighting] return statement errors migrated
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 4449ffc2458eeb73fa296453f6963a6eeed28a76
2025-01-27 18:52:56 +00:00
Tagir Valeev
73c6deaa44
[java-highlighting] checkPolyadicOperatorApplicable, checkUnqualifiedSuperInDefaultMethod -> ExpressionChecker
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 8dbc6e56fe6f74f05f2a00509d0e0fd73b426747
2025-01-24 14:41:53 +00:00
Tagir Valeev
b0614fa46d
[java-highlighting] checkConstructorCall migrated; more proper HTML in tooltips
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: bc39e165c886c5c0c131a3e6770f3a688f00e798
2025-01-23 12:39:11 +00:00
Tagir Valeev
059a080ab3
[java-highlighting] Fix testdata, tooltips
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: ed0cf0daf5dbfb034882d49ad5e9c03f264b451e
2025-01-22 10:33:39 +00:00
Tagir Valeev
3110c87f51
[java-highlighting] fragment errors, illegal forward references migrated
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 5b74826b2383518fa7a8a0fcbbd0d17271aa8381
2025-01-20 18:45:06 +00:00
Tagir Valeev
f1b1712b43
[java-highlighting] More method-related checks to MethodChecker
...
Unify add/remove modifier fixes
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 83db9a85524edc7c39737a75b470e0697a9c02db
2025-01-15 19:19:41 +00:00
Tagir Valeev
9450c1bf37
[java-highlighting] More class-related stuff and implicit class stuff -> ClassChecker
...
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: aa4e9711952175cbd0677b50d7486efaa19113fc
2025-01-13 09:44:55 +00:00
Tagir Valeev
f592c31876
[java-highlighting] Do not report incompatible type problems when operand is lambda parameter having unknown type
...
Such kind of error is induced by lambda resolution error, and in most of the cases the resolution error should be fixed first
Fixes IDEA-361893 "Introduce local variable" should suggest for Function expression
GitOrigin-RevId: 352d0f9040dd3e153e7d5b15ae61699b8c890194
2024-12-10 16:14:02 +00:00
Tagir Valeev
d8e08c17bb
[java-highlighting] Improve error messages around inapplicable method reference
...
Fixes IDEA-362351 An Incorrect Error warning "Non-static methods cannot be referenced from a static context"
Fixes IDEA-173183 Wrong error message for method reference
Improves IDEA-208532 Incorrect Inspect code error in lambda expression method reference
GitOrigin-RevId: 8f7a17688eaa1aba72bbccd45395967656108668
2024-11-22 15:34:30 +00:00
Maxim.Kolmakov
4fde19f14f
Rename test data to match the renamed tests
...
GitOrigin-RevId: 375f00b3134b2e6ee31ab58a8a44b087e4a00647
2024-11-05 11:58:02 +00:00
Bas Leijdekkers
6916b6b005
Java: better error message when there are more arguments than parameters (IDEA-336129)
...
GitOrigin-RevId: a17a5f0f3878b9baf211737a614d1aa1a5103d31
2024-06-28 17:14:56 +00:00
Tagir Valeev
f701cdab11
[java-highlighting] Test for IDEA-350192 Opening < is missing for generics in inspection message
...
GitOrigin-RevId: 0de35be85e748d6a50d3bca9c13dcd8116e6ffdf
2024-04-17 14:20:37 +00:00
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
Bas Leijdekkers
d19410735d
[java] improve error message (IDEA-223692)
...
GitOrigin-RevId: df344c76be34232b3dc682d36b9d233ab2a6d54f
2024-03-10 15:30:11 +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
Bas Leijdekkers
ab928055bb
Java: better error reporting and quick fixes for the diamond operator and generic array creation (IDEA-299195)
...
GitOrigin-RevId: baa354ad9132bf6d939f19ecd2cfd6cfc56466a2
2024-01-08 17:34:42 +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
Bas Leijdekkers
13826505b1
Java: improve error message - repeated modifier (IDEA-330995)
...
GitOrigin-RevId: c2e4ddef81f2df01c0cd16ebc989f8130d255056
2023-11-01 16:15:17 +00:00
Mikhail Pyltsin
435980a002
[java-highlighting] IDEA-333141 incorrect highlighting for default and static method in interfaces
...
- case `static` method from class and `default` method from interface must be highlighted
- case `abstract` method from class and `static` method from interface must be highlighted
GitOrigin-RevId: 49609ad0c75b132766b85b8b232fbefddfa02239
2023-09-29 16:33:52 +00:00
Mikhail Pyltsin
0aa4d2f4f2
[java-highlighting] IDEA-332057 Not show cannot override instance error in case static methods is inherited
...
GitOrigin-RevId: c16f27e9799cba34bf15ec27c40430161bb7c9b3
2023-09-15 11:10:03 +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
Mikhail Pyltsin
899e5292e5
[java-highlighting] IDEA-316141 incorrect resolving static reference to static method in interfaces
...
GitOrigin-RevId: d558946ecb71dd2edb475d96508b1965a1036d9a
2023-04-06 15:51:30 +00:00
Mikhail Pyltsin
7129c6a6e2
[java-completion] IDEA-314367. Completion for similar methods
...
GitOrigin-RevId: ccce34749357dbd8b01625cc4b8322ae50445cf4
2023-03-01 11:24:28 +00:00