我可以链接要构建的文件,但这是我得到的当前错误。
Buildfile: C:Users********Desktopen-m8build.xml
clean:
[delete] Deleting directory C:Users********Desktopen-m8build
compile:
[mkdir] Created dir: C:Users********Desktopen-m8build
[javac] C:Users********Desktopen-m8build.xml:51: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 706 source files to C:Users********Desktopen-m8build
[javac] C:Users********Desktopen-m8srcl1jserverservermodelInstanceL1PcInstance.java:1256: error: method getId in class L1Object cannot be applied to given types;
[javac] pstm.setInt(1, player.getId(1));
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:Users********Desktopen-m8srcl1jserverservermodelInstanceL1PcInstance.java:1257: error: method getName in class L1Character cannot be applied to given types;
[javac] pstm.setString(2, player.getName(1));
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:Users********Desktopen-m8srcl1jserverservermodelInstanceL1PcInstance.java:1258: error: method getLevel in class L1Character cannot be applied to given types;
[javac] pstm.setInt(3, player.getLevel(1));
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:Users********Desktopen-m8srcl1jserverservermodelInstanceL1PcInstance.java:1259: error: method getId in class L1Object cannot be applied to given types;
[javac] pstm.setInt(4, getId(1));
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:Users********Desktopen-m8srcl1jserverservermodelInstanceL1PcInstance.java:1260: error: method getName in class L1Character cannot be applied to given types;
[javac] pstm.setString(5, getName(1));
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:Users********Desktopen-m8srcl1jserverservermodelInstanceL1PcInstance.java:1261: error: method getLevel in class L1Character cannot be applied to given types;
[javac] pstm.setInt(6, getLevel(1));
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:Users********Desktopen-m8srcl1jserverservermodelInstanceL1PcInstance.java:1263: error: method getX in class L1Object cannot be applied to given types;
[javac] pstm.setInt(8, getX(1));
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:Users********Desktopen-m8srcl1jserverservermodelInstanceL1PcInstance.java:1264: error: method getY in class L1Object cannot be applied to given types;
[javac] pstm.setInt(9, getY(1));
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:Users********Desktopen-m8srcl1jserverservermodelInstanceL1PcInstance.java:1265: error: method getMapId in class L1Object cannot be applied to given types;
[javac] pstm.setInt(10, getMapId(1));
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:Users********Desktopen-m8srcl1jserverservermodelInstanceL1PcInstance.java:1269: error: method isEnabledDeathPenalty in class L1Map cannot be applied to given types;
[javac] && getMap().isEnabledDeathPenalty(1)) {
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:Users********Desktopen-m8srcl1jserverservermodelL1MobSkillUse.java:458: warning: [rawtypes] found raw type: Constructor
[javac] Constructor _constructor = Class
[javac] ^
[javac] missing type arguments for generic class Constructor<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Constructor
[javac] C:Users********Desktopen-m8srcl1jserverserverThreadPoolManager.java:94: warning: [rawtypes] found raw type: ScheduledFuture
[javac] public ScheduledFuture scheduleEffect(Runnable r, long delay) {
[javac] ^
[javac] missing type arguments for generic class ScheduledFuture<V>
[javac] where V is a type-variable:
[javac] V extends Object declared in interface ScheduledFuture
[javac] C:Users********Desktopen-m8srcl1jserverserverThreadPoolManager.java:106: warning: [rawtypes] found raw type: ScheduledFuture
[javac] public ScheduledFuture scheduleEffectAtFixedRate(Runnable r, long initial,
[javac] ^
[javac] missing type arguments for generic class ScheduledFuture<V>
[javac] where V is a type-variable:
[javac] V extends Object declared in interface ScheduledFuture
[javac] C:Users********Desktopen-m8srcl1jserverserverThreadPoolManager.java:122: warning: [rawtypes] found raw type: ScheduledFuture
[javac] public ScheduledFuture scheduleGeneral(Runnable r, long delay) {
[javac] ^
[javac] missing type arguments for generic class ScheduledFuture<V>
[javac] where V is a type-variable:
[javac] V extends Object declared in interface ScheduledFuture
[javac] C:Users********Desktopen-m8srcl1jserverserverThreadPoolManager.java:134: warning: [rawtypes] found raw type: ScheduledFuture
[javac] public ScheduledFuture scheduleGeneralAtFixedRate(Runnable r, long initial,
[javac] ^
[javac] missing type arguments for generic class ScheduledFuture<V>
[javac] where V is a type-variable:
[javac] V extends Object declared in interface ScheduledFuture
[javac] C:Users********Desktopen-m8srcl1jserverserverThreadPoolManager.java:150: warning: [rawtypes] found raw type: ScheduledFuture
[javac] public ScheduledFuture scheduleAi(Runnable r, long delay) {
[javac] ^
[javac] missing type arguments for generic class ScheduledFuture<V>
[javac] where V is a type-variable:
[javac] V extends Object declared in interface ScheduledFuture
[javac] C:Users********Desktopen-m8srcl1jserverserverThreadPoolManager.java:162: warning: [rawtypes] found raw type: ScheduledFuture
[javac] public ScheduledFuture scheduleAiAtFixedRate(Runnable r, long initial,
[javac] ^
[javac] missing type arguments for generic class ScheduledFuture<V>
[javac] where V is a type-variable:
[javac] V extends Object declared in interface ScheduledFuture
[javac] C:Users********Desktopen-m8srcl1jserverserverclientpacketsC_Attr.java:314: warning: [static] static method should be qualified by type name, CharacterTable, instead of by an expression
[javac] CharacterTable.getInstance().updatePartnerId(
[javac] ^
[javac] C:Users********Desktopen-m8srcl1jserverserverclientpacketsC_CreateChar.java:213: warning: [static] static method should be qualified by type name, CharacterTable, instead of by an expression
[javac] CharacterTable.getInstance().saveCharStatus(pc);
[javac] ^
[javac] C:Users********Desktopen-m8srcl1jserverserverclientpacketsC_ItemUSe.java:5190: warning: [rawtypes] found raw type: Constructor
[javac] Constructor constructor = Class.forName(
[javac] ^
[javac] missing type arguments for generic class Constructor<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Constructor
[javac] C:Users********Desktopen-m8srcl1jserverserverclientpacketsC_Mail.java:55: warning: [static] static method should be qualified by type name, MailTable, instead of by an expression
[javac] L1Mail mail = MailTable.getInstance().getMail(mailId);
[javac] ^
[javac] C:Users********Desktopen-m8srcl1jserverserverclientpacketsC_Mail.java:133: warning: [static] static method should be qualified by type name, MailTable, instead of by an expression
[javac] for (L1Mail mail : MailTable.getInstance().getAllMail()) {
[javac] ^
[javac] C:Users********Desktopen-m8srcl1jserverserverclientpacketsC_Result.java:458: warning: [rawtypes] found raw type: List
[javac] List sellList;
[javac] ^
[javac] missing type arguments for generic class List<E>
[javac] where E is a type-variable:
[javac] E extends Object declared in interface List
[javac] C:Users********Desktopen-m8srcl1jserverserverclientpacketsC_Result.java:541: warning: [unchecked] unchecked call to set(int,E) as a member of the raw type List
[javac] sellList.set(order, pssl);
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface List
[javac] C:Users********Desktopen-m8srcl1jserverserverclientpacketsC_Result.java:566: warning: [rawtypes] found raw type: List
[javac] List buyList;
[javac] ^
[javac] missing type arguments for generic class List<E>
[javac] where E is a type-variable:
[javac] E extends Object declared in interface List
[javac] C:Users********Desktopen-m8srcl1jserverserverclientpacketsC_Result.java:640: warning: [unchecked] unchecked call to set(int,E) as a member of the raw type List
[javac] buyList.set(order, psbl);
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface List
[javac] C:Users********Desktopen-m8srcl1jserverserverclientpacketsC_Shop.java:70: warning: [rawtypes] found raw type: List
[javac] List sellList = pc.getSellList();
[javac] ^
[javac] missing type arguments for generic class List<E>
[javac] where E is a type-variable:
[javac] E extends Object declared in interface List
[javac] C:Users********Desktopen-m8srcl1jserverserverclientpacketsC_Shop.java:71: warning: [rawtypes] found raw type: List
[javac] List buyList = pc.getBuyList();
[javac] ^
[javac] missing type arguments for generic class List<E>
[javac] where E is a type-variable:
[javac] E extends Object declared in interface List
[javac] C:Users********Desktopen-m8srcl1jserverserverclientpacketsC_Shop.java:124: warning: [unchecked] unchecked call to add(E) as a member of the raw type List
[javac] sellList.add(pssl);
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface List
[javac] C:Users********Desktopen-m8srcl1jserverserverclientpacketsC_Shop.java:185: warning: [unchecked] unchecked call to add(E) as a member of the raw type List
[javac] buyList.add(psbl);
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface List
[javac] C:Users********Desktopen-m8srcl1jserverservercommandexecutorL1GfxId.java:51: warning: [rawtypes] found raw type: Constructor
[javac] Constructor constructor = Class.forName(
[javac] ^
[javac] missing type arguments for generic class Constructor<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Constructor
[javac] C:Users********Desktopen-m8srcl1jserverserverdatatablesFurnitureSpawnTable.java:70: warning: [rawtypes] found raw type: Constructor
[javac] Constructor constructor = Class.forName(
[javac] ^
[javac] missing type arguments for generic class Constructor<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Constructor
[javac] C:Users********Desktopen-m8srcl1jserverserverdatatablesLightSpawnTable.java:68: warning: [rawtypes] found raw type: Constructor
[javac] Constructor constructor = Class.forName(
[javac] ^
[javac] missing type arguments for generic class Constructor<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Constructor
[javac] C:Users********Desktopen-m8srcl1jserverserverdatatablesTrapTable.java:48: warning: [rawtypes] found raw type: Constructor
[javac] Constructor con = Class.forName(packageName + name).getConstructor(
[javac] ^
[javac] missing type arguments for generic class Constructor<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Constructor
[javac] C:Users********Desktopen-m8srcl1jserverserverdatatablesTrapTable.java:49: warning: [rawtypes] found raw type: Class
[javac] new Class[] { TrapStorage.class });
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:Users********Desktopen-m8srcl1jserverservermodelL1EffectSpawn.java:41: warning: [rawtypes] found raw type: Constructor
[javac] private Constructor _constructor;
[javac] ^
[javac] missing type arguments for generic class Constructor<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Constructor
[javac] C:Users********Desktopen-m8srcl1jserverservermodelL1War.java:59: warning: [static] static method should be qualified by type name, WarTimeController, instead of by an expression
[javac] .getRealTime())) {
[javac] ^
[javac] C:Users********Desktopen-m8srcl1jserverservermodelL1World.java:66: warning: [rawtypes] found raw type: ConcurrentHashMap
[javac] _visibleObjects = new ConcurrentHashMap[MAX_MAP_ID + 1];
[javac] ^
[javac] missing type arguments for generic class ConcurrentHashMap<K,V>
[javac] where K,V are type-variables:
[javac] K extends Object declared in class ConcurrentHashMap
[javac] V extends Object declared in class ConcurrentHashMap
[javac] C:Users********Desktopen-m8srcl1jserverservermodelnpcactionL1NpcActionFactory.java:35: warning: [rawtypes] found raw type: Class
[javac] private static Constructor<L1NpcAction> loadConstructor(Class c)
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:Users********Desktopen-m8srcl1jserverservermodelnpcactionL1NpcActionFactory.java:37: warning: [rawtypes] found raw type: Class
[javac] return c.getConstructor(new Class[] { Element.class });
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:Users********Desktopen-m8srcl1jserverservermodelskillL1SkillTimer.java:669: warning: [deprecation] stop() in Thread has been deprecated
[javac] super.stop();
[javac] ^
[javac] C:Users********Desktopen-m8srcl1jserverserverserverpacketsS_Mail.java:38: warning: [static] static method should be qualified by type name, MailTable, instead of by an expression
[javac] for (L1Mail mail : MailTable.getInstance().getAllMail()) {
[javac] ^
[javac] C:Users********Desktopen-m8srcl1jserverserverserverpacketsS_Mail.java:79: warning: [static] static method should be qualified by type name, MailTable, instead of by an expression
[javac] L1Mail mail = MailTable.getInstance().getMail(mailId);
[javac] ^
[javac] C:Users********Desktopen-m8srcl1jserverservertaskmanagerTaskManager.java:63: warning: [rawtypes] found raw type: ScheduledFuture
[javac] ScheduledFuture _scheduled;
[javac] ^
[javac] missing type arguments for generic class ScheduledFuture<V>
[javac] where V is a type-variable:
[javac] V extends Object declared in interface ScheduledFuture
[javac] C:Users********Desktopen-m8srcl1jserverservertaskmanagerTask.java:39: warning: [rawtypes] found raw type: ScheduledFuture
[javac] public ScheduledFuture launchSpecial(ExecutedTask instance) {
[javac] ^
[javac] missing type arguments for generic class ScheduledFuture<V>
[javac] where V is a type-variable:
[javac] V extends Object declared in interface ScheduledFuture
[javac] C:Users********Desktopen-m8srcl1jserverserverutilsLeakCheckedConnection.java:45: warning: [rawtypes] found raw type: Class
[javac] new Class[] { Connection.class }, new ConnectionHandler());
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:Users********Desktopen-m8srcl1jserverserverutilsLeakCheckedConnection.java:116: warning: [rawtypes] found raw type: Class
[javac] new Class[] { c }, this);
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:Users********Desktopen-m8srcl1jserverserverutilscollectionsLists.java:35: warning: [unchecked] Possible heap pollution from parameterized vararg type E
[javac] public static <E> List<E> of(E... elements) {
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in method <E>of(E...)
[javac] 10 errors
[javac] 38 warnings
BUILD FAILED
C:Users********Desktopen-m8build.xml:51: Compile failed; see the compiler error output for details.
Total time: 5 seconds
每个错误都告诉你哪里出错了,例如
pstm.setInt(1, player.getId(1));
应该pstm.setInt(1, player.getId());
因为[javac] required: no arguments [javac] found: int [javac] reason: actual and formal argument lists differ in length