Skip to content

Commit

Permalink
Merge pull request #12752 from tajila/pmr
Browse files Browse the repository at this point in the history
Fix recreation of class with local type annotation
  • Loading branch information
gacholio committed May 23, 2021
2 parents 9fd9685 + 95ad3b5 commit 85ddcc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/bcutil/ClassFileWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1971,7 +1971,7 @@ ClassFileWriter::writeTypeAnnotationsAttribute(U_32 *typeAnnotationsData)
U_16 tableLength = 0;
NEXT_U16(tableLength, data);
writeU16(tableLength);
for (U_32 ti=0; tableLength; ++ti) {
for (U_32 ti=0; ti < tableLength; ++ti) {
NEXT_U16(u16Data, data);
writeU16(u16Data); /* startPC */
NEXT_U16(u16Data, data);
Expand Down

0 comments on commit 85ddcc6

Please sign in to comment.