Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
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; } } }
It is worth note that this is specific to the case of crossing package boundaries.