mbeckerle closed pull request #53: Change val and lazy val to def -
multi-threading bug due to state?
URL: https://github.com/apache/incubator-daffodil/pull/53
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/daffodil-lib/src/main/scala/org/apache/daffodil/xml/DaffodilXMLLoader.scala
b/daffodil-lib/src/main/scala/org/apache/daffodil/xml/DaffodilXMLLoader.scala
index 09e573188..e844f4636 100644
---
a/daffodil-lib/src/main/scala/org/apache/daffodil/xml/DaffodilXMLLoader.scala
+++
b/daffodil-lib/src/main/scala/org/apache/daffodil/xml/DaffodilXMLLoader.scala
@@ -373,7 +373,7 @@ trait SchemaAwareLoaderMixin {
protected def doValidation: Boolean
- lazy val resolver = DFDLCatalogResolver.get
+ def resolver = DFDLCatalogResolver.get
override lazy val parser: SAXParser = {
@@ -501,7 +501,7 @@ class DaffodilXMLLoader(val errorHandler:
org.xml.sax.ErrorHandler) {
def this() = this(RethrowSchemaErrorHandler)
- val xercesAdapter = new DFDLXercesAdapter(errorHandler)
+ def xercesAdapter = new DFDLXercesAdapter(errorHandler)
//
// Controls whether we setup Xerces for validation or not.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services