Repository navigation
DBB application-conf: a comment ending in a backslash no longer swallows the next property (Part of #8412) - #8968
Merged
Conversation
…ows the next property (Part of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #8412. Takes the DBB
application-conf/file.propertiesline.The other open line ("tab characters and REPLACE reach the det path") is already covered by #8654 (
tests/cobol_mainframe/test_det_tab_replace_8412.py), so I did not redo it.What changed
_dbb_properties(the Java.propertiesreader behind DBBcobol_dependencySearch) had two continuation bugs, found by reading it against Java properties syntax:# files under C:\build\ws\, a normal thing to write in a DBB conf) continued onto the next line and swallowed the next property, so the whole copy-library declaration vanished and the COPY order fell back to the default.\\, a literal backslash) was treated as a continuation.Now a comment never continues and only an odd run of trailing backslashes does. New tests also pin that a
#at the start of a continuation line belongs to the value, and that the last of two definitions of a key in one file wins. Authored fixtures, invented names.Checklist: partial [c:19982422] -- reader hardened and pinned; remaining DBB property forms are under Sibling gaps.
Class / Sibling gaps
Class: the DBB
application-confproperty reader and the copy paths it declares (the Java.propertiessyntax it must honour, and the zAppBuild properties naming copybook directories). Handled and tested: comments,=/:/whitespace separators, continuations, scoped::values, the three property files and their override order,${var}substitution, the search-rule forms, recursive masks (#8573, #8869, this PR). Fixed here: comment-continuation and even-backslash.Sibling gaps:
k\:x=1reads keyk\): exotic, a DBB key never contains one; source: JavaProperties.load.cobol_cpyPDS(MVS dataset copy libraries) is not a directory path: out of scope for the file-based order.::pattern-scopedcobol_dependencySearchdeclares nothing (per-program scoping needs the program path in the reader): different mechanism.Gates
pytest tests/cobol_mainframe/test_copy_dbb_conf_8412.py35 passed;pr_gates.py --fast9/9 pass. Not run:--ratchets(the reader only touchesapplication-confproperty files, none in the pinned corpora; no golden change expected).Lessons for agents
/tmp/gitgalaxy-scratch/claude/<issue>/can be shared with another worker on the same issue number: name your files uniquely (a stalebody.mdwas another worker's PR body).🤖 Generated with Claude Code