#102 compareTo() method with Image arguments crashes

v2.0.2
closed-fixed
5
2010-03-29
2010-02-04
Robert Pes
No

As per forum post, the compareTo() method with Image[] argument fails with a ClassCastException:

No Help will be available.java.lang.ClassCastException: com.tplan.robot.imagecomparison.search.SearchImageComparisonModule cannot be cast to java.lang.String
at com.tplan.robot.scripting.commands.impl.CompareToCommand.validate(CompareToCommand.java:169)
at com.tplan.robot.scripting.commands.impl.CompareToCommand.execute(CompareToCommand.java:310)
at com.tplan.robot.scripting.AbstractJavaTestScript.runScriptCommand(AbstractJavaTestScript.java:160)
at com.tplan.robot.scripting.DefaultJavaTestScript.compareTo(DefaultJavaTestScript.java:3198)
at com.tplan.robot.scripting.DefaultJavaTestScript.compareTo(DefaultJavaTestScript.java:3243)
at sandbox.MyTest.test(MyTest.java from MemoryJavaSourceObject:23)
at com.tplan.robot.scripting.interpret.java.JavaTestScriptInterpret.execute(JavaTestScriptInterpret.java:248)
at com.tplan.robot.scripting.ExecOrCompileThread.run(ExecOrCompileThread.java:51)

Discussion

  • Robert Pes

    Robert Pes - 2010-02-05

    Fixed and committed to CVS. Targeted for 2.0.3.

     
  • Robert Pes

    Robert Pes - 2010-02-05
    • status: open --> open-fixed
     
  • Robert Pes

    Robert Pes - 2010-03-29
    • status: open-fixed --> closed-fixed
     
  • Robert Pes

    Robert Pes - 2010-03-29

    Fix delivered in 2.0.3 on 29 March 2010.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks