db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Russell (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JDO-555) All calls to Class.getMethod and Method.invoke (among others) need to be invoked inside a doPrivileged block.
Date Wed, 16 Jul 2008 21:17:31 GMT

    [ https://issues.apache.org/jira/browse/JDO-555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614108#action_12614108
] 

Craig Russell commented on JDO-555:
-----------------------------------

    [java] 1) testNewInstanceInterface(org.apache.jdo.tck.api.persistencemanager.NewInstance)java.lang.RuntimeException:
access denied (java.lang.RuntimePermission accessDeclaredMembers)
    [java] 	at org.datanucleus.metadata.ClassMetaData.addMetaDataForMembersNotInMetaData(ClassMetaData.java:456)
    [java] 	at org.datanucleus.metadata.ClassMetaData.populate(ClassMetaData.java:254)
    [java] 	at org.datanucleus.enhancer.asm.ASMImplementationGenerator.enhance(ASMImplementationGenerator.java:140)
    [java] 	at org.datanucleus.enhancer.AbstractImplementationCreator.newInstance(AbstractImplementationCreator.java:187)
    [java] 	at org.datanucleus.enhancer.AbstractImplementationCreator.newInstance(AbstractImplementationCreator.java:110)
    [java] 	at org.datanucleus.ObjectManagerImpl.newInstance(ObjectManagerImpl.java:1873)
    [java] 	at org.datanucleus.jdo.JDOPersistenceManager.newInstance(JDOPersistenceManager.java:1525)
    [java] 	at org.apache.jdo.tck.api.persistencemanager.NewInstance.testNewInstanceInterface(NewInstance.java:64)
    [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] 	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:259)
    [java] 	at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
    [java] 	at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
    [java] 	at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)



> All calls to Class.getMethod and Method.invoke (among others) need to be invoked inside
a doPrivileged block.
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: JDO-555
>                 URL: https://issues.apache.org/jira/browse/JDO-555
>             Project: JDO
>          Issue Type: Bug
>          Components: api2, api2-legacy
>    Affects Versions: JDO 2 maintenance release 1
>            Reporter: Matthew T. Adams
>            Assignee: Andy Jefferson
>            Priority: Minor
>             Fix For: JDO 2 maintenance release 2
>
>         Attachments: ClassMetaData.java-patch, datanucleus.patch, datanucleus.patch,
jdo-555.patch, jdo-555.patch, jdo-555.patch, xmlbean.patch
>
>
> Discovered in review of patch to JDO-545.

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


Mime
View raw message