Hacker News new | ask | show | jobs
by newmana 1068 days ago
They might be talking about the checkcast operation: https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.ht...

This is generated when you do something like: final Main value = list.get(0);

http://henrikeichenhardt.blogspot.com/2013/05/how-are-java-g...

1 comments

The cast is added by javac, so it just needs to verify the object on the stack to be compatible w/ the provided class. That part is very simple.