A small question about the output generated by the command javapregarding a constant pool. When the javappool prints, it defines string constants as strings Asciz, which, as I understand it, means nullterminated Ascii:
const #20 = Asciz hello world;
This would mean that the length of the string is unknown, and for parsing you will read every byte until you come across null.
However, the length of the constant string string constants of the pool is determined by two bytes preceding the string, and there is no added one null. ( Constant pool specification ).
Does it define javapstrings as Ascizor has a Ascizdifferent value that I don't know about?
source
share