@HotSpotIntrinsicCandidate
public static long negateExact (long a)

Returns the negation of the argument, throwing an exception if the result overflows a long.

Parameters:
a    the value to negate

Returns:  the result

Exceptions:
ArithmeticException    if the result overflows a long

Since:  1.8