jakartaee / expression-language

Jakarta Expression Language
https://eclipse.org/ee4j/el
Other
68 stars 49 forks source link

Cannot call methods in an interface if implementing class is private #33

Closed glassfishrobot closed 10 years ago

glassfishrobot commented 10 years ago

Calling a method in an interface when the implementing class is private results in IllegalAccessException, as demonstrated by following code fragment.

ELProcessor elp = new ELProcessor();
Map<String, String> mmap = new HashMap<>();
mmap.put("aaa", "A");
mmap.put("bbb", "B");
elp.defineBean("mbean", Collections.unmodifiableMap(mmap));
System.out.println("keys: " + elp.eval("mbean.keySet()"));

Affected Versions

[current]

glassfishrobot commented 6 years ago
glassfishrobot commented 10 years ago

@glassfishrobot Commented Reported by kchung

glassfishrobot commented 10 years ago

@glassfishrobot Commented kchung said: Fixed in javax.el-api-2.2 branch as well as the trunk. Will also be in maven central (look for artifact javax.el-api-2.2.5)

glassfishrobot commented 10 years ago

@glassfishrobot Commented Was assigned to kchung

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA UEL-33

glassfishrobot commented 10 years ago

@glassfishrobot Commented Marked as fixed on Wednesday, November 6th 2013, 3:10:06 pm