View | Details | Raw Unified | Return to bug 277372
Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/ClassFile.java (-3 / +3 lines)
Lines 346-352 Link Here
346
		}
346
		}
347
		// add signature attribute
347
		// add signature attribute
348
		char[] genericSignature = this.referenceBinding.genericSignature();
348
		char[] genericSignature = this.referenceBinding.genericSignature();
349
		if (genericSignature != null) {
349
		if (genericSignature != null && this.targetJDK >= ClassFileConstants.JDK1_5) {
350
			// check that there is enough space to write all the bytes for the field info corresponding
350
			// check that there is enough space to write all the bytes for the field info corresponding
351
			// to the @fieldBinding
351
			// to the @fieldBinding
352
			if (this.contentsOffset + 8 >= this.contents.length) {
352
			if (this.contentsOffset + 8 >= this.contents.length) {
Lines 652-658 Link Here
652
		}
652
		}
653
		// add signature attribute
653
		// add signature attribute
654
		char[] genericSignature = fieldBinding.genericSignature();
654
		char[] genericSignature = fieldBinding.genericSignature();
655
		if (genericSignature != null) {
655
		if (genericSignature != null && this.targetJDK >= ClassFileConstants.JDK1_5) {
656
			// check that there is enough space to write all the bytes for the field info corresponding
656
			// check that there is enough space to write all the bytes for the field info corresponding
657
			// to the @fieldBinding
657
			// to the @fieldBinding
658
			if (this.contentsOffset + 8 >= this.contents.length) {
658
			if (this.contentsOffset + 8 >= this.contents.length) {
Lines 6269-6275 Link Here
6269
		}
6269
		}
6270
		// add signature attribute
6270
		// add signature attribute
6271
		char[] genericSignature = methodBinding.genericSignature();
6271
		char[] genericSignature = methodBinding.genericSignature();
6272
		if (genericSignature != null) {
6272
		if (genericSignature != null && this.targetJDK >= ClassFileConstants.JDK1_5) {
6273
			// check that there is enough space to write all the bytes for the field info corresponding
6273
			// check that there is enough space to write all the bytes for the field info corresponding
6274
			// to the @fieldBinding
6274
			// to the @fieldBinding
6275
			if (this.contentsOffset + 8 >= this.contents.length) {
6275
			if (this.contentsOffset + 8 >= this.contents.length) {

Return to bug 277372