From f3916048a7d49f4a2e6ff44c154d04a7045a817d Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 7 Apr 2004 12:59:48 +0000 Subject: [PATCH] Some of the fix for Bugzilla Bug 57432 NPE when creating declare messages [Use the correct value for initializing 'maxProblemsPerUnit'] --- .../org/aspectj/ajdt/internal/compiler/AjCompilerAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjCompilerAdapter.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjCompilerAdapter.java index d8eb8fbdb..906a82574 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjCompilerAdapter.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjCompilerAdapter.java @@ -194,7 +194,7 @@ public class AjCompilerAdapter implements ICompilerAdapter { String sourceFileName = (String) binIter.next(); List unwovenClassFiles = (List) binarySourceEntries.get(sourceFileName); - CompilationResult result = new CompilationResult(sourceFileName.toCharArray(),0,0,20); + CompilationResult result = new CompilationResult(sourceFileName.toCharArray(),0,0,compiler.options.maxProblemsPerUnit); result.noSourceAvailable(); InterimCompilationResult binarySource = new InterimCompilationResult(result,unwovenClassFiles); -- 2.39.5