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
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
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
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
Bas Leijdekkers
d19410735d
[java] improve error message (IDEA-223692)
...
GitOrigin-RevId: df344c76be34232b3dc682d36b9d233ab2a6d54f
2024-03-10 15:30:11 +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
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
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
Andrey Cherkasov
e7f7a140b7
[java-highlighting] Default method overrides a member of 'java.lang.Object': false negative
...
IDEA-306394
GitOrigin-RevId: 3a5938ae9de0d2d5e0e7c713fa86f4b672fec0d3
2022-11-29 17:01:35 +00:00
Andrey.Cherkasov
071a2db306
[java-highlighting] Modifier 'final' not allowed at interface methods
...
IDEA-290172
IJ-CR-23088
GitOrigin-RevId: f93deff04def5d65e0fe0463d1f4d5ba8a8b29d9
2022-04-28 03:39:54 +00:00
Artemiy Sartakov
fb9bddf05c
MemberModel: do not suggest moving into class if there's enclosing class present (IDEA-274893)
...
GitOrigin-RevId: 8800ed4e42320a3df002be58955a8a02f6149c17
2021-08-09 06:52:21 +00:00
Anna Kozlova
4b7f896333
[java highlighting] skip anonymous class context for its expression list (IDEA-272378)
...
GitOrigin-RevId: 5d8e034a4c550aed057ad860bdbaf1645118e5b3
2021-06-30 14:01:18 +00:00
Artemiy Sartakov
88b4660169
MemberModel: fixed case when there is more than one member out of class (IJ-CR-6471)
...
GitOrigin-RevId: f84b1e8acee891a84ab637ad7fc48492674e5468
2021-06-07 06:15:27 +00:00
Anna Kozlova
89bf390fb1
java: highlight static import if interface method is not accessible (IDEA-262496)
...
GitOrigin-RevId: 8e45087f2b8a95b9333f835eb2779fac1b6fb764
2021-02-19 18:20:18 +00:00
Tagir Valeev
044abd82e1
[java-highlighting] Avoid TextRange computation until necessary
...
GitOrigin-RevId: 8d2b32d3b5353a1ff4b855acc779d69907f935af
2020-09-23 11:13:43 +00:00
Anna Kozlova
856ec460c6
overload resolution: detect qualifier of unqualified call by processDeclaration's source where candidate was found
...
conflict resolution for static methods of the interface found by inheritance and nesting
GitOrigin-RevId: b637b02de4f59010a138c66890d1efcbcd1d588d
2019-11-07 02:40:58 +00:00
Anna Kozlova
d6297185ce
java resolve: don't stop on found static method of the interface (IDEA-225660)
...
if the call site' qualifier is incorrect
GitOrigin-RevId: 782629045050df08fed3cf554682b63db8c9e1a8
2019-11-07 02:40:58 +00:00
Anna Kozlova
cf944efffb
java: adjusted "Cannot resolve method" message (IDEA-206898)
...
GitOrigin-RevId: 40fc7d00d6bcc4792dc097dde63dd40d08864068
2019-07-10 23:02:59 +03:00
Anna.Kozlova
51f6813ee3
valid static method reference on class's inheritor (IDEA-187974)
2018-03-09 11:44:47 +01:00
Anna Kozlova
424081efe0
interface static methods in method refs by subclass error (IDEA-187330)
2018-03-07 08:02:41 +01:00
Anna Kozlova
f295742259
interface static methods in method refs by subclass error (IDEA-187330)
2018-03-07 08:02:41 +01:00
Anna.Kozlova
c8f8341d2f
don't treat static method as concrete in hierarchy (IDEA-180930)
2017-10-25 18:01:56 +02:00
Anna Kozlova
8032558bec
highlighting: don't check static methods for unrelated inheritance (IDEA-178539)
...
in class case, static methods must have signatures with different erasures, for interfaces, static methods
2017-09-06 19:42:01 +03:00
Anna Kozlova
634a945b0f
apply unifying substitutor to compare return types (IDEA-174292)
...
attempt to apply incompatible return types in method hierarchy due to method type parameters used in return types
2017-06-13 16:12:44 +03:00
Anna.Kozlova
f6364fbc68
method hierarchy with generics methods: fix adapting substitutor (IDEA-165969)
2016-12-28 14:20:06 +01:00
Anna.Kozlova
382b78aeca
unrelated defaults: check if current class contains explicit method (IDEA-164732)
2016-12-02 11:51:07 +01:00
Anna.Kozlova
bf259fed79
unrelated defaults when one interface overrides 2 unrelated (IDEA-163469)
2016-11-02 15:51:14 +01:00
Anna.Kozlova
0e3d077bfe
fix inheritance of abstract and default methods when multiple defaults are present
2016-08-09 15:52:11 +02:00
Anna.Kozlova
3a700a9bc9
process override equivalent methods when check for functional interface target (IDEA-153324)
2016-03-21 14:14:26 +01:00
Anna Kozlova
ea84b25cc5
unrelated defaults: ignore type parameters check for abstract methods only, leave as is for defaults
2016-03-11 10:04:22 +01:00
Anna Kozlova
9675e0248a
unrelated defaults: don't check type parameters
2016-03-11 09:38:32 +01:00
Anna Kozlova
480658c12e
unrelated defaults: adjust pattern in current class to super class substitution
2016-03-03 13:31:40 +01:00
Anna Kozlova
cbd7853f19
fix for default overriding abstract: missed substitutor
2016-02-26 16:06:22 +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
2da2ff75fa
don't reject static method of interfaces imported via static imports (IDEA-145504)
2015-09-25 15:43:09 +03:00
Anna Kozlova
8b322fadb7
static methods of interfaces: accept calls on type parameters with exact one interface bound (IDEA-145269)
2015-09-18 14:37:14 +03:00
Anna Kozlova
99a54a3e76
resolve/overload resolution: collect static methods of interface called on foreign class/instance but filter them out during overload resolution (IDEA-145187)
2015-09-17 13:42:45 +03:00
Anna Kozlova
14cfc1680c
unrelated defaults false negative (IDEA-144518)
2015-08-31 19:09:55 +03:00
Anna Kozlova
8a9e5ae9db
A.super.field should not accept super interface (IDEA-140646)
2015-07-07 18:18:30 +03:00
Anna Kozlova
6fd53851a0
report unrelated defaults when 2 default methods provided; abstract/default otherwise (IDEA-141714)
2015-06-23 12:05:22 +03:00
Anna Kozlova
2fc7821d06
forbid native in interfaces (IDEA-140491)
2015-05-20 13:49:49 +02:00
Anna Kozlova
4e9f79945c
ensure static method inherit default if container classes are inheritors
2015-05-17 17:39:18 +02:00
Anna Kozlova
02e86e0ab9
static interface method: if called on wrong qualifier mark as static problem (IDEA-139651)
2015-04-28 13:04:57 +02:00
Anna Kozlova
502dd423d9
static interface method call: ignore static imports if call is qualified (IDEA-136077)
2015-02-11 19:05:40 +01:00
Anna Kozlova
3f940f370f
reference to static method from interface: prefer static import context if provided (IDEA-130136)
2014-09-30 15:47:29 +02:00