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

Fix NamespaceDifferencesOnly Warning when namespaces are same #1330

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

olabusayoT
Copy link
Contributor

@olabusayoT olabusayoT commented Oct 8, 2024

  • currently the code doesn't check if the namespaces are the same and reports that namespaces are different as long as the local names are duplicated. This is incorrect and we add a fix that only generates the error if the namespaces are actually different
  • fix incorrect de-duplication of Sibs where we were overwriting the initial duplicates with the later duplicates. Now we prioritize the first "duplicates" over any secondary ones

DAFFODIL-2938

Comment on lines -307 to +309
NextERDResovler -> trd: $trd\n
NextERDResovler -> looking for: $local\n
NextERDResovler -> nextERDMap: $nextERDMap\n""")
NextERDResolver -> trd: $trd\n
NextERDResolver -> looking for: $local\n
NextERDResolver -> nextERDMap: $nextERDMap\n""")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I stared at this way too hard trying to figure out what changed here, I might be dyslexic

Copy link
Contributor

@jadams-tresys jadams-tresys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

- currently the code doesn't check if the namespaces are the same and reports that namespaces are different as long as the local names are duplicated. This is incorrect and we add a fix that only generates the error if the namespaces are actually different
- fix incorrect de-duplication of Sibs where we were overwriting the initial duplicates with the later duplicates. Now we prioritize the first "duplicates" over any secondary ones

DAFFODIL-2938
@olabusayoT olabusayoT merged commit 96dbe0b into apache:main Oct 11, 2024
12 checks passed
@olabusayoT olabusayoT deleted the daf-2938-sameNamespaces branch October 11, 2024 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants