attribute and element named the same #92

Closed
eed3si9n opened this Issue Oct 17, 2011 · 1 comment

Comments

Projects
None yet
2 participants
@eed3si9n
Owner

eed3si9n commented Oct 17, 2011

originally reported by ido in mailing list.

steps

  1. compile qstat.xsd.
  2. compile the generated code.

problem

[error] /Users/tamir/work/progs/small/sge/target/scala-2.9.1/
src_managed/main/at/csf/sge/qstat.scala:75: state is already defined
as value state
[error]   lazy val state = job_list_tsequence2.state
[error]            ^
[error] one error found

expectation

the generated code compiles.

note

renaming the second state to state2 may work for simple case, but may not solve the case with derivation.
a prefix option probably would work better, so the attribute version can be attr_state.

@ghost ghost assigned eed3si9n Oct 25, 2011

@eed3si9n eed3si9n closed this in 116ae39 Nov 8, 2011

@eed3si9n

This comment has been minimized.

Show comment
Hide comment
@eed3si9n

eed3si9n Nov 8, 2011

Owner

@martiell another command line option!

Owner

eed3si9n commented Nov 8, 2011

@martiell another command line option!

@ghost ghost assigned martiell Nov 8, 2011

martiell added a commit to martiell/scalaxb that referenced this issue Nov 10, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment