David Lloyd Even if we override all the CDI literals and replace AnnotationLiteral with Weld's copy of it using PrivilegedAction, it only means that Weld itself will access it in a proper way. Any other application deployed to WFLY can still define it's own literals which will be extending CDI classes (or leveraging literals from CDI directly) and the problem persists. Or is the problem just Weld itself not using PrivilegedAction? |