Java Compile Error: The code of method is exceeding the 65535 bytes limit
2010-02-23 16:24
483 查看
Issue:
When you compile your java class, you may got following error.
The code of method is exceeding the 65535 bytes limit
Reason:
According Java specification, one Java method size must be less than 65535 Bytes (64k). In most cases you encounter this error is because you want to init a big data or your java class is generated by some toolkit.
Solution:
One workaround is divide your big size method into some pieces of small size methods.
For example,
When you compile your java class, you may got following error.
The code of method is exceeding the 65535 bytes limit
Reason:
According Java specification, one Java method size must be less than 65535 Bytes (64k). In most cases you encounter this error is because you want to init a big data or your java class is generated by some toolkit.
Solution:
One workaround is divide your big size method into some pieces of small size methods.
For example,
public static Float[][] getSMatrix() { initSMatrixPart1() ; initSMatrixPart2() ; initSMatrixPart3() ; initSMatrixPart4() ; initSMatrixPart5() ; return sMatrix; }
相关文章推荐
- Java Compile Error: The code of method is exceeding the 65535 bytes limit
- Tomcat 解决The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit
- The code of constructor UnknowGrammarPoi() is exceeding the 65535 bytes limit
- Fix The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 b
- “The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 byte
- The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit
- “The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit” 的我之解決辦法
- The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes
- The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes
- The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes
- The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit
- java Error:"The method xxx is undefind for the type of xxx"
- An error occurred at line: 307 in the generated java file The code of method _jspService (HttpServle
- 报错:An error occurred at line: 22 in the generated java file The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
- java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class
- jsp: the code is exceeding the 65535 bytes limit
- [Java]Error:No enclosing instance of type E is accessible. Must qualify the allocation with an enclo
- java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class
- Android开发 Error:The number of method references in a .dex file cannot exceed 64K.
- [Quora] What is the most elegant line of code you've seen?