Java

Synthetic methods in Java

Synthetic methods are often referred to as bridge methods in Java generics world. These methods are created by the Java compiler as a result of type erasure when the signature of the inherited methods change when a type extends or implements parameterized classes or interfaces. The compiler generates synthetic methods Read more…

By Arul, ago
Java

javac recognized options are hidden – javac exposed

I was reading a recent blog entry from A. Sundararajan which uncovers one of the hidden options used to be available only for debugging Java compiler. This option is an undocumented feature which explains the underpinnings behind some of the various language features introduced in JDK1.5. OpenJDK provides an opportunity Read more…

By Arul, ago