This is an automated email from the ASF dual-hosted git repository.
mbeckerle 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 c38e4d352 Change message to use propName instead of propNameArg
c38e4d352 is described below
commit c38e4d3522da06ef36ff454ffc170d518e9c7bdd
Author: Mike McGann <[email protected]>
AuthorDate: Thu Dec 15 11:22:56 2022 -0500
Change message to use propName instead of propNameArg
The diagnostic message uses the value of propNameArg which could be
set to null. The propName variable contains an auto-generated value
when one is not provided in the constructor.
DAFFODIL-2647
---
.../src/main/scala/org/apache/daffodil/cookers/EntityReplacer.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/daffodil-lib/src/main/scala/org/apache/daffodil/cookers/EntityReplacer.scala
b/daffodil-lib/src/main/scala/org/apache/daffodil/cookers/EntityReplacer.scala
index a06247e7e..86d83fb02 100755
---
a/daffodil-lib/src/main/scala/org/apache/daffodil/cookers/EntityReplacer.scala
+++
b/daffodil-lib/src/main/scala/org/apache/daffodil/cookers/EntityReplacer.scala
@@ -657,7 +657,7 @@ sealed abstract class ListOfStringLiteralBase(propNameArg:
String,
val wsVisible = Misc.remapCodepointToVisibleGlyph(ws.toChar).toChar
val hexCodePoint = "%04x".format(ws.toInt)
context.SDE("The property '%s' cannot start or end with the string
\"%s\"(Unicode hex code point U+%s), or consist entirely of whitespace."
- + "\nDid you mean to use character entities like '%%SP;' or '%%NL;' to
indicate whitespace in the data format instead?", propNameArg, wsVisible,
hexCodePoint)
+ + "\nDid you mean to use character entities like '%%SP;' or '%%NL;' to
indicate whitespace in the data format instead?", propName, wsVisible,
hexCodePoint)
}
val rawList = raw.split("\\s+").toList