Fix the offset calculation for paramater annotations

This commit is contained in:
Ben Gruver 2012-11-03 17:11:51 -07:00
parent 7fe0543b66
commit c42ffd8dbe

View File

@ -181,7 +181,7 @@ public abstract class AnnotationsDirectory {
int methodCount = getMethodAnnotationCount(); int methodCount = getMethodAnnotationCount();
int parameterAnnotationsOffset = directoryOffset + ANNOTATIONS_START_OFFSET + int parameterAnnotationsOffset = directoryOffset + ANNOTATIONS_START_OFFSET +
fieldCount * FIELD_ANNOTATION_SIZE + fieldCount * FIELD_ANNOTATION_SIZE +
methodCount + METHOD_ANNOTATION_SIZE; methodCount * METHOD_ANNOTATION_SIZE;
return new AnnotationIteratorImpl(parameterAnnotationsOffset, parameterAnnotationCount); return new AnnotationIteratorImpl(parameterAnnotationsOffset, parameterAnnotationCount);
} }