Browse Source

Write empty extensions descriptor even if no extensions are found

pull/460/head
Marcus Ilgner 1 year ago committed by GitHub
parent
commit
426a0d71ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      pf4j/src/main/java/org/pf4j/processor/ExtensionAnnotationProcessor.java

8
pf4j/src/main/java/org/pf4j/processor/ExtensionAnnotationProcessor.java

@ -130,10 +130,10 @@ public class ExtensionAnnotationProcessor extends AbstractProcessor {
} }
} }
// write extensions // Even an empty extensions descriptor is semantically correct and should be
if (extensions.size() > 0) { // written to prevent classloaders from falling back to extension descriptor
storage.write(extensions); // resources from dependencies of the plugin being processed.
} storage.write(extensions);
return false; return false;
} }

Loading…
Cancel
Save