[ 
https://issues.apache.org/jira/browse/UIMA-5961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16875525#comment-16875525
 ] 

Marshall Schor commented on UIMA-5961:
--------------------------------------

A possible framework solution: change the constructor for exceptions to resolve 
the resource bundle at the time of exception creation, and later, change the 
methods which internationalize the message to use the previously resolved 
bundle.
 * The lookup of the resource bundle, although it can be slow, is "cached" by 
Java, so subsequent fetches for the same bundle in the same context should be 
fast.
 * This also will enable correct operation in (not as yet seen) future use 
cases where the cache will be explicitly managed by users.

Unless someone sees a flaw with this approach, I'll implement this.

> InternationalizedException getLocalizedMessage fails in pear
> ------------------------------------------------------------
>
>                 Key: UIMA-5961
>                 URL: https://issues.apache.org/jira/browse/UIMA-5961
>             Project: UIMA
>          Issue Type: Bug
>    Affects Versions: 2.10.3SDK
>            Reporter: Matthias Koch
>            Assignee: Marshall Schor
>            Priority: Major
>             Fix For: 2.10.4SDK
>
>         Attachments: UIMA-5961.diff, peartest.zip
>
>
> localized message does not work in the case of pears. The classloader stored 
> in the internationalizedException is wrong. The bundle cant be found in this 
> classloader.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to