Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.20
-
None
-
None
-
jdk 1.8
maven 3.3.3
Description
when maven-surefire-plugin encounters static initialiser such as
public class AxisDescription {
org.apache.axiom.om.OMFactory omFactory = org.apache.axiom.om.OMAbstractFactory.getOMFactory();
//surefire throws NoClassDefFoundError on OMAbstractFactory ?!?!?
//but if i remove static initialiser to wait until runtime to load OMAbstractFactory it loads ok
org.apache.axis2.description.AxisDescription:
public void setDocumentation(String documentation) {
org.apache.axiom.om.OMFactory omFactory = org.apache.axiom.om.OMAbstractFactory.getOMFactory();
if (!"".equals(documentation))
}
why does surefire not find classes referenced by static initialiser?