]> source.dussan.org Git - aspectj.git/commitdiff
Fix for Bug 58679
authoraclement <aclement>
Fri, 23 Apr 2004 12:26:28 +0000 (12:26 +0000)
committeraclement <aclement>
Fri, 23 Apr 2004 12:26:28 +0000 (12:26 +0000)
   Regression from 1.1: NPE in CompilationResult

org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjCompilerAdapter.java

index 906a82574cf2c5b8e973a18f7671f0eea80cff9b..e62ab0ab56bf23c8e38cd6ba04881f34f61f550e 100644 (file)
@@ -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);