[ 
https://issues.apache.org/jira/browse/OPENJPA-244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12501024
 ] 

David Jencks commented on OPENJPA-244:
--------------------------------------

Would it make any sense to, rather than having a class with static methods, 
having an interface/abstract class and a static INSTANCE?  Then some 
initialization (static) code could decide which implementation is appropriate 
for the environment: e.g. if no security manager is installed we wouldn't need 
the doPrivileged code?  I don't know if going through the doPrivileged code 
when it isn't doing anything incurs enough expense to make this worthwhile.

> Java 2 Security enablement
> --------------------------
>
>                 Key: OPENJPA-244
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-244
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 0.9.8
>            Reporter: Kevin Sutter
>         Attachments: J2DoPrivHelper.java
>
>
> Via some testing with the WebSphere Application Server, it's been discovered 
> that we're missing some doPriv blocks through out the OpenJPA code base.  
> This JIRA report will be used to resolve these issues.  More specific 
> examples will be posted later.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to