[ 
https://issues.apache.org/jira/browse/DAFFODIL-2460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dave Thompson closed DAFFODIL-2460.
-----------------------------------

Verified the specified commit (commit ec0ed927cd30a9dd64dbba0ce529405fa051cd25) 
is included in the latest pull from the daffodil repository.

Verified changes identified in commit comment were implemented.

Verified the affected daffodil sub-project sbt test suite execute successfully 
including the added test.

Verified the nightly test schemas compile and save successfully.

Verified the nightly test suite executes successfully.

> Unordered Sequence misidentifies referenced elements Namespaces
> ---------------------------------------------------------------
>
>                 Key: DAFFODIL-2460
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2460
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End
>    Affects Versions: 3.0.0
>            Reporter: Olabusayo Kilo
>            Assignee: Steve Lawrence
>            Priority: Major
>             Fix For: 3.2.0
>
>         Attachments: TestUnorderedSequenceNamespace.scala, 
> example_a02_targetnamespace.dfdl.xsd, example_nested_namespaces.dfdl.xsd, 
> example_no_targetnamespace.dfdl.xsd
>
>
> I get the following error when running the above test. For some context 
> a02:inty is from an imported schema with targetNamespace "http://a02.com"; 
> (..a02_targetnamespace.dfdl.xsd) and b02:inty is from an inlcuded schema with 
> no targetnamespace (no_targetnamespace.dfd.xsd). The targetnamesapce of the 
> main schema (nested_namespaces.dfdl.xsd) is "http://b02.com";
> {noformat}
> java.lang.AssertionError: pf compile errors: Schema Definition Error: Two or 
> more members of the unordered sequence 
> (b02:seq2::LocalComplexTypeDef::sequence[1]) have the same name and the same 
> namespace.
> Namespace: http://b02.com     Name: inty.
> Schema context: sequence[1] Location line 12 column 8 in 
> file:/tmp/anon7335421393015500745.dfdl.xsd
>       at org.junit.Assert.fail(Assert.java:89)
>       at 
> TestUnorderedSequenceNamespace$.testDataProcessor(TestUnorderedSequenceNamespace.scala:32)
>       at 
> TestUnorderedSequenceNamespace$.dpNamespaces$lzycompute(TestUnorderedSequenceNamespace.scala:24)
>       at 
> TestUnorderedSequenceNamespace$.dpNamespaces(TestUnorderedSequenceNamespace.scala:24)
>       at 
> TestUnorderedSequenceNamespace.test_DataProcessor_parse(TestUnorderedSequenceNamespace.scala:61)
>       at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>       at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
>       at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>       at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
>       at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>       at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
>       at 
> org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
>       at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
>       at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
>       at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
>       at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
>       at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
>       at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
>       at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
>       at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
>       at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
>       at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
>       at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
>       at 
> com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
>       at 
> com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
>       at 
> com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:220)
>       at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:53)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to