Resolve ClassCastException in the Exploration Solution Representation
Stack Trace (sample)
java.lang.ClassCastException:
org.fortiss.af3.exploration.model.solutions.impl.ExplorationResultImpl
cannot be cast to org.fortiss.af3.exploration.model.ExplorationTarget
at
org.fortiss.af3.exploration.model.solutions.impl.SingleExplorationSolutionImpl.removeKey(SingleExplorationSolutionImpl.java:351)
at
org.fortiss.af3.exploration.alg.dse.Explorer.removeImplicitTargets(Explorer.java:232)
at
org.fortiss.af3.exploration.alg.dse.Explorer.explore(Explorer.java:132)
at
org.fortiss.af3.exploration.alg.backend.Opt4JDseBackend.executeDSE(Opt4JDseBackend.java:118)
at
org.fortiss.af3.exploration.backend.DseBackendHandler$1.run(DseBackendHandler.java:167)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:60)
!SUBENTRY 1 org.fortiss.af3.exploration 4 0 2018-10-22 18:33:36.663
!MESSAGE
org.fortiss.af3.exploration.model.solutions.impl.SingleExplorationSolutionImpl.removeKey(SingleExplorationSolutionImpl.java:351)
!SUBENTRY 1 org.fortiss.af3.exploration 4 0 2018-10-22 18:33:36.663
!MESSAGE
org.fortiss.af3.exploration.alg.dse.Explorer.removeImplicitTargets(Explorer.java:232)
!SUBENTRY 1 org.fortiss.af3.exploration 4 0 2018-10-22 18:33:36.663
!MESSAGE
org.fortiss.af3.exploration.alg.dse.Explorer.explore(Explorer.java:132)
!SUBENTRY 1 org.fortiss.af3.exploration 4 0 2018-10-22 18:33:36.663
!MESSAGE
org.fortiss.af3.exploration.alg.backend.Opt4JDseBackend.executeDSE(Opt4JDseBackend.java:118)
!SUBENTRY 1 org.fortiss.af3.exploration 4 0 2018-10-22 18:33:36.663
!MESSAGE
org.fortiss.af3.exploration.backend.DseBackendHandler$1.run(DseBackendHandler.java:167)
!SUBENTRY 1 org.fortiss.af3.exploration 4 0 2018-10-22 18:33:36.664
!MESSAGE org.eclipse.core.internal.jobs.Worker.run(Worker.java:60)
Dissection
The eoperation is wrongly implemented: When the key is removed the former value is returned, not the key…
(from redmine: issue id 3557, created on 2018-10-22, closed on 2018-10-23)