arrays of String aren't allowed yet? uncommenting this line causes an exception:
public String[] faction2eng={"ME","HIM","NEUTRAL"};
ojvm.util.BadDescriptorE: java/lang/String
at ojvm.util.Descriptor.<init>(Descriptor.java:81)
at ojvm.util.Descriptor.<init>(Descriptor.java:76)
at ojvm.operations.BytecodeInterpreter.visit_anewarray(BytecodeInterpreter.java:2179)
at ojvm.loading.instructions.Ins_anewarray.accept(Ins_anewarray.java:31)
at ojvm.machine.ControlUnit.run(ControlUnit.java:169)
at org.hacker.engine.war.HackVMWarSpinalCord.initClass(HackVMWarSpinalCord.java:82)
at org.hacker.engine.war.HackVMWarSpinalCord.<init>(HackVMWarSpinalCord.java:54)
at org.hacker.engine.war.HackVMWarSpinalCordFactory.createSpinalCord(HackVMWarSpinalCordFactory.java:42)
at org.hacker.engine.war.Faction.addUnit(Faction.java:44)
at org.hacker.engine.war.order.BuildOrder.execute(BuildOrder.java:53)
at org.hacker.engine.war.unit.Unit.advance(Unit.java:82)
at org.hacker.engine.war.WarModel.step(WarModel.java:77)
at org.hacker.engine.GameUI.stepToIt(GameUI.java:166)
at org.hacker.engine.GameUI$5.run(GameUI.java:99)
Exception in thread "Thread-4" java.lang.Error: Bug
at ojvm.operations.BytecodeInterpreter.visit_anewarray(BytecodeInterpreter.java:2189)
at ojvm.loading.instructions.Ins_anewarray.accept(Ins_anewarray.java:31)
at ojvm.machine.ControlUnit.run(ControlUnit.java:169)
at org.hacker.engine.war.HackVMWarSpinalCord.initClass(HackVMWarSpinalCord.java:82)
at org.hacker.engine.war.HackVMWarSpinalCord.<init>(HackVMWarSpinalCord.java:54)
at org.hacker.engine.war.HackVMWarSpinalCordFactory.createSpinalCord(HackVMWarSpinalCordFactory.java:42)
at org.hacker.engine.war.Faction.addUnit(Faction.java:44)
at org.hacker.engine.war.order.BuildOrder.execute(BuildOrder.java:53)
at org.hacker.engine.war.unit.Unit.advance(Unit.java:82)
at org.hacker.engine.war.WarModel.step(WarModel.java:77)
at org.hacker.engine.GameUI.stepToIt(GameUI.java:166)
at org.hacker.engine.GameUI$5.run(GameUI.java:99)
ojvm.util.BadDescriptorE: java/lang/String
at ojvm.util.Descriptor.<init>(Descriptor.java:81)
at ojvm.util.Descriptor.<init>(Descriptor.java:76)
at ojvm.operations.BytecodeInterpreter.visit_anewarray(BytecodeInterpreter.java:2179)
at ojvm.loading.instructions.Ins_anewarray.accept(Ins_anewarray.java:31)
at ojvm.machine.ControlUnit.run(ControlUnit.java:169)
at org.hacker.engine.war.HackVMWarSpinalCord.initClass(HackVMWarSpinalCord.java:82)
at org.hacker.engine.war.HackVMWarSpinalCord.<init>(HackVMWarSpinalCord.java:54)
at org.hacker.engine.war.HackVMWarSpinalCordFactory.createSpinalCord(HackVMWarSpinalCordFactory.java:42)
at org.hacker.engine.war.Faction.addUnit(Faction.java:44)
at org.hacker.engine.war.order.BuildOrder.execute(BuildOrder.java:53)
at org.hacker.engine.war.unit.Unit.advance(Unit.java:82)
at org.hacker.engine.war.WarModel.step(WarModel.java:77)
at org.hacker.engine.GameUI.stepToIt(GameUI.java:166)
at org.hacker.engine.GameUI$5.run(GameUI.java:99)
Exception in thread "Thread-5" java.lang.Error: Bug
at ojvm.operations.BytecodeInterpreter.visit_anewarray(BytecodeInterpreter.java:2189)
at ojvm.loading.instructions.Ins_anewarray.accept(Ins_anewarray.java:31)
at ojvm.machine.ControlUnit.run(ControlUnit.java:169)
at org.hacker.engine.war.HackVMWarSpinalCord.initClass(HackVMWarSpinalCord.java:82)
at org.hacker.engine.war.HackVMWarSpinalCord.<init>(HackVMWarSpinalCord.java:54)
at org.hacker.engine.war.HackVMWarSpinalCordFactory.createSpinalCord(HackVMWarSpinalCordFactory.java:42)
at org.hacker.engine.war.Faction.addUnit(Faction.java:44)
at org.hacker.engine.war.order.BuildOrder.execute(BuildOrder.java:53)
at org.hacker.engine.war.unit.Unit.advance(Unit.java:82)
at org.hacker.engine.war.WarModel.step(WarModel.java:77)
at org.hacker.engine.GameUI.stepToIt(GameUI.java:166)
at org.hacker.engine.GameUI$5.run(GameUI.java:99)
no arrays of strings?
-
- Posts: 1
- Joined: Sun Mar 22, 2009 6:12 pm
- Contact: