Tagged articles

Bridge Methods

2 articles · Page 1 of 1
Java Tech Workshop
Java Tech Workshop
Sep 12, 2026 · Fundamentals

Java Generics Erasure Deep Dive: What Gets Erased, Bridge Methods, and Runtime Type Recovery

This article explains Java generics erasure rules, why erasure exists for backward compatibility, how the compiler inserts checkcast instructions, the purpose and mechanics of bridge methods, how generic signatures survive in class files via the Signature attribute, and how reflection and TypeToken patterns recover type information at runtime.

Bridge MethodsJVMJava Generics
0 likes · 25 min read
Java Generics Erasure Deep Dive: What Gets Erased, Bridge Methods, and Runtime Type Recovery
Qunar Tech Salon
Qunar Tech Salon
Dec 5, 2014 · Fundamentals

10 Surprising Java Language Features You Might Not Know

This article reveals ten little‑known quirks of the Java language—such as the illusion of checked exceptions, overloads with differing return types, bridge methods, confusing array syntax, type‑use annotations, compound assignment nuances, hidden goto‑like control flow, type aliases, undecidable generic relationships, and type intersections—illustrated with concrete code examples.

Bridge MethodsChecked ExceptionsType System
0 likes · 13 min read
10 Surprising Java Language Features You Might Not Know