Error highlighting: False positive(?)
This code is marked as wrong ("section" is underlined red) saying
"foreach not applicable to type y.option.OptionSection".
But OptionSection extends Vector - so I think it should work (and it
compiles).
for ( Object sectionItem : section ) {
}
Any comments?
Johannes Schneider
Please sign in to leave a comment.
Check your JDK. If it's 1.4, the Vector doesn't extend Iterable, and IDEA is right to complain. Otherwise, it's a very surprising bug.
--Dave Griffith
It is also a well-known problem with multijdk projects.
Eugene Vigdorchik wrote:
Now I also know it (well)...
Still in most cases it should not happen, and if you could consolidate a small project where this could be reproduced, I would certainly look into the problem.