Skip to content

Commit

Permalink
refactored to deal with class loader issues in ErrorBundles for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed Mar 5, 2024
1 parent c3624a5 commit 4ff20f7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,14 @@ public static void verifySignedMail(MimeMessage msg, PKIXParameters param)
{
ErrorBundle errMsg = new ErrorBundle(RESOURCE_NAME,
"SignedMailValidator.sigValid");
errMsg.setClassLoader(SignedMailValidator.class.getClassLoader());
System.out.println(errMsg.getText(loc));
}
else
{
ErrorBundle errMsg = new ErrorBundle(RESOURCE_NAME,
"SignedMailValidator.sigInvalid");
errMsg.setClassLoader(SignedMailValidator.class.getClassLoader());
System.out.println(errMsg.getText(loc));
// print errors
System.out.println("Errors:");
Expand Down

0 comments on commit 4ff20f7

Please sign in to comment.