[rustjava-2026-09-17-link-lambdametafactory-boxing-adapter-adopt-p0] feat: 람다 링커에 int↔Integer 어댑터 — 한 쌍만 - #103
Merged
Merged
Conversation
…feat: 람다 링커에 int↔Integer 어댑터 — 한 쌍만 jvm-bytecode/src/lambda.rs 의 통과 전용 술어를 위치별 계획(plan)으로 바꿨다. 통과는 종전 passes 를 먼저 묻고, 그 밖에는 int↔Integer 한 쌍만 삽입한다 (Integer.valueOf / Integer 검사 후 intValue · null → NPE · 다른 타입 → CCE). 언박싱 판정은 instantiatedMethodType 을 읽는다. LambdaCallSite 에 그 필드를 추가. - LambdaBoxing: 거부 → 3 (OpenJDK 26 과 동일) - LambdaBoxingKinds(신규): 위치 5 + 예외 3, OpenJDK 출력과 줄 단위 일치 - LambdaBoxingLong·LambdaUnboxingShort(신규): 여전히 거부 - 변이 6종 전부 red Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Ticket:
rustjava-2026-09-17-link-lambdametafactory-boxing-adapter-adopt-p0(채택2026-09-17-link-lambdametafactory#p0)무엇을
jvm-bytecode/src/lambda.rs: 통과 전용 술어adapts→ 위치별 계획plan. 통과는 종전passes를 먼저 그대로 묻고, 그 밖에는int↔Integer한 쌍만 삽입한다(나갈 때Integer.valueOf· 들어올 때Integer검사 후intValue· null → NPE · 다른 타입 → CCE). 링크 판정과 실행 시 변환이 같은 함수에서 나온다.classfile::LambdaCallSite에instantiated_method_descriptor추가 — 지워진Object가Integer인지Short인지 가르는 유일한 근거.실측
LambdaBoxing3(OpenJDK 26 동일)LambdaBoxingKinds(신규)4/42/7/obj:5/integer:6/npe in/cce/npe out— OpenJDK 26.0.2.1 과 줄 단위 일치LambdaBoxingLong·LambdaUnboxingShort(신규)변이 6종(인자/반환 박싱 제거 · instantiated 무시 · long 허용 · Integer 검사 제거 · 반환 언박싱 제거) 전부 red.
verify-javac-fixtures.sh33/33 재현.DoD
fmt · clippy(stable/beta/wasm32) ·
cargo test --all· worklog/ledgers/dod-parity/exception-classes/merge-dropped 전부 rc0.🤖 Generated with Claude Code