RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1009248 - Cannot access public methods of private inner classes via reflection
Summary: Cannot access public methods of private inner classes via reflection
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: java-1.6.0-openjdk
Version: 6.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Andrew Haley
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-18 04:49 UTC by James Livingston
Modified: 2018-12-09 17:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-29 11:30:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 486423 0 None None None Never
Sun Bug Database 4071957 0 None None None Never

Description James Livingston 2013-09-18 04:49:39 UTC
This is an existing bug reported in the Sun/Oracle bug tracker http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4071957, opened over 16 years ago.

If a method on a class returns an instance of a private inner class, public methods on it cannot be accessed via reflection. This can impact the evaluation of JSPs if a servlet/filter adds a parameter which is returned from HashMap.values() or similar.

To reproduce the error, run:
  public static void main(String argv[]) throws Exception {
    Set keys = new HashMap().keySet();
    Method method = keys.getClass().getMethod("iterator");
    System.out.println(method.invoke(keys));
}


An update on the bug in 2005 suggests it is now possible to implement a fix using data available since JDK 5.

Comment 2 Deepak Bhole 2013-09-18 19:38:57 UTC
Assigning to Andrew Haley to take an initial look with regards to feasibility (since there may be security concerns).

Andrew, any issues with us fixing this issue? If not, I can assign it to one of the engineers.

Comment 3 RHEL Program Management 2013-10-13 23:09:38 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.


Note You need to log in before you can comment on or make changes to this bug.