8146747: java.time.Duration.toNanos() and toMillis() exception on negative durations Reviewed-by: rriggs, scolebourne