Kengo's blog

Technical articles about original projects, JVM, Static Analysis and TypeScript.

Entries from 2012-01-22 to 1 day

How JVM handles `byte` values -- a difference between JLS and JVMS

Java has a primitive type called `byte`, but the JVM doesn't have opcodes to calculate them. JVM handles them as `int`. It's the reason why we cannot code like: Javaにはbyteというプリミティブ型がありますが、JVMにはbyteを演算するためのオペ…