CachedRowSetDataProvider Bug when removeRow and appendRow called without commitChanges

Here’s the test case and stack trace

    public String btnTest_action() {

        getMaintdayitemDataProvider().removeRow(getMaintdayitemDataProvider().getCursorRow());
        getMaintdayitemDataProvider().appendRow();
        getMaintdayitemDataProvider().cursorLast(); //
        return null;
    }

java.lang.IllegalArgumentException: CachedRowSetRowKey[2]
        at com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorRow(CachedRowSetDataProvider.java:346)
        at com.sun.data.provider.impl.CachedRowSetDataProvider.cursorLast(CachedRowSetDataProvider.java:415)
        at precisweb.maintday.btnTest_action(maintday.java:678)


About this entry