smartfoxserver - Java error java.util.concurrent.ConcurrentHashMap.keySet -
hey guy's getting error: can guy's possibly try fix this? or see whats wrong post fix or
thanks alot guy's :)
exception in thread "extensionhandler-1" java.lang.nosuchmethode rror: java.util.concurrent.concurrenthashmap.keyset()ljava/util/concurrent/concu rrenthashmap$keysetview; @ aerivial.requests.aqw.getaction.process(getaction.java:196) @ it.gotoandplay.smartfoxserver.controllers.extensionhandler.processeve nt(extensionhandler.java:535) @ it.gotoandplay.smartfoxserver.controllers.extensionhandler.run(extens ionhandler.java:344) @ java.lang.thread.run(thread.java:619)
the error code:
concurrenthashmap tgtbuffdebuffs = (concurrenthashmap)usertgt.properties.get(users.buffs_debuffs); (iterator = tgtbuffdebuffs.keyset().iterator(); i.hasnext(); ) { int auraid = ((integer)i.next()); aura aura = (aura)world.instance.auras.get(integer.valueof(auraid)); if ((aura.getdamage() >= 0.0d) && (!aura.getcategory().equals("d"))) { damage = (int)(damage * aura.getdamage()); } }
looks have library need java8 , run under version lower 8.
in java 8 api has changed:
in java 8 keyset method returned object
concurrenthashmap.keysetview<k,v>
in java 7
set<k>
Comments
Post a Comment