Index / Reload
クラスファイルを加工して ExceptionsAttribute の後ろに 1 バイト/4バイトの padding を付けて実験して見ましたが、Sun J2SE 1.4.2 では verifier に弾かれてしまいました。OUCH!
VM Spec 2nd Ed.の 4.7.5 The InnerClasses Attribute によると、「u4 attribute_length」の説明として「the length of the attribute, excluding the initial six bytes.」とあるから、paddingは許容されていないと理解してます。
クラスファイルを加工して ExceptionsAttribute の後ろに 1 バイト/4バイトの padding を付けて実験して見ましたが、Sun J2SE 1.4.2 では verifier に弾かれてしまいました。OUCH!
VM Spec 2nd Ed.の 4.7.5 The InnerClasses Attribute によると、
「u4 attribute_length」の説明として「the length of the attribute, excluding the initial six bytes.」とあるから、
paddingは許容されていないと理解してます。