Community
Participate
Working Groups
Try inlining findNestedRepeatBounds(). ----------------- Bug.java ---------------- class Bug { class Element{ int cachedFieldIndex; } class RepeatingGroup{ int size(){ return 0; } } class Format{ Object getValueAt(int index){ return null; } } class State{ Format getFormat(){ return null; } } int findNestedRepeatBounds(final Format fmt) { return((RepeatingGroup)fmt.getValueAt(findVariable().cachedFieldIndex)).size(); } Element findVariable(){ return null; } { State state=null; Bug other=null; int count = other.findNestedRepeatBounds(state.getFormat()); } }
In 3.3 this results in { State state=null; Bug other=null; int count = ((RepeatingGroup)state.getFormat().getValueAt(other.findVariable().cachedFieldIndex)).size(); } which seems correct, no?
I need more input here...
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.