fix for SF:3601264 - get the constant pool from the CFG, not the class when using CFG