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

(-)compiler/org/eclipse/jdt/internal/compiler/ast/AbstractMethodDeclaration.java (-1 / +5 lines)
Lines 241-247 Link Here
241
			// local variable attributes
241
			// local variable attributes
242
			codeStream.exitUserScope(this.scope);
242
			codeStream.exitUserScope(this.scope);
243
			codeStream.recordPositionsFrom(0, this.declarationSourceEnd);
243
			codeStream.recordPositionsFrom(0, this.declarationSourceEnd);
244
			classFile.completeCodeAttribute(codeAttributeOffset);
244
			try {
245
				classFile.completeCodeAttribute(codeAttributeOffset);
246
			} catch(NegativeArraySizeException e) {
247
				throw new AbortMethod(this.scope.referenceCompilationUnit().compilationResult, null);
248
			}
245
			attributeNumber++;
249
			attributeNumber++;
246
		} else {
250
		} else {
247
			checkArgumentsSize();
251
			checkArgumentsSize();
(-)compiler/org/eclipse/jdt/internal/compiler/ast/Clinit.java (-1 / +5 lines)
Lines 278-284 Link Here
278
			}
278
			}
279
			// Record the end of the clinit: point to the declaration of the class
279
			// Record the end of the clinit: point to the declaration of the class
280
			codeStream.recordPositionsFrom(0, declaringType.sourceStart);
280
			codeStream.recordPositionsFrom(0, declaringType.sourceStart);
281
			classFile.completeCodeAttributeForClinit(codeAttributeOffset);
281
			try {
282
				classFile.completeCodeAttributeForClinit(codeAttributeOffset);
283
			} catch(NegativeArraySizeException e) {
284
				throw new AbortMethod(this.scope.referenceCompilationUnit().compilationResult, null);
285
			}
282
		}
286
		}
283
	}
287
	}
284
288
(-)compiler/org/eclipse/jdt/internal/compiler/ast/ConstructorDeclaration.java (-1 / +5 lines)
Lines 357-363 Link Here
357
		// local variable attributes
357
		// local variable attributes
358
		codeStream.exitUserScope(this.scope);
358
		codeStream.exitUserScope(this.scope);
359
		codeStream.recordPositionsFrom(0, this.bodyEnd);
359
		codeStream.recordPositionsFrom(0, this.bodyEnd);
360
		classFile.completeCodeAttribute(codeAttributeOffset);
360
		try {
361
			classFile.completeCodeAttribute(codeAttributeOffset);
362
		} catch(NegativeArraySizeException e) {
363
			throw new AbortMethod(this.scope.referenceCompilationUnit().compilationResult, null);
364
		}
361
		attributeNumber++;
365
		attributeNumber++;
362
		if ((codeStream instanceof StackMapFrameCodeStream)
366
		if ((codeStream instanceof StackMapFrameCodeStream)
363
				&& needFieldInitializations
367
				&& needFieldInitializations
(-)src/org/eclipse/jdt/core/tests/compiler/regression/StackMapAttributeTest.java (-1 / +1 lines)
Lines 6476-6482 Link Here
6476
		checkDisassembledClassFile(OUTPUT_DIR + File.separator + "X.class", "X", expectedOutput);
6476
		checkDisassembledClassFile(OUTPUT_DIR + File.separator + "X.class", "X", expectedOutput);
6477
	}
6477
	}
6478
	// 298250
6478
	// 298250
6479
	public void _test046() {
6479
	public void test046() {
6480
		Map customOptions = getCompilerOptions();
6480
		Map customOptions = getCompilerOptions();
6481
		customOptions.put(JavaCore.COMPILER_PB_UNUSED_PRIVATE_MEMBER, JavaCore.IGNORE);
6481
		customOptions.put(JavaCore.COMPILER_PB_UNUSED_PRIVATE_MEMBER, JavaCore.IGNORE);
6482
		this.runNegativeTest(
6482
		this.runNegativeTest(

Return to bug 298250