hickey-ai opened a new pull request, #11464:
URL: https://github.com/apache/rocketmq/pull/11464

   ### Which Issue(s) This PR Fixes
   
   Fixes #11461
   
   ### Brief Description
   
   A bare relative target filename has no parent File. Guard that optional 
parent before mkdirs(), so copying to a new or existing file in the current 
directory works. Keep nested directory creation and the existing copy/overwrite 
behavior.
   
   This deliberately does not include the resource-closure work in #10210.
   
   ### How Did You Test This Change?
   
   - Exact-source regression: 4 tests, with the two relative-target cases 
failing with NPE before the fix and all 4 passing after.
   - Independent Java 8/Maven 3.6.3 run: `mvn -B -pl common -am 
-Dtest=IOTinyUtilsTest,IOTinyUtilsRelativePathTest 
-Dsurefire.failIfNoSpecifiedTests=false -DfailIfNoTests=false test`.
   - All 12 tests passed: 8 existing utility tests and 4 new regressions, with 
0 failures/errors/skips; Checkstyle/SpotBugs passed.
   - Controls cover nested parent creation and keeping an existing target 
intact when the source is absent. Tests use unique filenames and cleanup.
   - Entire published Git tree equals the independently tested local tree.
   
   No broker integration or whole-project test is claimed.
   
   AI assistance: OpenAI Codex was used for investigation, implementation and 
tests; commits include tooling provenance.
   


-- 
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