Summary of FileOutputStream.writeBytes: simulate reading from array and writing to outside ('real world')

This commit is contained in:
Martin Mohr 2014-05-15 15:53:05 +02:00 committed by Juergen Graf
parent 671bbcec01
commit a6917e46ad
1 changed files with 3 additions and 1 deletions

View File

@ -100,7 +100,9 @@
<method name="write" descriptor="(I)V"></method>
<method name="writeBytes" descriptor="([BIIZ)V">
<constant name="the-answer" type="byte" value="42"/>
<aastore ref="arg1" index="arg2" value="the-answer"/>
<aaload def="foo" ref="arg1" index="the-answer" />
<putfield class="Ljava/io/FileOutputStream" field="realWorld"
fieldType="I" value="foo" ref="arg0" />
<new def="x" class="Ljava/io/IOException" />
<throw value="x" />
</method>