[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
JaTeOn • 주제글 보기 - 코드 버그 - NotificationProcessor 의 버그

코드 버그 - NotificationProcessor 의 버그

처리가 끝나고 완료된 이슈

코드 버그 - NotificationProcessor 의 버그

전체글글쓴이: sangkwon » 2007/11/27 5:31 pm

오늘 CVS 에서 받았는데,
NotificationProcessor.procList() 메소드에 문제가 있는 듯 하네요.
참고하세요~

마지막 버디정보가 0101,0011 로 들어올 경우, isFriendReady = true 를 탈 수 없어서 루프를 빠져나갈 수 없게 되는군요.

저는 이렇게 수정했습니다.

private void procLIST(String line) throws Exception {
// TODO: 사용자 객체에 목록을 구분해서 저장하기.
String list[];
list = line.split(" ");
// list[8] = list[8].replace("%20"," ");
if (Integer.parseInt(list[2]) + 1 == Integer.parseInt(list[3]))
isFriendReady = true;


if (list[4].equals("0011") || list[4].equals("0101"))
return;

if (list[4].startsWith("1") || list[4].endsWith("1")) {

tempFriend = new NateFriend(list[4], list[5], list[6], list[7], list[8], list[9], list[10], list[11], list[12], list[13], list[14], list[15], list[16], list[17]);
friendlist.add(tempFriend);
friendMap.put(tempFriend.getNateID(), tempFriend);
friendMapUid.put(tempFriend.getUid(), tempFriend);
}
if (list[4].equals("0001"))
addME.add(tempFriend);

MsgUtil.println(friendlist.count() + "<<<" + line);
}
sangkwon
 
전체글: 2
가입일: 2007/11/27 5:26 pm

전체글글쓴이: kfmes » 2007/11/27 8:25 pm

kfmes
Site Admin
 
전체글: 523
가입일: 2007/1/13 3:56 pm

수정하신 것 문제 있습니다

전체글글쓴이: sangkwon » 2007/11/28 9:13 am

sangkwon
 
전체글: 2
가입일: 2007/11/27 5:26 pm

전체글글쓴이: kfmes » 2007/11/28 11:16 am

kfmes
Site Admin
 
전체글: 523
가입일: 2007/1/13 3:56 pm


다시 돌아감: 완료된 이슈

접속 중인 사용자

이 포럼에 접속 중인 사용자: 접속한 회원이 없음 그리고 손님들 4 명

cron