#383 Java 8 lamba expressions cause ClassNotFoundException

1.9.2.6
closed
1
2017-01-01
2016-12-21
No

This error was reported here on the Discussion Forum by Jesper Pipping:
https://sourceforge.net/p/robocode/discussion/116459/thread/4fb9b1e9

Description follows here:

Robocode seems to have a problem with Lambdas. When I try to run robocode with a robot that has a lambda passed as a method parameter, it fails with a ClassNotFoundException.

Here's a minimal case that shows the behaviour.
When this is on the classpath and Robocode is loaded, it will display an exception. When a battle is started, the robot will not be available.
If you comment out the line:
aLamdbdaMethod(o -> true);
...and rebuild, robocode will now start without exception and the robot is available to do battle.

Discussion

  • Flemming N. Larsen

    • Group: Future Release --> 1.9.2.6
     
  • Jesper Pipping

    Jesper Pipping - 2016-12-21

    I have tested the fix from version 1.9.2.6-Alpha on the original problem, and it appears to be resolved.

    Many thanks,
    Jesper

     
  • Flemming N. Larsen

    • status: open --> closed
     
  • Flemming N. Larsen

    Fixed with version 1.9.2.6

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks