no arrays of strings?

Post Reply
User avatar
ernie
Posts: 14
Joined: Sun Apr 22, 2007 1:22 pm
Contact:

no arrays of strings?

Post 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)
User avatar
adum
Posts: 392
Joined: Thu Apr 19, 2007 12:49 pm
Contact:

Post by adum »

hmmn, i'll look into this...

adum
User avatar
adum
Posts: 392
Joined: Thu Apr 19, 2007 12:49 pm
Contact:

Post by adum »

shoudl work now
superhackerorg
Posts: 1
Joined: Sun Mar 22, 2009 6:12 pm
Contact:

Post by superhackerorg »

worls
treader
Posts: 82
Joined: Wed Mar 25, 2009 2:44 pm
Location: mumbai

Post by treader »

where is this supposed to be used in. :?: :?: :?: :?: :?: :?: :?:
TREADER
TREADER
TREADER
TREADER
TREADER
TREADER
Post Reply