commit | ea815b1a87c35cb72077e553ee1773468c244466 | [log] [tgz] |
---|---|---|
author | Karl Pauls <karlpauls@gmail.com> | Tue Feb 15 11:44:59 2022 +0100 |
committer | GitHub <noreply@github.com> | Tue Feb 15 11:44:59 2022 +0100 |
tree | 5157375a55d6a2a00eeaf1238f544c42438f814e | |
parent | 42a467fcd0397e4b84dbb37278bffb68f4a9787e [diff] | |
parent | 375e9f8a9be5f89de5dec3f759a39e2c3cadf90b [diff] |
Merge pull request #3 from apache/issus/SLING-11144 SLING-11144: only don't write classes of a failed compilation unit
diff --git a/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java b/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java index 40e4cab..4a99c3d 100644 --- a/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java +++ b/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java
@@ -303,7 +303,7 @@ } } } - if ( this.errorHandler.getErrors() == null ) { + if (!result.hasErrors()) { ClassFile[] classFiles = result.getClassFiles(); for (int i = 0; i < classFiles.length; i++) { ClassFile classFile = classFiles[i];