You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Dave Thompson (Jira)" <ji...@apache.org> on 2023/03/01 11:10:00 UTC
[jira] [Commented] (DAFFODIL-1217) Alignment test not appropriately issuing warning for optional occurrence.
[ https://issues.apache.org/jira/browse/DAFFODIL-1217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17695004#comment-17695004 ]
Dave Thompson commented on DAFFODIL-1217:
-----------------------------------------
This appears to still be an issue. Uncommented the specified test and got the following result:
[error] Test org.apache.daffodil.section12.aligned_data.TestAlignedData.test_alignmentOptionalElem03 failed: org.apache.daffodil.tdml.TDMLExceptionImpl: (Implementation: daffodil) "Diagnostic message(s) were expected but not found."
[error] Expected: Schema Definition Warning Palceholder
[error] No diagnostic messages were issued., took 0.193 sec
[error] at org.apache.daffodil.tdml.TDMLException$.apply(TDMLException.scala:34)
[error] at org.apache.daffodil.tdml.VerifyTestCase$.verifyAllDiagnosticsFound(TDMLRunner.scala:1779)
[error] at org.apache.daffodil.tdml.ParserTestCase.verifyParseResults(TDMLRunner.scala:1184)
[error] at org.apache.daffodil.tdml.ParserTestCase.runParseExpectSuccess(TDMLRunner.scala:1289)
[error] at org.apache.daffodil.tdml.ParserTestCase.$anonfun$runProcessor$2(TDMLRunner.scala:989)
[error] at org.apache.daffodil.tdml.ParserTestCase.$anonfun$runProcessor$2$adapted(TDMLRunner.scala:979)
[error] at scala.util.Either$RightProjection.foreach(Either.scala:652)
[error] at org.apache.daffodil.tdml.ParserTestCase.runProcessor(TDMLRunner.scala:979)
[error] at org.apache.daffodil.tdml.TestCase.run(TDMLRunner.scala:922)
[error] at org.apache.daffodil.tdml.DFDLTestSuite.runOneTest(TDMLRunner.scala:452)
[error] at org.apache.daffodil.tdml.Runner.runOneTest(RunnerFactory.scala:229)
[error] at org.apache.daffodil.tdml.Runner.runOneTest(RunnerFactory.scala:235)
[error] at org.apache.daffodil.section12.aligned_data.TestAlignedData.test_alignmentOptionalElem03(TestAlignedData.scala:126)
[error] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[error] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[error] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[error] at java.lang.reflect.Method.invoke(Method.java:568)
[error] ...
> Alignment test not appropriately issuing warning for optional occurrence.
> -------------------------------------------------------------------------
>
> Key: DAFFODIL-1217
> URL: https://issues.apache.org/jira/browse/DAFFODIL-1217
> Project: Daffodil
> Issue Type: Bug
> Components: Diagnostics, Usability
> Reporter: Taylor Wise
> Assignee: Dave Thompson
> Priority: Major
> Labels: verified
> Fix For: 3.5.0
>
>
> The expected warning according to the test is the following:
> element.e is an optional element or a variable-occurrence array and its alignment (2) is not the same as element.one's alignment (1)
> No error or warning is received.
> edu.illinois.ncsa.daffodil.section12.aligned_data
> under the 'new' folder: test_alignmentOptionalElem03()
--
This message was sent by Atlassian Jira
(v8.20.10#820010)