아래와 같이 처리합니다. ^^
System.out.println((new Throwable()).getStackTrace()[0].getLineNumber());
'java' 카테고리의 다른 글
| 파일에 락 걸기.. (0) | 2008/06/13 |
|---|---|
| Convert interchangeably between a ByteBuffer and a byte array (0) | 2008/06/13 |
| debugging을 위한 class line 보기 (0) | 2008/06/13 |
| Java SE의 정규 표현식 (0) | 2008/06/12 |
| Java API 로그레벨과 Apache Log4j 로그레벨 매칭 (0) | 2008/06/12 |