jvm.js icon indicating copy to clipboard operation
jvm.js copied to clipboard

Need to be aware of Java class file versions when writing data

Open kylestev opened this issue 9 years ago • 1 comments

Instructions and constant pool entries/types that are not implemented in the JVM version for a class file should not be able to be written to a file.

At parse time, this library does not modify entries in the constant pool nor does it optimize instructions for later versions of the JVM spec. There needs to be an error thrown when adding instructions to a class method or a constant pool entry that does not conform to the current class file's JVM version.

kylestev avatar Nov 01 '15 11:11 kylestev

by merging #14 we only need to worry about verifying the constant pool entries as well as the attributes

kylestev avatar Nov 03 '15 22:11 kylestev