Commit Graph
243 Commits
Author SHA1 Message Date
Tagir Valeevandintellij-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
Anna Kozlovaandintellij-monorepo-bot bb49afba0d java: keep text blocks escapes as separate feature
GitOrigin-RevId: 086115a4a13b983c6a9f116253634fd15dab612e
2020-06-10 09:07:15 +03:00
Anna Kozlovaandintellij-monorepo-bot 60f4542cda language level 15, remove 13 preview
GitOrigin-RevId: 5e0277b784e6dfa59ad4eca16688bc3a40c04d60
2020-06-09 20:53:00 +03:00
Anna Kozlovaandintellij-monorepo-bot 34b4ff0fb9 java: operator applicability: ensure unboxing performed before checks (IDEA-240121)
GitOrigin-RevId: 543c6476d202a57fda81f27b5764c000e2ab3b8f
2020-05-28 21:30:01 +03:00
Tagir Valeevandintellij-monorepo-bot 00fec48b9f IDEA-234810 IntelliJ doesn't report parsing error on Java code
GitOrigin-RevId: 1d177aaec708bc9d09b5874164af91bf55686d41
2020-03-11 16:33:13 +00:00
Roman.Ivanovandintellij-monorepo-bot 62046f2bcc Records: delete test for records feature (parser unable to detect if it is not method)
GitOrigin-RevId: 70e9bbe9e65e4cd9c875ff13a1c156a9462028b9
2020-02-03 09:39:27 +00:00
Tagir Valeevandintellij-monorepo-bot fabef32ef5 HighlightControlFlowUtil#checkFinalVariableMightAlreadyHaveBeenAssignedTo: refactoring
isFieldInitializedInAnotherMember extracted; the behavior is less smart now: we issue error unconditionally if we are inside the delegating constructor (javac behaves like this as well)

