Commit Graph

247 Commits

Author SHA1 Message Date
Anna.Kozlova 2e7f05efd0 advHighlighting -> light test case 2019-01-02 16:35:41 +01:00
Anna.Kozlova df236e8c91 check compiler version (IDEA-163104)
compiler will be chosen as max(module compiler, project compiler)
2018-11-06 10:47:58 +01:00
Anna Kozlova 017e3e4781 fix testdata 2018-06-20 09:56:55 +03:00
Anna.Kozlova 51a2d549b2 highlight only method name on unhandled exception (IDEA-190912) 2018-04-25 21:11:38 +02:00
Anna.Kozlova 969e90f34a check inner class access for top level classes only (IDEA-188716) 2018-04-23 19:13:30 +02:00
peter b2b723fa44 speedup java class resolve a bit
don't even look for class in on-demand imports when named import matches
2018-04-16 18:59:52 +02:00
Roman Shevchenko 9f05380c48 [java] merges language level name and JDK version description 2018-01-18 13:54:45 +01:00
Anna.Kozlova d58653b20f forbid access through outer class for anonymous (IDEA-182430) 2017-11-20 17:40:45 +01:00
Anna.Kozlova db4350173c inaccessible error on nested annotations for class (IDEA-181792) 2017-11-14 18:27:34 +01:00
Anna.Kozlova 4a014aafe4 testdata to ensure no unchecked warning when not-compilable (IDEA-CR-25757) 2017-10-19 13:48:52 +02:00
Anna.Kozlova 79b362e643 precise rethrow: runtime exception special case for generic declared type only (IDEA-180035) 2017-10-10 18:17:29 +02:00
Pavel Dolgov 7d30d532c6 Java: Don't report the catch section as unreachable where a subclass of declared exception can be thrown (IDEA-175863) 2017-07-18 14:25:32 +03:00
Maxim.Mossienko 7387ee525b update tests and testdata to reflect newer mock jdk 1.7 2017-06-13 15:09:42 +02:00
Anna.Kozlova d680d55c99 register local refs to java if references are registered in literal expression by foreign contributor (e.g. reflection, data providers, etc) (IDEA-171495) 2017-04-21 20:03:27 +02:00
Anna.Kozlova 2159d803f8 add javac quirks case for object-primitive comparison (IDEA-168944) 2017-03-17 16:42:50 +01:00
Anna.Kozlova 7f4059541a precise rethrow: ensure unreachable catch sections do not participate in precise rethrow 2017-03-08 12:37:00 +01:00
Anna.Kozlova 71cc26e25c precise rethrow with multiple exceptions in the try block (IDEA-169273) 2017-03-07 17:16:53 +01:00
Roman Shevchenko 74daf8d522 [java] improves "unsupported language level" message (IDEA-168859) 2017-03-06 11:27:27 +01:00
Anna.Kozlova a59edc4e4a accessibility check for annotation parameters: treat parameters as they are outside the class (IDEA-165904) 2016-12-27 14:47:58 +01:00
Anna.Kozlova 57ec346668 precise rethrow: special case for catch Exception (IDEA-164241) 2016-12-06 12:13:22 +01:00
Anna.Kozlova 88b28233e8 variable array fix: don't create fix if it can't be applied when there is no variable in the context
EA-54266 - ISE: VariableArrayTypeFix.getText
2016-10-12 18:22:05 +02:00
Anna.Kozlova ef162f71c7 fix testdata 2016-10-05 10:31:37 +02:00
Pavel Dolgov 96a576963a Java control flow: Fixed false positive for unreachable code in multi-catch clause (IDEA-138978) 2016-07-25 19:19:45 +03:00
Anna.Kozlova d8def3334c exceptions declared by try with resources should collect all close methods from the resource class and choose exceptions in the intersection (IDEA-158762) 2016-07-21 13:47:22 +02:00
Anna.Kozlova f27c5080f6 ensure method signature is highlighted when changes are made inside method body but the actual highlighting is performed on class level (IDEA-141532; IDEA-158137) 2016-07-13 11:43:16 +02:00
Anna Kozlova 1fcb534fcb highlight diamonds as type parameter list (IDEA-156859) 2016-06-06 17:52:24 +03:00
Anna.Kozlova a1ae485b22 diamond: reject diamonds nested inside type arguments as soon as possible (IDEA-155153) 2016-04-25 14:41:56 +02:00
Anna.Kozlova bb6394162a warn about compilable code which would lead to runtime ClassCastException in addition to unchecked warning which nobody understands (IDEA-154345) 2016-04-15 18:43:24 +02:00
Anna.Kozlova 5f73492b7f fix parenthesis expr during precise rethrow detection 2016-04-04 21:24:28 +02:00
Anna.Kozlova b1a0d687df old inference: include type parameter's bounds in result as intersection if inference from parent type was started (IDEA-153411) 2016-03-22 19:22:42 +01:00
Anna.Kozlova cdc7349caa unchecked warnings: don't warn about generics array creation if arg of array type is found (IDEA-153122) 2016-03-17 18:04:01 +01:00
Roman Shevchenko e4a0f4548b [java] allows up to 5 unused variables per scope 2016-03-16 19:02:04 +01:00
Roman Shevchenko d8b29b8401 [java] connect resolution of generics in resource closer method (IDEA-150607) 2016-01-20 12:43:56 +01:00
Anna Kozlova f29517700f highlight type parameter extends list errors: check once for all refs in refList not to repeat ourselves 2015-10-14 11:12:30 +02:00
Roman Shevchenko 78acdfef1f [java] numeric literal underscores should not affect highlighting (IDEA-145942) 2015-10-05 12:55:06 +02:00
Anna Kozlova 0426946f75 varargs formal parameters inaccessible: extend for non-parameterized methods (IDEA-140600) 2015-09-03 20:30:57 +03:00
Anna Kozlova c97ce52826 formal varargs not accessible check (jls) 2015-08-18 12:34:40 +02:00
Anna Kozlova 676c477fab overload resolution: symmetry (IDEA-143310) 2015-08-18 12:34:29 +02:00
Roman Shevchenko d926c3cca3 Cleanup (highlighting tests unified) 2015-07-01 00:21:44 +03:00
Alexey Kudravtsev 9e99eabbb6 IDEA-141923 Errors in for-each statement header aren't highlighted if there're errors in its body 2015-06-26 14:42:13 +03:00
Anna Kozlova b0f1e6f2be determining enclosing instances for inner class instance creation expressions: accept all qualified super exprs, invalid are checked separately (IDEA-139880) 2015-05-11 18:04:31 +02:00
Anna Kozlova 4587a18b23 testdata fixed 2015-04-28 16:46:37 +02:00
Anna Kozlova 21f187bd44 separate capture conversion from substitution 2015-04-27 09:32:20 +02:00
Anna Kozlova 511a356788 reifiable types: ensure that generic types with only all type params as unbound wildcards are treated as reifiable (IDEA-139577) 2015-04-24 20:33:37 +02:00
Anna Kozlova 4597494195 import of inner classes through should get raw substitutor from outr class if applicable (IDEA-121166) 2015-03-20 21:09:04 +01:00
Anna Kozlova 6ad1810157 unchecked warning explanation (IDEA-126457) 2015-03-16 13:34:32 +01:00
Anna Kozlova d631901d7e distinguish capture in presentable text 2015-02-19 18:07:56 +01:00
Anna Kozlova e9beee7c66 warn when accessing static method of interfaces in language levels prior to 1.8 (IDEA-134814) 2014-12-29 18:57:41 +01:00
Anna Kozlova bcf0f87453 raw diamond substitution: infer Object for jdk < 1.8 (IDEA-133733) 2014-12-02 12:49:55 +01:00
Anna Kozlova cbd8be4b8e conflict resolution: missed null checks for diamonds non-physical static methods (IDEA-132534) 2014-11-07 11:57:07 +01:00