eclipse – Java Cipher.getInstance() failing on ‘missing type’ NoSuchPaddingException with try/catch

I have,

Cipher cipher = null;
try {
    cipher = Cipher.getInstance("AES/GCM/NoPadding");
} catch (GeneralSecurityException e) {
    System.out.println("whut");
}

Eclipse wiggles on ‘getInstance’ and says

The method getInstance(String) from the type Cipher refers to the missing type NoSuchPaddingException

I’m confused by this. Other answers on this site state that NoSuchPaddingException is a ‘checked exception’, falling under GenerateSecurityException.

Is this a configuration issue in Eclipse or something else?

Read more here: Source link