Project

General

Profile

Bug #3557

Resolve ClassCastException in the Exploration Solution Representation

Added by Alexander Diewald about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
10/22/2018
Due date:
% Done:

100%

Estimated time:

Description

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...

History

#1 Updated by Alexander Diewald about 2 years ago

  • Status changed from New to Resolved
  • Assignee set to Anonymous
  • Target version changed from AF3 2.14 RC1 (Feature Freeze) to AF3 2.15 RC1 (Feature Freeze)
  • % Done changed from 0 to 100

Resolved. For testing, either download the exploration.alg plugin, or see the documentation of the "removeKey" method. It's a quite obvious mistake...

#2 Updated by Anonymous about 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF