Skip to content

JAIPilot campaign evaluation: Spring Boot #51398 - #1

Open
skrcode wants to merge 1 commit into
jaipilot-campaign/spring-boot-51398-basefrom
jaipilot-campaign/spring-boot-51398-head
Open

JAIPilot campaign evaluation: Spring Boot #51398#1
skrcode wants to merge 1 commit into
jaipilot-campaign/spring-boot-51398-basefrom
jaipilot-campaign/spring-boot-51398-head

Conversation

@skrcode

@skrcode skrcode commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Exact cloud-only evaluation mirror of spring-projects#51398

Exact upstream head: 915e477

JAIPilot must return at most one small, behavior-preserving, independently provable companion draft or leave this PR unchanged. No repository build is being run on a developer laptop.

RequireNewOrMatchingContentFileHandler reads the already generated file
through content.getInputStream().readAllBytes(). InputStream.readAllBytes
does not close the stream, and the stream is never assigned, so it cannot
be closed at all.

During AOT processing the content is a FileSystemResource, so each
comparison leaks a file handle. FileSystemGeneratedFiles already uses
try-with-resources when it consumes an InputStreamSource.

Read the existing content inside a try-with-resources block.

See spring-projectsgh-51385

Signed-off-by: dlwldn30 <dlwldn30@naver.com>
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