Lines 13439-13445
Link Here
|
13439 |
String output = this.complianceLevel == ClassFileConstants.JDK1_6 ? |
13439 |
String output = this.complianceLevel == ClassFileConstants.JDK1_6 ? |
13440 |
"----------\n" + |
13440 |
"----------\n" + |
13441 |
"1. WARNING in Test.java (at line 3)\n" + |
13441 |
"1. WARNING in Test.java (at line 3)\n" + |
13442 |
" public class Test<Key, Value> extends LinkedHashMap<Key, Collection<Value>> {\n" + |
13442 |
" public class Test<Key, Value> extends HashMap<Key, Collection<Value>> {\n" + |
13443 |
" ^^^^\n" + |
13443 |
" ^^^^\n" + |
13444 |
"The serializable class Test does not declare a static final serialVersionUID field of type long\n" + |
13444 |
"The serializable class Test does not declare a static final serialVersionUID field of type long\n" + |
13445 |
"----------\n" + |
13445 |
"----------\n" + |
Lines 13451-13457
Link Here
|
13451 |
"3. WARNING in Test.java (at line 5)\n" + |
13451 |
"3. WARNING in Test.java (at line 5)\n" + |
13452 |
" public Collection<Value> get(Key k) { return null; }\n" + |
13452 |
" public Collection<Value> get(Key k) { return null; }\n" + |
13453 |
" ^^^^^^^^^^\n" + |
13453 |
" ^^^^^^^^^^\n" + |
13454 |
"Name clash: The method get(Key) of type Test<Key,Value> has the same erasure as get(Object) of type LinkedHashMap<K,V> but does not override it\n" + |
13454 |
"Name clash: The method get(Key) of type Test<Key,Value> has the same erasure as get(Object) of type HashMap<K,V> but does not override it\n" + |
13455 |
"----------\n" + |
13455 |
"----------\n" + |
13456 |
"4. ERROR in Test.java (at line 6)\n" + |
13456 |
"4. ERROR in Test.java (at line 6)\n" + |
13457 |
" Zork z;\n" + |
13457 |
" Zork z;\n" + |
Lines 13460-13466
Link Here
|
13460 |
"----------\n": |
13460 |
"----------\n": |
13461 |
"----------\n" + |
13461 |
"----------\n" + |
13462 |
"1. WARNING in Test.java (at line 3)\n" + |
13462 |
"1. WARNING in Test.java (at line 3)\n" + |
13463 |
" public class Test<Key, Value> extends LinkedHashMap<Key, Collection<Value>> {\n" + |
13463 |
" public class Test<Key, Value> extends HashMap<Key, Collection<Value>> {\n" + |
13464 |
" ^^^^\n" + |
13464 |
" ^^^^\n" + |
13465 |
"The serializable class Test does not declare a static final serialVersionUID field of type long\n" + |
13465 |
"The serializable class Test does not declare a static final serialVersionUID field of type long\n" + |
13466 |
"----------\n" + |
13466 |
"----------\n" + |
Lines 13472-13478
Link Here
|
13472 |
"3. ERROR in Test.java (at line 5)\n" + |
13472 |
"3. ERROR in Test.java (at line 5)\n" + |
13473 |
" public Collection<Value> get(Key k) { return null; }\n" + |
13473 |
" public Collection<Value> get(Key k) { return null; }\n" + |
13474 |
" ^^^^^^^^^^\n" + |
13474 |
" ^^^^^^^^^^\n" + |
13475 |
"Name clash: The method get(Key) of type Test<Key,Value> has the same erasure as get(Object) of type LinkedHashMap<K,V> but does not override it\n" + |
13475 |
"Name clash: The method get(Key) of type Test<Key,Value> has the same erasure as get(Object) of type HashMap<K,V> but does not override it\n" + |
13476 |
"----------\n" + |
13476 |
"----------\n" + |
13477 |
"4. ERROR in Test.java (at line 6)\n" + |
13477 |
"4. ERROR in Test.java (at line 6)\n" + |
13478 |
" Zork z;\n" + |
13478 |
" Zork z;\n" + |
Lines 13483-13490
Link Here
|
13483 |
new String[] { |
13483 |
new String[] { |
13484 |
"Test.java", |
13484 |
"Test.java", |
13485 |
"import java.util.Collection;\n" + |
13485 |
"import java.util.Collection;\n" + |
13486 |
"import java.util.LinkedHashMap;\n" + |
13486 |
"import java.util.HashMap;\n" + |
13487 |
"public class Test<Key, Value> extends LinkedHashMap<Key, Collection<Value>> {\n" + |
13487 |
"public class Test<Key, Value> extends HashMap<Key, Collection<Value>> {\n" + |
13488 |
" public Collection<Value> put(Key k, Value v) { return null; }\n" + |
13488 |
" public Collection<Value> put(Key k, Value v) { return null; }\n" + |
13489 |
" public Collection<Value> get(Key k) { return null; }\n" + |
13489 |
" public Collection<Value> get(Key k) { return null; }\n" + |
13490 |
" Zork z;\n" + |
13490 |
" Zork z;\n" + |