Error It appears you are missing some classes resulting in an incomplete class hierarchy

Hello everybody,

I’m using proguard to obfusc and reduce size of a java library. So far it worked perfectly but now I got this error with a small method I have added :

Unexpected error
java.lang.RuntimeException:

It appears you are missing some classes resulting in an incomplete class hierarchy,
please refer to the troubleshooting page in the manual:

at proguard.ProGuard.execute(ProGuard.java:268) ~[proguard.jar:7.5.0]
at proguard.ProGuard.main(ProGuard.java:648) ~[proguard.jar:7.5.0]

the code inside the method is surrounded with try/catch. When I remove the try/catch and keep the code, it works fine…

Any idea what it could be ?

Thank you !

I just observed the same issue. How to resolve it? IDE: IntelliJ; JDK version: OpenJDK 17.

Here are more details:
proguard.evaluation.exception.IncompleteClassHierarchyException: Can’t find common super class of [com.cepheid.gxcore.network.core.AbstractG2ModuleAgent$2] (with 1 known super classes: com.cepheid.gxcore.network.core.AbstractG2ModuleAgent$2 and 1 unknown classes:
org.springframework.core.io.ByteArrayResource) and
[java.lang.Exception] (with 3 known super classes:
java.lang.Throwable,
java.lang.Exception,
java.lang.Object)

Thanks!