peichhorn/lombok-pg — Issue #37: @Yield bug
Author: nicholas22
Created: 2011-10-17 16:40:19+00:00
State: open

I'm getting incorrect (missing) values when using a yielder as such:

/**
* Returns all values, or an empty array if no values exist
*/
public Iterable values()
{
for (T key : map.keySet())
{
Map subMap = map.get(key);
for (K subkey : subMap.keySet())
{
V value = subMap.get(subkey);
yield(value);
}
}
}

This is of a MultiMap class, can provide more concrete code if necessary. Have a look what's going on, this works OK if I put these in a list and return them. Maybe nested fors are not buggy?