Ad
  • Default User Avatar

    You are importing some obscure exception class that is not part of the Java standard library. It's probably in your classpath and Eclipse picked the wrong one. The package java.lang is imported by default. If you remove the import line, then it will use java.lang.IllegalArgumentException.