java编译后的class文件中,很多关于长度或个数的定义都是2个字节(byte),所以这个上限是65535,比如: 单个Java方法不能超过65535字节 The code of method xxx() is exceeding the 65535 bytes limit 单个Java文件常量个数上限是65536 Too many constants, the constant pool for XXX would exceed 65536 entries 记得.class文件头4个字节的模数(magic number)是小写的0xca,0xfe,0xba,0xbe吗?