Jad me sort un truc bizarre - Java - Programmation
Marsh Posté le 06-12-2007 à 15:05:04
Bonjour, Je n'arrive pas a reconstituer le source de ceci :
public boolean netChannel(NetChannelOutStream netchanneloutstream, NetMsgGuaranted netmsgguaranted) { if(!(netmsgguaranted instanceof NetMsgSpawn)) goto _L2; else goto _L1 _L1: msgCallback(netchanneloutstream, 0); goto _L3 _L2: if(!(netmsgguaranted instanceof NetMsgDestroy)) goto _L4; else goto _L3 _L4: int i; NetMsgInput netmsginput = new NetMsgInput(); netmsginput.setData(netchanneloutstream, true, netmsgguaranted.data(), 0, netmsgguaranted.size()); i = netmsginput.readUnsignedByte(); i; JVM INSTR lookupswitch 4: default 139 // 0: 100 // 2: 109 // 4: 118 // 12: 127; goto _L5 _L6 _L7 _L8 _L9 _L5: break; /* Loop/switch isn't completed */ _L6: msgCallback(netchanneloutstream, 1); break; /* Loop/switch isn't completed */ _L7: msgCallback(netchanneloutstream, 3); break; /* Loop/switch isn't completed */ _L8: msgCallback(netchanneloutstream, 4); break; /* Loop/switch isn't completed */ _L9: Main3D.cur3D().TrackRecord().startRecord(netmsgguaranted); return false; Exception exception; exception; this; printDebug(exception); _L3: return true; }
Quelqu'un a une idée ? J'ai tenté ça : public boolean netChannel(NetChannelOutStream netchanneloutstream, NetMsgGuaranted netmsgguaranted) { if(!(netmsgguaranted instanceof NetMsgSpawn) && !(netmsgguaranted instanceof NetMsgDestroy)) { try { int i; NetMsgInput netmsginput = new NetMsgInput(); netmsginput.setData(netchanneloutstream, true, netmsgguaranted.data(), 0, netmsgguaranted.size()); i = netmsginput.readUnsignedByte(); switch (i) { case 0 : break; case 2: msgCallback(netchanneloutstream, 1); break; case 4: msgCallback(netchanneloutstream, 3); break; case 12: msgCallback(netchanneloutstream, 4); break; default: Main3D.cur3D().TrackRecord().startRecord(netmsgguaranted); return false; } catch(Exception exception) { NetMissionObj _tmp = this; printDebug(exception); } } else { return false; } msgCallback(netchanneloutstream, 0); } return false; }
Make sure you enter the(*)required information where indicate.HTML code is not allowed
Marsh Posté le 06-12-2007 à 15:05:04
Bonjour,
Je n'arrive pas a reconstituer le source de ceci :
public boolean netChannel(NetChannelOutStream netchanneloutstream, NetMsgGuaranted netmsgguaranted)
{
if(!(netmsgguaranted instanceof NetMsgSpawn)) goto _L2; else goto _L1
_L1:
msgCallback(netchanneloutstream, 0);
goto _L3
_L2:
if(!(netmsgguaranted instanceof NetMsgDestroy)) goto _L4; else goto _L3
_L4:
int i;
NetMsgInput netmsginput = new NetMsgInput();
netmsginput.setData(netchanneloutstream, true, netmsgguaranted.data(), 0, netmsgguaranted.size());
i = netmsginput.readUnsignedByte();
i;
JVM INSTR lookupswitch 4: default 139
// 0: 100
// 2: 109
// 4: 118
// 12: 127;
goto _L5 _L6 _L7 _L8 _L9
_L5:
break; /* Loop/switch isn't completed */
_L6:
msgCallback(netchanneloutstream, 1);
break; /* Loop/switch isn't completed */
_L7:
msgCallback(netchanneloutstream, 3);
break; /* Loop/switch isn't completed */
_L8:
msgCallback(netchanneloutstream, 4);
break; /* Loop/switch isn't completed */
_L9:
Main3D.cur3D().TrackRecord().startRecord(netmsgguaranted);
return false;
Exception exception;
exception;
this;
printDebug(exception);
_L3:
return true;
}
Quelqu'un a une idée ?
J'ai tenté ça :
public boolean netChannel(NetChannelOutStream netchanneloutstream, NetMsgGuaranted netmsgguaranted)
{
if(!(netmsgguaranted instanceof NetMsgSpawn) && !(netmsgguaranted instanceof NetMsgDestroy))
{
try
{
int i;
NetMsgInput netmsginput = new NetMsgInput();
netmsginput.setData(netchanneloutstream, true, netmsgguaranted.data(), 0, netmsgguaranted.size());
i = netmsginput.readUnsignedByte();
switch (i)
{
case 0 :
break;
case 2:
msgCallback(netchanneloutstream, 1);
break;
case 4:
msgCallback(netchanneloutstream, 3);
break;
case 12:
msgCallback(netchanneloutstream, 4);
break;
default:
Main3D.cur3D().TrackRecord().startRecord(netmsgguaranted);
return false;
}
catch(Exception exception)
{
NetMissionObj _tmp = this;
printDebug(exception);
}
}
else
{
return false;
}
msgCallback(netchanneloutstream, 0);
}
return false;
}
Message édité par eric51 le 06-12-2007 à 15:10:57
---------------
J'ai un pseudo à la c**