I'm using Arquillian with JBoss EAP 6.4. I had a working test using an EAR file, and one of my team members added custom exceptions to our project; the issue is, all exceptions inherit from Throwable, which as a final method addSuppressed.
Using Arquillian, the EAR is deployed to the container. But this isn't allowed (see: Weld - JSR-299 Reference Implementation ) because of the customs exceptions. The simple solution is to remove the final field or just the final keyword, but I can't exactly go and edit Throwable itself.
How can I deploy my working Arquillian test with custom made working exceptions? And even above that, how are normal exceptions put in a container if this method isn't allowed?
Any help would be appreciated. Thanks!
Why would you want CDI container to scan and handle exception classes as beans? Shouldn't you just ignore them?