The GitHub Actions job "Java CI with Gradle" on 
poi-xmlbeans.git/XMLBEANS-616-static-initialization-ring has failed.
Run started by GitHub user christianAppl (triggered by christianAppl).

Head commit for run:
c6bf70a633bd57a238242c928ce0935ca85fb454 / Christian Appl <[email protected]>
XMLBEANS-616: break the static initialization ring between XmlBeans and 
SchemaTypeLoaderBase

XmlBeans.<clinit> needs SchemaTypeLoaderBase for NO_TYPE (through
BuiltinSchemaTypeSystem), and SchemaTypeLoaderBase.<clinit> read
XmlBeans for its USER_AGENT field. Two threads touching XMLBeans for
the first time at once, one through XmlObject.Factory and one through
a generated type, each held one of the two class initializations and
waited for the other forever.

The user agent is now built where it is used, when a schema is fetched
over HTTP, so SchemaTypeLoaderBase no longer depends on XmlBeans while
it initializes. The header value is unchanged.

StaticInitializationRingTest reproduces the race in one JVM, loading
XMLBeans in a class loader of its own for every attempt.

Report URL: https://github.com/apache/poi-xmlbeans/actions/runs/41645508499

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to