The call Integer.parseInt("-", 10) incorrectly returns 0.
It should throw a NumberFormatException.
There is a similar problem with Long.parseLong("-", 10).
            
It should throw a NumberFormatException.
There is a similar problem with Long.parseLong("-", 10).
- duplicates
 - 
                    
JDK-1228227 Integer.parseInt("-") returns 0 instead of throwing NumberFormatException
-         
     - Closed
 
 -