This is an automated email from the ASF dual-hosted git repository.
olabusayo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil.git
The following commit(s) were added to refs/heads/main by this push:
new 85529f11b Provide diagnosticDebugName for GroupRefFactory
85529f11b is described below
commit 85529f11bc2e182fc4619361c2ef1cf01ccd97c0
Author: olabusayoT <[email protected]>
AuthorDate: Fri Nov 1 21:19:34 2024 -0400
Provide diagnosticDebugName for GroupRefFactory
- currently we don't have one resulting in the class name showing up in
diagnostics
- setting the diagnosticDebugNameImpl fixes the issue
DAFFODIL-2948
---
.../src/main/scala/org/apache/daffodil/core/dsom/GroupRef.scala | 3 +++
.../org/apache/daffodil/section14/sequence_groups/SequenceGroup.tdml | 1 +
2 files changed, 4 insertions(+)
diff --git
a/daffodil-core/src/main/scala/org/apache/daffodil/core/dsom/GroupRef.scala
b/daffodil-core/src/main/scala/org/apache/daffodil/core/dsom/GroupRef.scala
index a52282f02..f42505ed3 100644
--- a/daffodil-core/src/main/scala/org/apache/daffodil/core/dsom/GroupRef.scala
+++ b/daffodil-core/src/main/scala/org/apache/daffodil/core/dsom/GroupRef.scala
@@ -113,6 +113,9 @@ final class GroupRefFactory private (
}
gref
}
+
+ override val diagnosticDebugNameImpl = "group reference " + refQName
+
}
object SequenceGroupRef {
diff --git
a/daffodil-test/src/test/resources/org/apache/daffodil/section14/sequence_groups/SequenceGroup.tdml
b/daffodil-test/src/test/resources/org/apache/daffodil/section14/sequence_groups/SequenceGroup.tdml
index 18f0e1e6d..7707d1454 100644
---
a/daffodil-test/src/test/resources/org/apache/daffodil/section14/sequence_groups/SequenceGroup.tdml
+++
b/daffodil-test/src/test/resources/org/apache/daffodil/section14/sequence_groups/SequenceGroup.tdml
@@ -369,6 +369,7 @@
<tdml:error>Schema Definition Error</tdml:error>
<tdml:error>Referenced group definition not found</tdml:error>
<tdml:error>doesNotExist</tdml:error>
+ <tdml:error>Schema context: group reference</tdml:error>
</tdml:errors>
</tdml:parserTestCase>