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

Key: IDEA-19685
Type: Bug Bug
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: Gordon Tyler
Votes: 0
Watchers: 1
Operations

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

Good code red: Generic iteration in JDK6 module using JDK6 module

Created: 19 Sep 08 00:48   Updated: 19 Sep 08 12:40
Component/s: Editor. Error Highlighting

Build: 7,941
Severity: Medium


 Description  « Hide
Project setup:
  • ModuleA: JDK5, language level 5.0, contains custom collection class with a generic parameter: LongMap<V>
  • ModuleB: JDK6, language level 5.0, contains code which iterates over the values() from LongMap<SomeType>.

Iteration code:

LongMap<SomeType> myMap;
for (SomeType foo : myMap.values()) { ... }

The 'for' line is marked with the following error: Required "SomeType", found "E".



 All   Comments   Work Log   Change History      Sort Order:
Gordon Tyler - 19 Sep 08 00:49
Woops, I meant "using JD5 module" in the title.