luizadauto / aionxemu

Automatically exported from code.google.com/p/aionxemu
6 stars 6 forks source link

[Aion 2.1 and 2.5] gameserver doesn't copile with Java 7 #521

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Issues must affect Aion X Emu Files ONLY. Any revisions or altercations of
core files will not be supported here.

Core revision: 356

Bug description: server does not compile under java 1.7.0

What steps will reproduce the problem?: trying to compile server.

What is the expected output?: a sucessfully compile.

Please copy/paste errors below:

compile:
    [javac] Compiling 1287 source files to C:\Documents and Settings\Administrador\Escritorio\aionxemu\25\GameServer\build\classes
    [javac] C:\Documents and Settings\Administrador\Escritorio\aionxemu\25\GameS
erver\src\gameserver\services\NpcShoutsService.java:70: error: reference to SM_S
YSTEM_MESSAGE is ambiguous, both constructor SM_SYSTEM_MESSAGE(int,Object...) in
 SM_SYSTEM_MESSAGE and constructor SM_SYSTEM_MESSAGE(int,boolean,int,Object...)
in SM_SYSTEM_MESSAGE match
    [javac]                                         PacketSendUtility.sendPacket
((Player) kObj, new SM_SYSTEM_MESSAGE(messageId, true, npc2Oid));
    [javac]
                ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error

BUILD FAILED
C:\Documents and Settings\Administrador\Escritorio\aionxemu\25\GameServer\build.
xml:49: Compile failed; see the compiler error output for details.

Original issue reported on code.google.com by clonk...@gmail.com on 31 Jul 2011 at 8:23

GoogleCodeExporter commented 8 years ago
no problem at all ... uninstall java7 and download java 6 ... here is the link 
http://java.com/en/download/manual.jsp

Original comment by mu.prout...@gmail.com on 16 Sep 2011 at 10:04

filedron commented 6 years ago

i had the same problem. The solution was so easy(No changing java 1.8): in SM_SYSTEM_MESSAGE.java

  public SM_SYSTEM_MESSAGE(int code, boolean npcShout, int npcObjId, Object... params) {
        this.code = code;
        this.npcShout = npcShout;

changing on this

    public SM_SYSTEM_MESSAGE(boolean npcShout, int code, int npcObjId, Object... params) {
        this.npcShout = npcShout;
        this.code = code;

and in NpcShoutsService.java

PacketSendUtility.sendPacket((Player) kObj, new SM_SYSTEM_MESSAGE(messageId, true, npc2Oid)); to PacketSendUtility.sendPacket((Player) kObj, new SM_SYSTEM_MESSAGE(true, messageId, npc2Oid));

BUILD SUCCESSFUL