8164399: inference of thrown variable does not work correctlySummary: Logic for inferring thrown variables should exclude non proper bounds as per JLS 18.1Reviewed-by: vromero, dlsmith