Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

circular xs:import crashes scalaxb #15

Closed
eed3si9n opened this issue Nov 22, 2010 · 1 comment
Closed

circular xs:import crashes scalaxb #15

eed3si9n opened this issue Nov 22, 2010 · 1 comment
Labels

Comments

@eed3si9n
Copy link
Owner

reported by Andreas Sewe.

steps

  1. compile a schema with circular imports like DocBook.

problem

$ scalaxb -p:http://www.w3.org/1999/xlink=xlink= -p:http://docbook.org/ns/docbook=docbook assembly.xsd docbook.xsd xlink.xsd
java.lang.RuntimeException: Circular import: List(scalaxb.compiler.xsd.Driver$$anon$3@5de9ac4, scalaxb.compiler.xsd.Driver$$anon$3@5982bcde, scalaxb.compiler.xsd.Driver$$anon$3@163dc0bb)
    at scala.Predef$.error(Predef.scala:58)
    at scalaxb.compiler.Module$class.sortByDependency(Module.scala:135)
    at scalaxb.compiler.xsd.Driver.sortByDependency(Driver.scala:32)
    at scalaxb.compiler.Module$class.processReaders(Module.scala:87)
    at scalaxb.compiler.xsd.Driver.processReaders(Driver.scala:32)
    at scalaxb.compiler.Module$class.processFiles(Module.scala:63)
    at scalaxb.compiler.xsd.Driver.processFiles(Driver.scala:32)
    at scalaxb.compiler.Main$.start(Main.scala:84)
    at scalaxb.compiler.Main$.main(Main.scala:32)
    at scalaxb.compiler.Main.main(Main.scala)

expectation

XML Schema allows circular imports. Handle it.

@eed3si9n
Copy link
Owner Author

0095e23

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant