History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JANINO-112
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Arno Unkrig
Reporter: Matt Fowles
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Janino

Access to protected members can fail across package boundaries

Created: 08/May/08 03:48 PM   Updated: 16/Jun/08 09:29 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. File protected.diff (5 kb)


Testcase included: yes
Patch Submitted: Yes


 Description  « Hide
The following will fail to compile in Janino. The attached patch fixes it and adds a test
ProtectedVariable.java
package foo;
public class ProtectedVariable {
    protected int var = 1;
}
ProtectedVariable.java
package bar;
public static class Top extends foo.ProtectedVariable {
        public class Inner {
            public int get() {
                return var;
            }
        }
}


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Matt Fowles - 08/May/08 05:23 PM
It is worth note that this is specific to the case of crossing package boundaries.

Arno Unkrig - 15/May/08 03:12 PM
Your patch will be included into the next JANINO version.

Matt Fowles - 16/Jun/08 09:29 AM
Arno, I do not have the ability to close this issue. I think my login to Jira does not have the power. You can consider this closed.