泛型擦除:编译器的糖衣与边界

Java 泛型是编译期的类型检查工具,运行时不存在——List<String> 和 List<Integer> 在 JVM 里是同一个类。擦除换来的是与老版本字节码的兼容,代价是一批「泛型做不到」的边界。知道边界在哪,遇 …

lbk_runtime@engineering-notes: ~ hover 展开 · Esc 收起
Last login: 2026-11-18 21:06:07 from console $ whoami LBK_Runtime — 后端 & AI 工程师,写 engineering-notes $ neofetch site: engineering-notes author: LBK_Runtime posts: 93 篇 · tags: 44 个 rss: /index.xml hint: 输入 help 查看可用命令
lbk_runtime@engineering-notes:~$