Commit Graph

60 Commits

Author SHA1 Message Date
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
Anna Kozlova
81fc7616bf forbid 'static'/'default' in annotation types 2014-08-18 14:35:59 +04:00
Anna Kozlova
5bf5dd0450 static methods in interfaces can't be hidden in subclasses (IDEA-124921) 2014-05-12 13:08:28 +04:00
Anna Kozlova
0d66941866 IDEA-123839: abstract&default combination 2014-04-11 17:06:07 +02:00
Anna Kozlova
5a0fe4306e check access class for super expressions referenced to interfaces 2014-04-09 19:27:20 +02:00
Anna Kozlova
39ec50333b testdata for IDEA-120498 2014-03-28 20:47:26 +01:00
Anna Kozlova
72203e26ef default methods: check for super class is now needed (IDEA-122720) 2014-03-26 18:54:39 +01:00
Anna Kozlova
cf066deca7 default methods: do not warn about protected methods from Object 2014-02-28 09:59:35 +01:00
Anna Kozlova
964fcf5994 java 8: final and default/static in interfaces 2014-02-20 22:40:18 +01:00
Alexey Kudravtsev
c7b78f76a2 IDEA-120784 "Class is public should be declared in a file named <Classname>.java" for inner interface 2014-02-18 13:55:52 +04:00
Alexey Kudravtsev
ad661d92e4 correct level in highlighting:
highlight element X only when visiting X or its ascendant
2014-02-10 20:03:58 +04:00
Anna Kozlova
6565df2bab untie static methods in interface hierarchy (IDEA-118577) 2013-12-23 16:44:50 +04:00
anna
ae7e30edee java 8: forbid super in static methods 2013-11-05 12:56:04 +01:00
anna
4a725b52b3 IDEA-115789 an interface inheriting a default method and an abstract method 2013-11-04 16:16:28 +01:00
anna
9ae4eced85 IDEA-115790 default methods cannot override Object methods 2013-11-04 16:16:27 +01:00