Skip to content

Commit

Permalink
Add copy method inside attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Rasquier committed Dec 15, 2017
1 parent f12269d commit da24636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asm/attribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (a Attribute) getLabels() []Label {
func (a Attribute) read(classReader *ClassReader, offset int, length int, charBuffer []rune, codeAttributeOffset int, labels []*Label) *Attribute {
attribute := NewAttribute(a.typed)
attribute.content = make([]byte, length)
//System.arraycopy(classReader.b, offset, attribute.content, 0, length)
copy(attribute.content, classReader.b) //System.arraycopy(classReader.b, offset, attribute.content, 0, length)
return attribute
}

Expand Down

0 comments on commit da24636

Please sign in to comment.