You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something is wrong (since recently) with the error reporting from the taclet instantiation dialogue.
Reproducible
always
Steps to reproduce
Load the Contraposition example
Do a cut on bsum{int i;}(0, 4, i * i) = 42
Apply the rule bsum_split on one of the occurrences of the bsum.
Enter heap (sic!) in the instantiation for middle.
Press Apply.
Observe the error message: Index 4 out of bounds for length 1
KeY should complain that heap is not an integer.
The example has nothing to do with bsums. The point is that the taclet instantation window must have more than one entry and that an input error occurs in one of the lower fields.
Additional information
Stacktrace
```
java.lang.ArrayIndexOutOfBoundsException: Index 4 out of bounds for length 1
at de.uka.ilkd.key.proof.SVInstantiationParserException.getMessage(SVInstantiationParserException.java:37)
at de.uka.ilkd.key.control.instantiation_model.TacletInstantiationModel.getStatusString(TacletInstantiationModel.java:178)
at de.uka.ilkd.key.gui.TacletMatchCompletionDialog$DataTable.editingStopped(TacletMatchCompletionDialog.java:522)
at java.desktop/javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:152)
at de.uka.ilkd.key.gui.TacletMatchCompletionDialog$DataTable$InputEditor.fireEditingStopped(TacletMatchCompletionDialog.java:638)
at java.desktop/javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEditor.java:375)
at java.desktop/javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:234)
at de.uka.ilkd.key.gui.TacletMatchCompletionDialog.pushAllInputToModel(TacletMatchCompletionDialog.java:208)
at de.uka.ilkd.key.gui.TacletMatchCompletionDialog.pushAllInputToModel(TacletMatchCompletionDialog.java:200)
at de.uka.ilkd.key.gui.TacletMatchCompletionDialog$ButtonListener.actionPerformed(TacletMatchCompletionDialog.java:309)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
...
* origin/main:
adding test case for error messaging
remove sonarqube
Fix NPE while extracting recoder error position and use existing information better
Fix#3156
Fix proof view filter not applied on load
Description
Something is wrong (since recently) with the error reporting from the taclet instantiation dialogue.
Reproducible
always
Steps to reproduce
bsum{int i;}(0, 4, i * i) = 42
bsum_split
on one of the occurrences of the bsum.heap
(sic!) in the instantiation for middle.Apply
.Observe the error message:
Index 4 out of bounds for length 1
KeY should complain that heap is not an integer.
The example has nothing to do with bsums. The point is that the taclet instantation window must have more than one entry and that an input error occurs in one of the lower fields.
Additional information
Stacktrace
``` java.lang.ArrayIndexOutOfBoundsException: Index 4 out of bounds for length 1 at de.uka.ilkd.key.proof.SVInstantiationParserException.getMessage(SVInstantiationParserException.java:37) at de.uka.ilkd.key.control.instantiation_model.TacletInstantiationModel.getStatusString(TacletInstantiationModel.java:178) at de.uka.ilkd.key.gui.TacletMatchCompletionDialog$DataTable.editingStopped(TacletMatchCompletionDialog.java:522) at java.desktop/javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:152) at de.uka.ilkd.key.gui.TacletMatchCompletionDialog$DataTable$InputEditor.fireEditingStopped(TacletMatchCompletionDialog.java:638) at java.desktop/javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEditor.java:375) at java.desktop/javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:234) at de.uka.ilkd.key.gui.TacletMatchCompletionDialog.pushAllInputToModel(TacletMatchCompletionDialog.java:208) at de.uka.ilkd.key.gui.TacletMatchCompletionDialog.pushAllInputToModel(TacletMatchCompletionDialog.java:200) at de.uka.ilkd.key.gui.TacletMatchCompletionDialog$ButtonListener.actionPerformed(TacletMatchCompletionDialog.java:309) at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972) ...The text was updated successfully, but these errors were encountered: