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 incorrect diagnostic. #142

Merged
merged 2 commits into from
Nov 30, 2018
Merged

Conversation

mbeckerle
Copy link
Contributor

Missing terminator was reporting itself as a missing initiator.
I.e., message like Parse Error: Initiator ';' not found.
Except ";" is the terminator of the element, not the initiator.

Due to object-construction-timing stuff I think. That or scala bugs.
But sub-class overrides were not happening to provide the member from
which this name was derived. Why it got the wrong one, I don't know, I
would have expected "unbound/undefined" or something.

Just passing the parameter to constructor rather than overriding a
member to provide it, solves the problem.

@mbeckerle
Copy link
Contributor Author

This is DAFFODIL-2204. Will add to the commit message.

Copy link
Member

@stevedlawrence stevedlawrence left a comment

Choose a reason for hiding this comment

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

+1

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

I.e., message like Parse Error: Initiator ';' not found.
Except ";" is the terminator of the element, not the initiator.

Due to object-construction-timing stuff I think. That or scala bugs.
But sub-class overrides were not happening to provide the member from
which this name was derived. Why it got the wrong one, I don't know, I
would have expected "unbound/undefined" or something.

Just passing the parameter to constructor rather than overriding a
member to provide it, solves the problem.

DAFFODIL-2204
@mbeckerle mbeckerle merged commit d986442 into apache:master Nov 30, 2018
@mbeckerle mbeckerle deleted the daffodil-2204-delim-msg branch November 30, 2018 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants