Back to bug 1029387

Who When What Removed Added
Jonáš Trantina 2013-11-12 10:27:43 UTC Link ID JBoss Issue Tracker WFLY-2493
Stan Silvert 2013-11-12 13:02:28 UTC CC ssilvert
Assignee ssilvert fjuma
Farah Juma 2013-11-14 20:59:36 UTC Link ID JBoss Issue Tracker JBEE-146
Farah Juma 2013-11-14 21:35:44 UTC Status NEW POST
Target Release --- EAP 6.3.0
Marek Schmidt 2013-11-27 08:55:23 UTC CC fjuma
Flags needinfo?(fjuma)
Farah Juma 2013-11-27 14:49:52 UTC Flags needinfo?(fjuma)
Marek Schmidt 2013-11-27 16:19:59 UTC Doc Text Cause:

Due to a JDK issue JDK-4071957 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4071957

Consequence:

When trying to access public method/field of non-public class via EL I get
"java.lang.IllegalAccessException: Class javax.el.BeanELResolver can not access a member of class X with modifiers "private"".

Workaround (if any):

none?

Result:
Doc Type Bug Fix Known Issue
Russell Dickenson 2013-12-03 13:48:49 UTC Doc Text Cause:

Due to a JDK issue JDK-4071957 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4071957

Consequence:

When trying to access public method/field of non-public class via EL I get
"java.lang.IllegalAccessException: Class javax.el.BeanELResolver can not access a member of class X with modifiers "private"".

Workaround (if any):

none?

Result:
When trying to access the public method or field of a non-public class via EL the following error message results:

----
"java.lang.IllegalAccessException: Class javax.el.BeanELResolver can not access a member of class X with modifiers "private"
----

This issue has been resolved via a workaround, in which etAccessible(true) on the method before invoking it, thus suppress Java access checking.
Arun Babu Neelicattu 2014-03-12 00:17:08 UTC CC aneelica
Jimmy Wilson 2014-03-14 05:04:06 UTC Blocks 1076320
Carlo de Wolf 2014-03-17 11:28:03 UTC Blocks 1076061
Kabir Khan 2014-04-04 18:54:42 UTC Status POST ON_QA
CC kkhan
Target Milestone --- DR5
Marek Schmidt 2014-04-07 09:48:14 UTC QA Contact maschmid mjobanek
Matous Jobanek 2014-04-17 11:22:51 UTC Status ON_QA VERIFIED
Marek Schmidt 2014-05-12 14:44:20 UTC CC maschmid
Doc Text When trying to access the public method or field of a non-public class via EL the following error message results:

----
"java.lang.IllegalAccessException: Class javax.el.BeanELResolver can not access a member of class X with modifiers "private"
----

This issue has been resolved via a workaround, in which etAccessible(true) on the method before invoking it, thus suppress Java access checking.
Cause:

BeanELResolver did not try to override Method.invoke access control to access public methods or fields of non-public classes.

Consequence:

When trying to access the public method or field of a non-public class via Expression Language (EL) the following error message resulted:

----
"java.lang.IllegalAccessException: Class javax.el.BeanELResolver can not access a member of class X with modifiers "private"
----

Fix:

This issue has been resolved by calling setAccessible(true) as appropriate in the EL implementation.

Result:

Public methods or fields of non-public class are now accessile via EL
Doc Type Known Issue Bug Fix
Scott Mumford 2014-05-13 02:23:13 UTC CC smumford
Doc Text Cause:

BeanELResolver did not try to override Method.invoke access control to access public methods or fields of non-public classes.

Consequence:

When trying to access the public method or field of a non-public class via Expression Language (EL) the following error message resulted:

----
"java.lang.IllegalAccessException: Class javax.el.BeanELResolver can not access a member of class X with modifiers "private"
----

Fix:

This issue has been resolved by calling setAccessible(true) as appropriate in the EL implementation.

Result:

Public methods or fields of non-public class are now accessile via EL
In previous versions of JBoss EAP 6 the BeanELResolver did not try to override Method.invoke access control to access public methods or fields of non-public classes.

This caused issues when trying to access the public method or field of a non-public class via Expression Language (EL) the following error message resulted:

----
"java.lang.IllegalAccessException: Class javax.el.BeanELResolver can not access a member of class X with modifiers "private"
----

This issue has been resolved by calling setAccessible(true) as appropriate in the EL implementation. Public methods or fields of non-public class are now accessile via EL
Ron Šmeral 2014-07-29 14:39:40 UTC Status VERIFIED CLOSED
CC rsmeral
Resolution --- CURRENTRELEASE
Last Closed 2014-07-29 10:39:40 UTC

Back to bug 1029387