openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albert Lee (JIRA)" <>
Subject [jira] Commented: (OPENJPA-1895) Minor reflection performance improvement.
Date Thu, 25 Nov 2010 06:15:13 GMT


Albert Lee commented on OPENJPA-1895:

Getting the following Java 2 security exception after the setAccessibility() calls are introduced:

Caused by: Access denied (java.lang.reflect.ReflectPermission
	at java.lang.SecurityManager.checkPermission(
	at java.lang.reflect.AccessibleObject.setAccessible(
	at org.apache.openjpa.lib.jdbc.ConfiguringConnectionDecorator.(
	... 45 more

	at org.apache.openjpa.lib.jdbc.ConfiguringConnectionDecorator.(
	at java.lang.J9VMInternals.initializeImpl(Native Method)
	at java.lang.J9VMInternals.initialize(
	at org.apache.openjpa.jdbc.schema.DataSourceFactory.installDBDictionary(
	at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(
Caused by: java.lang.RuntimeException: There were errors initializing your configuration:
	at org.apache.openjpa.lib.jdbc.ConfiguringConnectionDecorator.(
	at java.lang.J9VMInternals.initializeImpl(Native Method)

Need to enclose with doPriv, e.g. 

    AccessController.doPrivileged(J2DoPrivHelper.setAccessibleAction(ao, true)):

> Minor reflection performance improvement.
> -----------------------------------------
>                 Key: OPENJPA-1895
>                 URL:
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: performance
>    Affects Versions: 2.1.0
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>             Fix For: 2.1.0
> With this JIRA I'm going to call .setAccessable(true) on a number of the Reflection objects
in the code base. This will be a very minor performance improvement.

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

View raw message