for (int i = 0; i < n; i++){
int j = list[i]+1;
if ( j <= 0 ) continue;
ConstantObject c = table[ (int)code[j]&0xff ];
if ( c.shared )
throw new DataFormatException("code reference to shared constant");
int v = c.index;
if ( v < 0 )
throw new DataFormatException("code reference to deleted constant at "+qualifiedName()+"+"+Integer.toHexString(j));
if ( v > 255 )
throw new DataFormatException("ldc subscript out of range at "+qualifiedName()+"+"+Integer.toHexString(j));
code[j] = (byte)v;
}
}
if ( wideConstantRefInstructions != null ){
int list[] = wideConstantRefInstructions;
int n = list.length;
for (int i = 0; i < n; i++){
int j = list[i]+1;
if ( j <= 0 ) continue;
ConstantObject c = table[ getUnsignedShort(j) ];
if ( c.shared )
throw new DataFormatException("code reference to shared constant at "+qualifiedName()+"+"+Integer.toHexString(j));
int v = c.index;
if ( v < 0 )
throw new DataFormatException("code reference to deleted constant at "+qualifiedName()+"+"+Integer.toHexString(j));
putShort( j, (short)v );
}
}
}