Are value types supposed to work at all currently?

Simon Ochsenreither simon at
Tue May 19 15:15:30 UTC 2015

I'm currently working on my talk about value types for tomorrow, and it seems
that currently even the most basic value types are broken:
public final __ByValue class Cell {
  public Cell(int value) {
    this.value = value;
  public final int value;
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.VerifyError: Bad instruction: cb
Exception Details:
    Cell.<init>(I)V @0: fast_agetfield
    Error exists in the bytecode
    0000000: cb00 b700 01cb 001b b500 02b1          

    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(
    at java.lang.Class.privateGetMethodRecursive(
    at java.lang.Class.getMethod0(
    at java.lang.Class.getMethod(
    at sun.launcher.LauncherHelper.validateMainClass(
    at sun.launcher.LauncherHelper.checkAndLoadMain(
Is this expected? Is there some working branch/revision somewhere which is
usable for a demo?
PS: What's the suggested way to inspect the "bytecode" of specialized classes
(the one after the generic type is instantiated)?

More information about the valhalla-dev mailing list