diff --git a/hibernate-entitymanager/src/main/java/org/hibernate/jpa/boot/scan/spi/AbstractScannerImpl.java b/hibernate-entitymanager/src/main/java/org/hibernate/jpa/boot/scan/spi/AbstractScannerImpl.java index 3d2c441370..985d453658 100644 --- a/hibernate-entitymanager/src/main/java/org/hibernate/jpa/boot/scan/spi/AbstractScannerImpl.java +++ b/hibernate-entitymanager/src/main/java/org/hibernate/jpa/boot/scan/spi/AbstractScannerImpl.java @@ -200,12 +200,14 @@ public abstract class AbstractScannerImpl implements Scanner { } } - private static class ArchiveDescriptorInfo { - private final ArchiveDescriptor archiveDescriptor; - private final boolean isRoot; - private final ScanOptions scanOptions; + // This needs to be protected and attributes/constructor visible in case + // a custom scanner needs to override validateReuse. + protected static class ArchiveDescriptorInfo { + public final ArchiveDescriptor archiveDescriptor; + public final boolean isRoot; + public final ScanOptions scanOptions; - private ArchiveDescriptorInfo( + public ArchiveDescriptorInfo( ArchiveDescriptor archiveDescriptor, boolean isRoot, ScanOptions scanOptions) {