fix superheating and supercooling for java backend

@traiansf @yilongli please review
No big deal, but I believe that klabel is not needed in this case, because that is the default klabel anyway.