Lines 401-413
Link Here
|
401 |
this.contents[this.contentsOffset++] = methodIndexByte2; |
401 |
this.contents[this.contentsOffset++] = methodIndexByte2; |
402 |
attributesNumber++; |
402 |
attributesNumber++; |
403 |
} |
403 |
} |
404 |
if (this.targetJDK >= ClassFileConstants.JDK1_5) { |
404 |
TypeDeclaration typeDeclaration = this.referenceBinding.scope.referenceContext; |
405 |
TypeDeclaration typeDeclaration = this.referenceBinding.scope.referenceContext; |
405 |
if (typeDeclaration != null) { |
406 |
if (typeDeclaration != null) { |
406 |
final Annotation[] annotations = typeDeclaration.annotations; |
407 |
final Annotation[] annotations = typeDeclaration.annotations; |
407 |
if (annotations != null) { |
408 |
if (annotations != null) { |
408 |
attributesNumber += generateRuntimeAnnotations(annotations); |
409 |
attributesNumber += generateRuntimeAnnotations(annotations); |
|
|
410 |
} |
411 |
} |
409 |
} |
412 |
} |
410 |
} |
413 |
|
411 |
|
Lines 673-685
Link Here
|
673 |
this.contents[this.contentsOffset++] = (byte) signatureIndex; |
671 |
this.contents[this.contentsOffset++] = (byte) signatureIndex; |
674 |
attributesNumber++; |
672 |
attributesNumber++; |
675 |
} |
673 |
} |
676 |
if (this.targetJDK >= ClassFileConstants.JDK1_5) { |
674 |
FieldDeclaration fieldDeclaration = fieldBinding.sourceField(); |
677 |
FieldDeclaration fieldDeclaration = fieldBinding.sourceField(); |
675 |
if (fieldDeclaration != null) { |
678 |
if (fieldDeclaration != null) { |
676 |
Annotation[] annotations = fieldDeclaration.annotations; |
679 |
Annotation[] annotations = fieldDeclaration.annotations; |
677 |
if (annotations != null) { |
680 |
if (annotations != null) { |
678 |
attributesNumber += generateRuntimeAnnotations(annotations); |
681 |
attributesNumber += generateRuntimeAnnotations(annotations); |
|
|
682 |
} |
683 |
} |
679 |
} |
684 |
} |
680 |
} |
685 |
if ((fieldBinding.tagBits & TagBits.HasMissingType) != 0) { |
681 |
if ((fieldBinding.tagBits & TagBits.HasMissingType) != 0) { |
Lines 6290-6307
Link Here
|
6290 |
this.contents[this.contentsOffset++] = (byte) signatureIndex; |
6286 |
this.contents[this.contentsOffset++] = (byte) signatureIndex; |
6291 |
attributeNumber++; |
6287 |
attributeNumber++; |
6292 |
} |
6288 |
} |
6293 |
if (this.targetJDK >= ClassFileConstants.JDK1_5) { |
6289 |
AbstractMethodDeclaration methodDeclaration = methodBinding.sourceMethod(); |
6294 |
AbstractMethodDeclaration methodDeclaration = methodBinding.sourceMethod(); |
6290 |
if (methodDeclaration != null) { |
6295 |
if (methodDeclaration != null) { |
6291 |
Annotation[] annotations = methodDeclaration.annotations; |
6296 |
Annotation[] annotations = methodDeclaration.annotations; |
6292 |
if (annotations != null) { |
6297 |
if (annotations != null) { |
6293 |
attributeNumber += generateRuntimeAnnotations(annotations); |
6298 |
attributeNumber += generateRuntimeAnnotations(annotations); |
6294 |
} |
6299 |
} |
6295 |
if ((methodBinding.tagBits & TagBits.HasParameterAnnotations) != 0) { |
6300 |
if ((methodBinding.tagBits & TagBits.HasParameterAnnotations) != 0) { |
6296 |
Argument[] arguments = methodDeclaration.arguments; |
6301 |
Argument[] arguments = methodDeclaration.arguments; |
6297 |
if (arguments != null) { |
6302 |
if (arguments != null) { |
6298 |
attributeNumber += generateRuntimeAnnotationsForParameters(arguments); |
6303 |
attributeNumber += generateRuntimeAnnotationsForParameters(arguments); |
|
|
6304 |
} |
6305 |
} |
6299 |
} |
6306 |
} |
6300 |
} |
6307 |
} |
6301 |
} |