Bytecode 진단은 증상에서 확인할 classfile 계약을 역으로 고른다
instruction 개수만 세어 성능 결론을 내리면 JIT 최적화와 compiler lowering 차이를 실제 비용으로 오해합니다.
| 질문 | 비교 | 도구 |
|---|---|---|
| NoSuchMethodError | caller descriptor ↔ runtime class | javap -s -c |
| bridge frame | ACC_BRIDGE/SYNTHETIC·checkcast | javap -v·reflection |
| finally 실행 | normal/exception path·exception table | javap -c |
| lambda/concat | invokedynamic bootstrap | javap -v |
| 성능 | runtime profile·compiled code | JFR/JIT log 우선 |
핵심: linkage·synthetic frame·finally·lambda마다 다른 구조를 확인합니다.