Now in our code we do a get(Integer) to return the corresponding Map.Entry
Then we call .value() on it to get the String.
The problem is that Groovy isn't returning the Map.Entry in the get, but instead an Integer object instead and tries to call getValue() on it which that method doesn't exist on an Integer object.
Anyone have this happen to them before and have a solution?
We were trying to have the get() method return the Map.Entry object since that was the correct type from the get method. But instead it kept returning an int.
Based on stuff that gets generated it appears that the getMetaClass for that call was trying to return the wrong type (int), which we then try to cast to Map.Entry because that is what was expected.
Our solution was to get rid of all of our ListOrderedMap into other collection classes.