Page 1 of 1

no arrays of strings?

Posted: Wed Nov 21, 2007 1:59 pm
by ernie
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)

Posted: Thu Nov 22, 2007 6:23 am
by adum
hmmn, i'll look into this...

adum

Posted: Sat Dec 08, 2007 8:23 pm
by adum
shoudl work now

Posted: Sun Mar 22, 2009 6:17 pm
by superhackerorg
worls

Posted: Wed Mar 25, 2009 5:22 pm
by treader
where is this supposed to be used in. :?: :?: :?: :?: :?: :?: :?: