|
In WIldFly (on Windows) you get lots of stacktraces when you have a package-info.java like:
@XmlAccessorType(FIELD)
@Vetoed
package my.package.domain;
import static javax.xml.bind.annotation.XmlAccessType.FIELD;
import javax.enterprise.inject.Vetoed;
import javax.xml.bind.annotation.XmlAccessorType;
Please see also https://issues.jboss.org/browse/WFLY-1406
In org.hibernate.jpa.boot.scan.spi.PackageInfoArchiveEntryHandler.java there is the following code which looks troublesome for Windows:
Line 31: import static java.io.File.separatorChar; // separatorChar on Windows is \
Line 69: final String packageInfoFilePath = entry.getNameWithinArchive(); // e.g. my/package/domain/package-info.class
Line 70 + 71: final String packageName = packageInfoFilePath.substring( 0, packageInfoFilePath.lastIndexOf( '/' ) ) .replace( separatorChar, '.' );
Thus, the replacement doesn't happen on Windows because separatorChar is "\" which is not contained in packageInfoFilePath
|