InteractiveFaultLocalization / iFL4Eclipse

iFL for Eclipse is an Eclipse plug-in for supporting interactive fault localization for Java projects developed in this environment.
Eclipse Public License 2.0
3 stars 1 forks source link

java.lang.UnsupportedOperationException while filtering in case of undefined elements #210

Closed brita-sed closed 3 years ago

brita-sed commented 3 years ago

Precondition

Steps

  1. Select a project.
  2. Click iFL button.
  3. In the generated csv file delete some rows.
  4. Load scores -> load this modified csv.
  5. Click Hide undefined button to show undefined scored elements.
  6. Select some element.
  7. Click "Show ordering list" button.
  8. Move attributes to the right table.
  9. Close iFL tab.

Expected results

Received results

!ENTRY org.eclipse.ui.workbench 4 2 2021-05-13 17:48:36.088 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench". !STACK 0

java.lang.UnsupportedOperationException
    at org.eclipse.sed.ifl.util.wrapper.Defineable.getValue(Defineable.java:18)
    at org.eclipse.sed.ifl.ide.gui.element.SelectedElementUI.originChanged(SelectedElementUI.java:198)
    at org.eclipse.sed.ifl.ide.gui.ScoreListUI.contentsChanged(ScoreListUI.java:436)
    at org.eclipse.sed.ifl.ide.gui.ScoreListUI.setMethodScore(ScoreListUI.java:422)
    at org.eclipse.sed.ifl.view.ScoreListView.refreshScores(ScoreListView.java:41)
    at org.eclipse.sed.ifl.control.score.ScoreListControl.refreshView(ScoreListControl.java:407)
    at org.eclipse.sed.ifl.control.score.ScoreListControl.lambda$11(ScoreListControl.java:392)

Related issues:

Environment:

Dhorvath1294 commented 3 years ago

https://github.com/InteractiveFaultLocalization/iFL4Eclipse/releases/tag/V3.0.210.1

brita-sed commented 3 years ago

The bug has been corrected:

undefined_soring_corrected