Code: Select all
Exception in thread "AWT-EventQueue-0" java.lang.Error: Bug
at ojvm.operations.BytecodeInterpreter.visit_anewarray(BytecodeInterpreter.java:2174)
at ojvm.loading.instructions.Ins_anewarray.accept(Ins_anewarray.java:31)
at ojvm.machine.ControlUnit.run(ControlUnit.java:167)
at org.hacker.worm.HackVMWormSpinalCord.think(HackVMWormSpinalCord.java:119)
at org.hacker.worm.WormBot.think(WormBot.java:21)
at org.hacker.worm.WormModel.moveBot(WormModel.java:84)
...
Code: Select all
package testbot;
public class Testbot {
public int think(int dx, int dy, int[][] board, int x, int y, int dir, int[][] enemies)
{
//this crashes
Object [] tmp2 = new Object[1];
return dir;
}
}
Any ideas? Does this use a bytecode that is unimplemented in HackJVM?