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

LDDtool: exposed class has a component class with a component exposed class #142

Closed
rchenatjpl opened this issue Mar 5, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@rchenatjpl
Copy link

If I read CCB-204 correctly, this is a bug, but it's highly possible I read it incorrectly.

I think lddtool should throw an error on the attached, but it doesn't. Super_All_Info has component All_Info which has component Observation_Information, and Super_All_Info and Observation_Information are "exposed" (a term I didn't know about until I saw the error message when I set All_Info's element_flag to true as well).
ccb204lddtoolinputa.xml.gz

@rchenatjpl rchenatjpl added the bug Something isn't working label Mar 5, 2020
@rchenatjpl rchenatjpl changed the title exposed class has a component class with a component exposed class LDDtool: exposed class has a component class with a component exposed class Mar 8, 2020
@jshughes
Copy link
Collaborator

Nice catch and test case. The validate code falsely assumed subclasses had been identified. To fix the problem the algorithm was changed to following "component_of" chain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants