Anna Kozlova and intellij-monorepo-bot
6472c347db
java: highlight enum constant name if empty arguments are not applicable to the constructor (IDEA-243927)
...
GitOrigin-RevId: 495516860c1d26dc090aa2f2ca4f8c2397fcb177
2020-06-22 12:35:57 +03:00
Tagir Valeev and intellij-monorepo-bot
2072855222
IDEA-243546 Allow local interfaces and enums on language level 15-preview (part of JEP 384)
...
Also: fix non-static access checks for local interfaces/enums/records (JEP 384)
Also: i18n of error messages
GitOrigin-RevId: 40448f089229d77e32eb200b4011e1aea09391b0
2020-06-16 09:43:13 +03:00
Nikita Eshkeev and intellij-monorepo-bot
61712f77ac
[codeInsight] IDEA-236735 Java enum constant is called "Anonymous inner class"
...
There used to be a vague error message for enum constants that don't
implement methods from an interface which refers to them as
'Anonymous class deriving from *Enum'. This patch makes the message clear
displaying the real names of the enum constants in the error message.
Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com >
GitOrigin-RevId: 700bc2b579e0c8552858ab881d9a3e4e8d81b1f8
2020-04-24 15:29:10 +00:00
Anna Kozlova and intellij-monorepo-bot
022c5be762
java type system: use captured wildcard bounds in cast context (IDEA-233551)
...
starting with javac 1.9+ such code starting to compile, javac 8 rejects the code with the same language level used
GitOrigin-RevId: 87a1e4d475927af0ee71cd74f5a66e130908ed82
2020-04-16 19:41:33 +00:00
Alexey Kudravtsev and intellij-monorepo-bot
295a9bc984
fix exception on unboxing captured wildcard of numeric type
...
GitOrigin-RevId: 6fb5c3ed9b1225d4224c8c543221d12412718114
2020-03-10 13:32:01 +00:00
Tagir Valeev and intellij-monorepo-bot
ae504215d1
Updated testdata to reflect changes in 199aa48de31
...
GitOrigin-RevId: 413ff7692d305c2fdf078fc9762aed5f40662dc8
2020-03-10 03:40:03 +00:00
Peter Gromov and intellij-monorepo-bot
6d71b92a62
make synthetic enum valueOf/values methods part of PsiClass#getMethods
...
because all other synthetic methods from records and plugins are also there
inspired by IDEA-CR-57031
GitOrigin-RevId: 9a8b345adaded83fe13980a28db5d9f9acc7450d
2020-01-21 06:38:24 +00:00
Vladimir Krivosheev and intellij-monorepo-bot
170d17e54d
cleanup - AbstractTreeNode<?> (part 2)
...
GitOrigin-RevId: d4f81901afcb8dad5af3a1867550d1c1d99e0b56
2020-01-13 15:43:25 +00:00
Vladimir Krivosheev and intellij-monorepo-bot
fc1978e0df
cleanup - AbstractTreeNode<?>
...
GitOrigin-RevId: fa3b77b69a092eed8530aa29ffa98a981a35903f
2020-01-13 15:43:25 +00:00
Tagir Valeev and intellij-monorepo-bot
4bc45f31f0
Records extend the Record class (IDEA-228460)
...
GitOrigin-RevId: f99f9cfbe07cec22bc34596366c97d62d024e4b2
2019-12-19 06:13:56 +00:00
Anna Kozlova and intellij-monorepo-bot
67839b3676
java unchecked warning: narrow down highlighting to class/method reference (IDEA-203860)
...
GitOrigin-RevId: ee686cedeef7aa677445b5054c9e191ce1d15a77
2019-07-15 12:05:58 +03:00
Anna Kozlova and intellij-monorepo-bot
cf944efffb
java: adjusted "Cannot resolve method" message (IDEA-206898)
...
GitOrigin-RevId: 40fc7d00d6bcc4792dc097dde63dd40d08864068
2019-07-10 23:02:59 +03:00
Artemiy Sartakov and intellij-monorepo-bot
642c65dd11
MethodReturnTypeFix: highlight only return statements when method return type doesn't match expected (IDEA-216275)
...
GitOrigin-RevId: d5f7dc3b03d68d249ba29532b0e8c0555cae60d6
2019-07-08 15:09:05 +03:00
Artemiy Sartakov and intellij-monorepo-bot
42d733a694
MethodReturnTypeFix: updated fix to change method return type based on return statements in method body (IDEA-216275)
...
GitOrigin-RevId: e97990950039123c8c41921a71342b8ed60afdee
2019-07-04 09:02:24 +03:00
Tagir Valeev
e72a28c3e6
Detect recursive type parameter definition when checking for assignability
...
Fixes EA-137370 - SOE: TypeConversionUtil.isNarrowingReferenceConversionAllowed
2019-02-21 12:58:25 +07:00
Anna.Kozlova
582bee8427
type distinction when assignment to parameter bound doesn't work (IDEA-205883)
2019-01-28 18:34:34 +01:00
Anna.Kozlova
2b64f13de2
check enum synthetic method by erased signatures (IDEA-203732)
2018-12-07 19:41:05 +01:00
Anna Kozlova
e5d1930008
testdata for IDEA-138636
2018-08-20 19:18:34 +03:00
Anna Kozlova
0ed6ea2e4b
testdata for IDEA-106811
2018-08-20 19:18:33 +03:00
Anna Kozlova
4198e09715
testdata for IDEA-139214
2018-06-28 11:12:17 +03:00
Anna Kozlova
567fa3692d
testdata for IDEA-128159
2018-06-21 19:36:49 +03:00
Anna.Kozlova
51a2d549b2
highlight only method name on unhandled exception (IDEA-190912)
2018-04-25 21:11:38 +02:00
Anna.Kozlova
aad9fe81c2
show error for type arguments on array creation (IDEA-189766)
2018-04-09 15:07:49 +02:00
Anna.Kozlova
6880a7c7a7
error preferences according to javac (IDEA-180509)
2018-03-15 11:18:58 +01:00
Anna.Kozlova
55d26d0c27
inherit with different parameterization: fix for raw types (IDEA-186271)
2018-02-07 18:36:34 +01:00
Anna Kozlova
e6e51584ef
unqualified getClass() type fixed (IDEA-186043)
2018-02-02 15:52:51 +03:00
Anna.Kozlova
d74021cd16
highlight enum with abstract methods until enum initializer is added
...
IDEA-184704
2018-01-11 19:31:43 +01:00
Anna.Kozlova
f368f326dc
follow IDEA-CR-26141
2017-10-27 20:18:47 +02:00
Anna.Kozlova
543d1cf996
don't warn about final enum when it is not (IDEA-181211)
2017-10-26 15:23:08 +02:00
Anna.Kozlova
0056220d8b
generic throwable: detect generics through ancestors (IDEA-179958)
2017-10-12 19:38:48 +02:00
Anna.Kozlova
8b84f7ab8e
include tree ancestors in type parameters iterable (IDEA-179958)
...
anonymous and local classes are inner classes which are not members of any other class, they are implicitly generics if applicable
2017-10-10 18:17:29 +02:00
Anna Kozlova
955a6160cd
resolve references by qualified class name when qualifiers can't be resolved
...
javac ignores problems caused by files located in wrong directories, IDEA reports them: try to search class by FQName when failed to resolve normally (IDEA-178376; IDEA-176179)
2017-09-06 19:42:00 +03:00
Anna Kozlova
79b43cdbcd
error if inner class of generic outer extends throwable (IDEA-178490)
2017-09-05 15:54:41 +03:00
Anna.Kozlova
b59ffe20e4
type arguments in bounds check: ensure capture conversion (IDEA-175899)
2017-07-18 19:13:24 +02:00
Anna.Kozlova
4e8a0d2dd8
don't loose type parameter bounds during super substitution (IDEA-175471)
2017-07-07 12:54:58 +02:00
Roman Shevchenko
298539fae0
[java] highlighting on generic throw types (IDEA-175073)
2017-06-30 16:03:26 +02:00
Anna Kozlova
a5501a81c0
incompatible return types in hierarchy fixed (IDEA-173809)
...
take parameter bounds into account
2017-06-05 20:14:44 +03:00
Alexey Kudravtsev
920d5b4fba
removed default file header, because it adds no information but subtracts attention and space
2017-05-11 13:39:07 +03:00
Anna.Kozlova
e75f2f7860
make message closer to javac error (IDEA-169865)
2017-03-21 12:18:45 +01:00
Anna.Kozlova
92d60ede85
enclosing instance check: don't check the inheritance for the class with extends/implements itself
2017-03-08 19:15:20 +01:00
Anna.Kozlova
0fa0b96dc6
no enclosing instance error for top level classes (IDEA-169088)
2017-03-08 12:37:00 +01:00
Anna.Kozlova
968d14a5db
Revert testdata changes: Proper focus requests through the IDE focus subsystem. Part II.
2017-02-21 21:25:26 +01:00
Denis Fokin
556290b406
Proper focus requests through the IDE focus subsystem. Part II.
2017-02-21 21:06:22 +03:00
Anna.Kozlova
ccda645376
raise unchecked warning when captured wildcard is assigned (IDEA-167393)
2017-02-07 13:26:04 +01:00
Anna.Kozlova
e3352b820f
method signature: don't substitute twice during erasure (IDEA-167386)
2017-02-01 15:47:45 +01:00
Anna Kozlova
0fe652059e
reifiable types: skip anonymous types through the tree hierarchy as they can't be generic (IDEA-166840)
2017-01-20 15:51:24 +03:00
Anna Kozlova
65ac360725
javac 1.7 bug workaround: give error for language level 1.7 despite of java 1.8 would compile the code (IDEA-166358)
2017-01-12 12:02:35 +01:00
Anna.Kozlova
977c4cc924
clashing return type of overriding methods: fix unchecked override comparison (IDEA-166355)
2017-01-10 15:43:36 +01:00
Anna.Kozlova
c376fa7e97
type arguments containment: ensure arrays are contained in type parameters with Serializable, Cloneable or Object bounds (IDEA-165295)
2016-12-13 17:46:28 +01:00
Anna.Kozlova
08c5a244c3
reigiable local classes inside static methods (IDEA-163615)
2016-11-07 18:56:11 +01:00