summaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2004-04-23 12:26:28 +0000
committeraclement <aclement>2004-04-23 12:26:28 +0000
commit19ac4cc8c0d9b2deb29f1df0d15df965563038b1 (patch)
tree351d2e69b6051b615545b547fc261e01a19f55c0 /org.aspectj.ajdt.core
parent48ff20ef404ac9751d37a6f01b04f3dcd502d97b (diff)
downloadaspectj-19ac4cc8c0d9b2deb29f1df0d15df965563038b1.tar.gz
aspectj-19ac4cc8c0d9b2deb29f1df0d15df965563038b1.zip
Fix for Bug 58679
Regression from 1.1: NPE in CompilationResult
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjCompilerAdapter.java4
1 files changed, 2 insertions, 2 deletions
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 906a82574..e62ab0ab5 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
@@ -193,8 +193,8 @@ public class AjCompilerAdapter implements ICompilerAdapter {
for (Iterator binIter = binarySourceEntries.keySet().iterator(); binIter.hasNext();) {
String sourceFileName = (String) binIter.next();
List unwovenClassFiles = (List) binarySourceEntries.get(sourceFileName);
-
- CompilationResult result = new CompilationResult(sourceFileName.toCharArray(),0,0,compiler.options.maxProblemsPerUnit);
+ // XXX - see bugs 57432,58679 - final parameter on next call should be "compiler.options.maxProblemsPerUnit"
+ CompilationResult result = new CompilationResult(sourceFileName.toCharArray(),0,0,Integer.MAX_VALUE);
result.noSourceAvailable();
InterimCompilationResult binarySource =
new InterimCompilationResult(result,unwovenClassFiles);