GitOrigin-RevId: 24943a91a47943866619af3408a992bd3b555a3e
2020-01-29 05:35:20 +00:00
Artemiy Sartakovandintellij-monorepo-bot a8e1ee46c9 JavaHighlightingLexer: support two new escape sequences in string literals (IDEA-231527)
GitOrigin-RevId: ca884a706c6ae4056c6534c9d5e84aeb8bef5b71
2020-01-28 05:42:24 +00:00
Peter Gromovandintellij-monorepo-bot 4b12b7a4e3 java: avoid recursion prevention when checking imported vs inherited superclass (IDEA-67385, IDEA-228814)
GitOrigin-RevId: 2a246ced1d66c4c3c9df71dcd51a491b471a744c
2019-12-16 19:36:07 +00:00
Alexey Kudravtsevandintellij-monorepo-bot aab47de9b7 fix occasional test fail when the future is completed successfully but the status is not set to EXECUTED yet, check for test annotators actually annotate something
GitOrigin-RevId: 93f8dd0391ae62e02102eecfe12bc940816fa3dd
2019-12-11 10:02:43 +00:00
Roman.Ivanovandintellij-monorepo-bot f297157108 Add records feature and validation
GitOrigin-RevId: fc64ecd6fe81020abbcccaacf1b447e0ad2ab678
2019-12-05 04:41:15 +00:00
Tagir Valeevandintellij-monorepo-bot acb3387b1c IDEA-223192 Non-initialized variable error is not displayed in nested switch statement
GitOrigin-RevId: 850afa74fb22dd858bdc8ff7903946678e53d82c
2019-09-24 08:02:50 +00:00
Dmitry Batkovichandintellij-monorepo-bot ef54a16d1e fix testdata
GitOrigin-RevId: b96781775bd0583ebc134e75214189ec69717a04
2019-09-23 11:02:12 +00:00
Anna Kozlovaandintellij-monorepo-bot cf944efffb java: adjusted "Cannot resolve method" message (IDEA-206898)
GitOrigin-RevId: 40fc7d00d6bcc4792dc097dde63dd40d08864068
2019-07-10 23:02:59 +03:00
Artemiy Sartakovandintellij-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 Sartakovandintellij-monorepo-bot 02f788a66a MethodReturnTypeFix: fixed highlighting for LightAdvHighlightPerformanceTest#testAClassLoader (IDEA-216275)
GitOrigin-RevId: e374c60430bcb6230ad4042cc80682dddbab1e16
2019-07-04 09:02:24 +03:00
Artemiy Sartakovandintellij-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
Anna Kozlovaandintellij-monorepo-bot aaf3c99ae8 shrink operator applicability highlighting
GitOrigin-RevId: 241ea28f87e758dc939fcdc496e810cc054480df
2019-07-04 01:31:35 +03:00
Tagir Valeevandintellij-monorepo-bot 3930aa3a6f ControlFlowUtil#internalDepthFirstSearch: rewrite subroutine tracking
Now every graph edge is accompanied with subroutine stack.
Also shared mutable state is removed from instructions (now it's local to DFS procedure).
Fixes IDEA-201093 Unreachable bug in three try catch while two have finally

GitOrigin-RevId: b600ba63e2da315c9830836adcdc4d8fecf92ca3
2019-07-02 06:52:16 +03:00
Rustam Vishnyakovandintellij-monorepo-bot 123242c4b2 EditorConfig documentation test
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
2019-06-16 04:03:21 +03:00
Egor Zhdanandintellij-monorepo-bot c1813cfb52 Cleanup: NotNull/Nullable
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-16 04:02:08 +03:00
Anna Kozlovaandintellij-monorepo-bot 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 Zhdanandintellij-monorepo-bot 39d2d77155 Cleanup: NotNull/Nullable
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-13 03:14:35 +03:00
Julia Beliaevaandintellij-monorepo-bot 3fee046d20 [vcs-log] cleanup RootCellRenderer
GitOrigin-RevId: bba216626193ac756cd133b8ae9bc4e577abea42
2019-06-10 04:10:14 +03:00
Eldar Abusalimovandintellij-monorepo-bot dcaeb8f8c7 OC-4061: ApplicationUtil: Make runWithCheckCanceled() return result
GitOrigin-RevId: 3aa9f23cc5097e644eddf82a4faca669759b4760
2019-06-10 04:09:35 +03:00
Roman Shevchenkoandintellij-monorepo-bot d08658cd55 [java] text block literals: feature highlighting (IDEA-215312)
GitOrigin-RevId: c821907a3b48fcbe19f6d9409b87ce1a4bc3dc50
2019-06-04 16:19:31 +03:00
Tagir Valeev eefd518316 Final field referenced from anonymous class argument list: continue search instead of return
Fixed: IDEA-208030 False positive Variable might not have been initialized
2019-03-01 19:02:48 +07:00
Pavel Dolgov 974a946128 Java: No deprecation warning when declaration and usage are within the same top-level class, JLS 9.6.4.6 (IDEA-131480) 2019-02-26 17:09:11 +03:00
Tagir Valeev 8b03dc8d47 IDEA-207296 Good code red: exception never thrown in the corresponding try block 2019-02-22 17:07:27 +07:00
Tagir Valeev 9e2e512f6b IDEA-192201 Bad code is green: inner class object creation 2019-02-01 12:29:10 +07:00
Anna.Kozlova 361f188984 highlighting of overriding methods: reorder warnings (IDEA-199315) 2019-01-07 19:09:18 +01:00
Roman Shevchenko fdf6239bfc Cleanup (formatting) 2018-11-08 17:12:29 +01:00
Roman Shevchenko 5d10b37246 [java] enhanced 'switch' statements: basic highlighting (IDEA-196643) 2018-11-02 18:22:34 +01:00
Roman Shevchenko 95b4898527 Cleanup (formatting) 2018-11-02 18:09:05 +01:00
Pavel Dolgov e6e432446a Java: Highlight unreachable assignment of array element (IDEA-199556) 2018-10-26 13:11:13 +03:00
Anna Kozlova 107a789bea highlighting: mark default annotation value used for implicit calls (IDEA-71133) 2018-06-21 13:50:19 +03:00
Tagir Valeev 62792959f0 More tests for this handling in javac 2018-06-08 13:27:58 +07:00
Tagir Valeev 51af524343 LocalsOrMyInstanceFieldsControlFlowPolicy: allow parentheses
See also IDEA-156926, JDK-8156180
2018-06-07 17:55:13 +07:00
Tagir Valeev d90e0b79e5 LocalsOrMyInstanceFieldsControlFlowPolicy#isLocalOrMyInstanceReference extracted
Fixes parentheses handling like (this).x. Review ID: IDEA-CR-33345
2018-06-07 16:11:00 +07:00
Tagir Valeev 698afa3b24 LocalsOrMyInstanceFieldsControlFlowPolicy: disallow qualified this
According to JLS Chapter 16 qualified "this" is not considered as reference to field in definite assignment analysis
Fixes IDEA-193386 Good code is red: Variable may not have been initialized
2018-06-07 11:28:07 +07:00
Roman Shevchenko 57fb172991 Cleanup (warnings; formatting) 2018-05-18 16:36:00 +03:00
Tagir Valeev 0418d57ade Error is reported when qualified this is used to initialize a final variable
Fixes IDEA-191686 Bad code is green (cannot assign a value to final variable)
2018-05-10 13:03:40 +07:00
Anna.Kozlova 51a2d549b2 highlight only method name on unhandled exception (IDEA-190912) 2018-04-25 21:11:38 +02:00
Tagir Valeev f48446e00b ControlFlowAnalyzer: do not exclude polyadic operands after always true/false operand
Fixes IDEA-190766 Final field reassignment problems in always true/always false polyadic chains
Review ID: IDEA-CR-29499
2018-04-23 17:54:41 +07:00
Anna.Kozlova 157a19c220 new expression: keep calm with invalid code (IDEA-189834) 2018-04-13 16:30:47 +02:00
Roman Shevchenko b6e21af7ac [java] raw string literals: language level check (IDEA-189075) 2018-04-12 17:26:34 +02:00
Anna Kozlova bea45461b0 provide special colors for statically imported members (IDEA-98499) 2018-03-07 08:02:41 +01:00
Tagir Valeev f5975ad8a2 Variable finality highlighting fixes
Unreachable branches are analyzed for twice assignment, but constants are evaluated.
Fixes IDEA-186321 Bad code green: non-iterating for-loop update
Fixes IDEA-186304 good code red: field might not have been initialized in unreachable branch
Fixes (mostly) IDEA-186305 good code red: variable might already have been assigned to
2018-02-17 12:35:03 +07:00
Tagir Valeev 63231c630d IDEA-186381 bad code green: variable might already have been assigned
Fixed parentheses handling on the left-side of assignment and in unary operations
Fixed error message priority
2018-02-09 12:45:18 +07:00
Tagir Valeev c8f3d1e20c ControlFlowUtil#isVariableAssignedInLoop: evaluate constant conditions
Fixes IDEA-186306 good code red: variable might be assigned in loop
2018-02-08 13:29:49 +07:00