Commit Graph
61 Commits
Author SHA1 Message Date
anna 03da4cdaa0 access for private members through type parameter bound is forbidden in jdk7 (IDEA-88895) 2012-08-01 16:54:10 +02:00
Anna Kozlova 55b7c0f4fe testdata for IDEA-85887 2012-05-11 14:10:46 +04:00
anna 75c174955f warn about private/static modifiers inside local classes (IDEA-85567) 2012-05-03 11:36:21 +02:00
anna 20a7302fcd good code red: illegal generic type in instanceof fixed 2012-05-03 10:11:23 +02:00
anna 7c3f532d9c do not create another capture when not necessary; capture should be the same when substitutor define such dependency (IDEA-57340; IDEA-5731) 2012-05-03 09:19:02 +02:00
anna cf8ab78b59 testdata for IDEA-57339 2012-05-03 09:19:01 +02:00
anna 0ee759c3b8 test data fo IDEA-57337 2012-05-03 09:19:01 +02:00
anna e8b5fad3f6 IDEA-84377: check for recursive bounds 2012-05-02 12:07:12 +02:00
anna 817fc5aae4 simlify ? super ? wildcard (IDEA-63765) 2012-04-19 12:41:39 +02:00
anna ca8c474bf6 illegal generic type for instanceof checks (IDEA-76997) 2012-04-17 12:26:40 +02:00
anna 7a17222ff6 test data for (IDEA-70468) 2012-04-17 12:26:39 +02:00
anna 654f6cd973 replace <? extends Object> with <?> during substitution (IDEA-64775) 2012-04-16 14:24:33 +02:00
anna 0c15dccf23 good code red fixed 2012-04-16 14:24:32 +02:00
anna 9da3e3f81d test data for IDEA-72912 2012-04-14 19:14:01 +02:00
anna 27b6395f89 fix inference for object type arg 2012-04-05 19:08:45 +02:00
anna 9242d62213 good code is red: wildcard should check the bound if any in order to prove difference (IDEA-63291) 2012-04-05 19:08:45 +02:00
anna b706c5284e testdata for IDEA-74899 2012-04-05 19:08:44 +02:00
anna 5e682f1319 good code is red: take bounds into account during types agree (IDEA-76283) 2012-04-05 12:12:38 +02:00
anna dab1c48d59 additional testdata for inaccessible type params members from IDEA-66305 2012-04-05 09:57:05 +02:00
anna 3156fab144 jdk7 incompatibility: red good code is green: always check signature erasure equals for jdk7 (IDEA-66311)
add checks for param erasure for jdk6
2012-04-05 09:57:04 +02:00
anna a4e23d3546 good code red: do not allow unchecked conversions on deeper wildcard levels (IDEA-80386) 2012-04-03 19:19:44 +02:00
anna 6719c86450 good code red: do not create ? super Object constraint as nothing would match (IDEA-77991) 2012-04-03 19:19:43 +02:00
anna 0a99721ccb substitution should not expand captured unbounded type (IDEA-79360) 2012-03-30 11:11:07 +02:00
anna 6ea7222b14 ensure that cast won't be marked as redundant for jdk7 (IDEA-82002)
(is valid though for jdk6)
2012-03-29 20:04:23 +02:00
anna 8c852b28d5 unchecked warning: argument type doesn't depend on call substitutor (IDEA-82605) 2012-03-29 20:04:22 +02:00
anna 1563df17f1 red code is green wildcard problems ++(IDEA-66750;IDEA-75178;IDEA-73377) 2012-03-29 15:17:24 +02:00
anna 24d2eeb3d0 service to detect java version;
highlight access to private class members according to java version used (IDEA-83045)
2012-03-29 11:06:43 +02:00
anna 09246f5482 process captured wildcards (IDEA-82913) 2012-03-28 18:01:15 +02:00
anna bc7e569fa1 covariant return types: difference between java7 & java6 (IDEA-83599) 2012-03-28 13:27:06 +02:00
Roman Shevchenko 259c98c535 IDEA-70214 (forward lookup for type parameters) 2011-11-08 20:43:01 +01:00
anna 2bd262433b missed substitutor in hash code (IDEA-74581) 2011-09-27 15:55:24 +02:00
anna 9bd778fc21 test data for IDEA-74581 2011-09-26 12:45:06 +02:00
anna 18b6fe1bd4 check method signatures equality by erasure; do not check method names for constructors.
note that erasure of type parameter is erasure of its left bound (jls), so erasure (T extends A & B) != erasure (T extends B & A)
e.g. IDEA-74409
2011-09-23 08:00:09 +02:00
anna ca2c3bc539 SOE (IDEA-69752 ) 2011-09-06 11:54:45 +02:00
anna 008326cc84 forbid cast primitive to type parameter (IDEA-52484; IDEA-23260) 2011-08-25 19:26:02 +02:00
anna 9d4f40f5f5 additional test for (IDEA-65857; IDEA-62515 ) 2011-08-22 21:31:10 +02:00
anna 613f9fddae space (IDEA-67070) 2011-08-22 17:56:05 +02:00
anna 2e7f8bf8bb class types are not provably distinct when they belong to one hierarchy 2011-07-12 19:12:51 +04:00
anna 49d4914f57 unchecked casts: ignore extends wildcards with the same bound as corresponding type parameter bound (IDEA-71629) 2011-07-12 17:43:36 +04:00
anna ca8f1063b2 try narrowing conversion 2011-06-07 12:14:20 +04:00
anna 8f4a7ee0d0 interface 'overrides' object: methods with same erasure should be accepted (IDEA-67752) 2011-04-13 20:05:33 +02:00
anna 98568c1380 type arguments agree when one is type parameter and another is not any wildcard (IDEA-67427) 2011-04-12 15:17:39 +02:00
anna 70308b234e check for enclosing instance of type for top level extends type only (IDEA-65857) 2011-02-27 17:30:17 +01:00
anna 84e7a9ae7a unchecked warnings as fair inspection 2011-02-17 09:48:44 +01:00
anna 87e7f6aa02 add warning "unchecked generic array creation for vararg parameter" 2011-02-16 09:48:39 +01:00
anna 4b793a4f9f unbound wildcard is not provably distinct from any array type (IDEA-63447) 2010-12-22 17:13:51 +03:00
Alexey Kudravtsev 458ae21dcb test for IDEA-62529 2010-12-08 16:13:24 +03:00
anna 19ccd895cb super wildcard processing (IDEA-62529 ) 2010-12-08 12:40:10 +03:00
anna e1164f1314 private inner class can't be used in top class signature ( IDEA-57751) 2010-11-19 12:07:05 +03:00
anna 31cb911e3f generics: raw type should not be equal to param type (IDEA-60170) 2010-10-29 15:02:02 +04:00