History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-19727
Type: Bug Bug
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: David Forbes
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Good Code Red: implementing parameterized list interface with raw type

Created: 22 Sep 08 18:45   Updated: 22 Sep 08 18:59
Component/s: Editor. Error Highlighting

File Attachments: 1. Zip Archive Error Demo.zip (16 kb)

Environment: Windows XP SP3

Build: 8,810
Severity: High


 Description  « Hide
The following is syntactically correct, and compiles in IDEA, but the editor flags an error in MyBeanContext

public class MyBeanContext
extends BeanContextSupport
implements MyListInterface {

public Object set( int index, Object element ) { return null; }

public boolean addAll( int index, Collection c ) { return false; }

public MyListMember get( int index ) { return null; } }

public int indexOf( Object o ) { return 0; }

public int lastIndexOf( Object o ) { return 0; } }

public ListIterator listIterator() { return null; }

public ListIterator listIterator( int index ) { return null; } }

public MyListMember remove( int index ) { return null; }

public void add( int index, Object element ) {
}

public List subList( int fromIndex, int toIndex ) { return null; } }

}

public interface MyListInterface<E extends MyListMember>
extends List<E> {
}

public interface MyListMember {
}



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.