[
https://issues.apache.org/jira/browse/DAFFODIL-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17264118#comment-17264118
]
Dave Thompson commented on DAFFODIL-1204:
-----------------------------------------
Test test_namespaceSpecialChars() is still commented out in
TestNamespaces.scala file.
I uncommented the and had to add ": Unit = " to the Test def statement for it
to run.
When I executed the tests I got the following error:
[info] Test
org.apache.daffodil.section06.namespaces.TestNamespaces.test_namespaceSpecialChars
started
[error] Test
org.apache.daffodil.section06.namespaces.TestNamespaces.test_namespaceSpecialChars
failed: org.apache.daffodil.xml.QNameSyntaxException: Invalid syntax for QName
'b·:simTyp'., took 0.014 sec
[error] at
org.apache.daffodil.xml.RefQNameFactoryBase.$anonfun$resolveRef$1(QNameBase.scala:495)
[error] at scala.util.Try$.apply(Try.scala:213)
[error] at
org.apache.daffodil.xml.RefQNameFactoryBase.resolveRef(QNameBase.scala:479)
[error] at
org.apache.daffodil.xml.RefQNameFactoryBase.resolveRef$(QNameBase.scala:477)
[error] at
org.apache.daffodil.xml.RefQNameFactory$.resolveRef(QNameBase.scala:500)
[error] at org.apache.daffodil.xml.QName$.resolveRef(QNameBase.scala:114)
[error] at
org.apache.daffodil.dsom.ElementDeclMixin.$anonfun$namedTypeQName$1(ElementDeclMixin.scala:129)
[error] at scala.Option.map(Option.scala:230)
.
.
Full trace is attached.
> Unicode U+00B7 character not allowed in namespace prefix
> --------------------------------------------------------
>
> Key: DAFFODIL-1204
> URL: https://issues.apache.org/jira/browse/DAFFODIL-1204
> Project: Daffodil
> Issue Type: Bug
> Components: Front End
> Reporter: Mike Beckerle
> Assignee: IanCarlson
> Priority: Minor
> Labels: reverify
>
> Some changes in 0.16.0 have us using the scala ConstructingParser to parse
> DFDL schemas now.
> A small incompatibility with the prior use of the scala basic XML loader was
> found.
> Test test_namespaceSpecialChars() moved to scala debug.
> The problem is that the Uncode codepoint U+00B7 is not properly accepted as
> part of a namespace prefix, so the test fails now.
> This was reported as a bug in the scala library.
> https://issues.scala-lang.org/browse/SI-9060
> The issue that has us switching from basic XML loader to ConstructingParser
> is unrelated to this small regression It is CDATA region preservation that
> has us switching parsers. This problem looks like it is getting solved in
> Scala 2.11.7, which we'll switch to some day, allowing us to go back to the
> basic scala XML loader - and that would then fix this issue with the Unicode
> B7 codepoint.
> So I suggest no action to address this bug.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)