methodByteCodePacked[c][m], segment, operandManager);
methodAttributes[c][m].add(attr);
// Should I add all the attributes in here?
ArrayList currentAttributes = (ArrayList)orderedCodeAttributes.get(i);
for(int index=0;index < currentAttributes.size(); index++) {
Attribute currentAttribute = (Attribute)currentAttributes.get(index);
// TODO: The line below adds the LocalVariableTable
// and LineNumber attributes. Currently things are
// broken because these tables don't get renumbered
// properly. Commenting out the add so the class files
// will verify.
//attr.attributes.add(currentAttribute);
// Fix up the line numbers if needed
if(currentAttribute.hasBCIRenumbering()) {
((BCIRenumberedAttribute)currentAttribute).renumber(attr.byteCodeOffsets);
}
}
i++;
}