jamesfredley opened a new pull request, #16003:
URL: https://github.com/apache/grails-core/pull/16003

   ## Summary
   
   - add a test-only characterization spec that pins the compile-time 
data-binding allowlist contract via OBSERVABLE behavior through the public 
binding API
   - covers a domain (via `DataBindingUtils.bindObjectToInstance`) and a 
controller-action `@Validateable` command
   - asserts which properties actually bind vs stay null, so the test tracks 
the generated allowlist's effect rather than an internal field
   
   ## Behavior characterized (current 8.0.x)
   
   - Domain: `name` and nested `address.street` bind; 
`id`/`version`/`dateCreated`/`lastUpdated` and a declared non-allowlisted 
`Object` property stay null
   - `@Validateable` command: declared special properties bind; the 
non-allowlisted property stays null
   
   ## Scope note
   
   Test-only; no production changes. Exercises only public data-binding APIs 
(per the repo's test-through-public-API policy); it does not read the 
AST-generated allowlist field.
   
   ## Verification
   
   - :grails-test-suite-web:test --tests DefaultDatabindingWhitelistBehaviorSpec
   - :grails-test-suite-web:test
   - git diff --check
   
   This is an AI-generated starting point pinning the data-binding 
code-generation contract.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to