Commit Graph

48 Commits

Author SHA1 Message Date
Anna Kozlova 5d8e3f67a1 don't override first field by same named second (IDEA-174523) 2017-06-16 11:53:53 +03:00
Pavel Dolgov 16b1765f7f Java: Better handling of unreachable code (IDEA-172642) 2017-05-23 12:28:44 +03:00
Roman Shevchenko 74daf8d522 [java] improves "unsupported language level" message (IDEA-168859) 2017-03-06 11:27:27 +01:00
Anna.Kozlova bdb718f7cb fix visibility of private inner classes in annotations arguments of a sibling class (IDEA-168927) 2017-03-02 18:30:06 +01:00
Anna.Kozlova 1cf721e0ce string comparison: evaluate based on equals comparison (IDEA-160823) 2016-12-28 18:49:05 +01:00
Anna.Kozlova 9a669f36ad error if static on-demand import references non-class (IDEA-160943) 2016-12-28 17:08:19 +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 df3abfd8c3 check constructor only implicitly called constructor (IDEA-164500) 2016-11-25 12:50:54 +01:00
Anna Kozlova e2e3d94711 provide accessibility fixes for problems inside annotations (IDEA-148864) 2016-09-15 13:55:49 +03:00
Alexey Kudravtsev 0798a43f7d Use resolveImaginarySuperCallInThisPlace() instead of enumerating all super class constructors; find usages of overloaded ctr should find only correct implicit super calls 2016-09-01 16:59:57 +03:00
Anna Kozlova 5774dbf0cd ambiguity of implicit constructor call (IDEA-160248) 2016-08-25 17:36:03 +03:00
Anna.Kozlova f9c6e0fda2 enum constants should be checked to implement enum interfaces 2016-07-22 15:05:47 +02:00
Anna Kozlova 7896eddc3b this and super are not available inside anonymous class args 2016-07-01 12:44:39 +03:00
Anna Kozlova a82e3bb5e6 ignore parenthesis when building control flow (IDEA-156926) 2016-06-01 21:19:15 +03:00
Anna.Kozlova fc14dddfd8 check for abstract method implemented optimized: don't go through hierarchy if superClass is not abstract and there is no interfaces, would also fix asm implementations with 'broken' erasures inside 2016-04-11 21:51:18 +02:00
Anna.Kozlova 66a8aa11b8 collect unhandled exceptions from enum constructor (IDEA-154283) 2016-04-07 15:13:00 +02:00
Anna.Kozlova 56a3a1ffa4 move operator assignment check for object to javac quirks inspection with fix (IDEA-154209) 2016-04-06 17:15:12 +02:00
Anna Kozlova 1aa1c9a921 non-static fields should not be available in static context even if they are compile time constants (IDEA-150030) 2016-03-14 21:34:56 +01:00
Anna Kozlova e32cc02725 inherit unrelated concrete methods with same signature error (IDEA-67838) 2016-01-07 16:06:39 +01:00
Anna Kozlova 5ae9332d1a allow compile-time constants to be used from static field initializers (IDEA-142243) 2015-10-06 17:36:57 +02:00
Anna Kozlova 3d96977c2c unreachable code: qualified fields and array access in assignments (IDEA-144428) 2015-08-28 18:33:15 +03:00
Roman Shevchenko de416d4f7f Cleanup (test moved to a correct location) 2015-07-18 23:13:56 +03:00
Anna Kozlova 51404269ff ensure left expression is processed before right in assignments (IDEA-140772) 2015-07-03 14:57:13 +03:00
Roman Shevchenko fd0061d246 java: receiver parameter highlighting 2015-07-02 15:29:22 +03:00
Anna Kozlova 719bfffcae don't override protected methods from Object in interfaces (IDEA-140804) 2015-05-28 19:42:10 +02:00
Anna Kozlova ad26842083 non-reifiable type check: testdata for IDEA-139091 2015-04-27 09:32:26 +02:00
Anna Kozlova 7e0c4959db show error for enums constants referenced from instance field initializer (IDEA-136196) 2015-02-10 17:55:59 +01:00
Anna Kozlova 18e6a082d9 show error for enums without constants but with abstract methods 2015-02-10 17:55:58 +01:00
Anna Kozlova 598f9219a6 testdata for IDEA-61415 2014-06-09 15:32:53 +04:00
Anna Kozlova 6deb5bb508 testdata for IDEA-65473 2014-06-09 15:32:52 +04:00
Roman Shevchenko 6396cd8927 IDEA-125900 (resolve of synthetic enum methods in class files fixed) 2014-06-05 13:18:03 +04:00
Roman Shevchenko b8be4e29d9 IDEA-125805 (language level increase quickfix for switch on enum/string) 2014-06-02 20:14:07 +04:00
Anna Kozlova 1471847207 testdata for IDEA-79251 2014-04-16 21:23:46 +02:00
Anna Kozlova 06d6ad7180 static in interfaces before 1.8 (IDEA-123252) 2014-04-01 17:04:14 +02:00
Anna Kozlova c464f19d9c IDEA-122129 agentmain method is highlighted as unused 2014-03-14 20:43:59 +01:00
Anna Kozlova c2bee641c0 restore error on diamonds under 1.6 (IDEA-121377) 2014-02-28 20:07:10 +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
Anna Kozlova 2076c69eeb IDEA-120636 Wrong "enum cannot be instantiated" 2014-02-12 15:07:28 +01: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 aaa813a877 resolve conflicting names (IDEA-119412) 2014-01-21 18:22:42 +04:00
anna 6d3989e21d IDEA-111613 Bad code is green: IDEA doesn't show 'Unhandled exception' error when a method with parametrized 'throws' section is used with wildcard type argument 2013-08-06 13:49:10 +02:00
anna 30dce02dfc primitive/class conversions are available since language level 1.5 (IDEA-111451) 2013-08-05 18:16:24 +02:00
anna 080504137e IDEA-110917 Incorrect "Redundant Cast" on Complex Conditional 2013-07-24 17:14:30 +02:00
Anna Kozlova 6c6a56bc8b check annotation params accessibility (IDEA-108584) 2013-06-10 18:21:06 +04:00
Anna Kozlova 8741f3f1d6 non-static members access from implicitly static context fixed (IDEA-108285) 2013-06-03 22:25:26 +04:00
anna b421d595a9 override clone specifics (IDEA-67754) 2013-04-30 18:12:20 +02:00
anna 8ed5a8175f red code is green: impossible to have 2 signatures with same signature and different primitive return types (IDEA-102866)
(cherry picked from commit c4093d0e8a1021f80fafb3c6b1fc35388da46ac6)
2013-03-15 21:38:19 +01:00
anna f9565522cb split tests according to expected language level 2013-02-08 11:34:24 +01:00