자바 코딩 65kb 오버플로우 해결법 질문합니다
조회수 1008회
자바 코딩을 많이 해서 오버 플로우가 났습니다
The code of method main(String[]) is exceeding the 65535 bytes limit
계속 코딩을 이어 나가고 싶은데 어떻게 하면 될까요?
이클립스 옥시젠 사용중입니다
-
(•́ ✖ •̀)
알 수 없는 사용자
1 답변
-
스펙입니다. 훗날 변경되면 모를까 스펙이니 지킬 수 밖에 없습니다.
The fact that end_pc is exclusive is a historical mistake in the design of the Java Virtual Machine: if the Java Virtual Machine code for a method is exactly 65535 bytes long and ends with an instruction that is 1 byte long, then that instruction cannot be protected by an exception handler. A compiler writer can work around this bug by limiting the maximum size of the generated Java Virtual Machine code for any method, instance initialization method, or static initializer (the size of any code array) to 65534 bytes.
댓글 입력