中国开发网: 论坛: 程序员情感CBD: 贴子 493237
没脾气2x: 我说我的字节码分析为什么 constant 总是不够数呢,原来还有这个问题
[CODE=Java] for(int i=1; i < constant_pool_count; i++) { constant_pool[i] = Constant.readConstant(file); /* Quote from the JVM specification: * "All eight byte constants take up two spots in the constant pool. * If this is the n'th byte in the constant pool, then the next item * will be numbered n+2" * * Thus we have to increment the index counter. */ tag = constant_pool[i].getTag(); if((tag == Constants.CONSTANT_Double) || (tag == Constants.CONSTANT_Long)) i++; } } [/CODE]

GOOGLE CODE SEARCH 真强

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录