[janino-dev] [jira] Created: (JANINO-112) Access to protected members can fail across package boundaries

View: New views
5 Messages — Rating Filter:   Alert me  

[janino-dev] [jira] Created: (JANINO-112) Access to protected members can fail across package boundaries

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Access to protected members can fail across package boundaries
--------------------------------------------------------------

                 Key: JANINO-112
                 URL: http://jira.codehaus.org/browse/JANINO-112
             Project: Janino
          Issue Type: Bug
            Reporter: Matt Fowles
            Assignee: Arno Unkrig
         Attachments: protected.diff

The following will fail to compile in Janino.  The attached patch fixes it and adds a test

{code:title=ProtectedVariable.java}
package foo;
public class ProtectedVariable {
    protected int var = 1;
}
{code}

{code:title=ProtectedVariable.java}
package bar;
public static class Top extends foo.ProtectedVariable {
        public class Inner {
            public int get() {
                return var;
            }
        }
}
{code}


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[janino-dev] [jira] Commented: (JANINO-112) Access to protected members can fail across package boundaries

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/JANINO-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=134069#action_134069 ]

Matt Fowles commented on JANINO-112:
------------------------------------

It is worth note that this is specific to the case of crossing package boundaries.

> Access to protected members can fail across package boundaries
> --------------------------------------------------------------
>
>                 Key: JANINO-112
>                 URL: http://jira.codehaus.org/browse/JANINO-112
>             Project: Janino
>          Issue Type: Bug
>            Reporter: Matt Fowles
>            Assignee: Arno Unkrig
>         Attachments: protected.diff
>
>
> The following will fail to compile in Janino.  The attached patch fixes it and adds a test
> {code:title=ProtectedVariable.java}
> package foo;
> public class ProtectedVariable {
>     protected int var = 1;
> }
> {code}
> {code:title=ProtectedVariable.java}
> package bar;
> public static class Top extends foo.ProtectedVariable {
>         public class Inner {
>             public int get() {
>                 return var;
>             }
>         }
> }
> {code}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[janino-dev] [jira] Commented: (JANINO-112) Access to protected members can fail across package boundaries

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/JANINO-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=134997#action_134997 ]

Arno Unkrig commented on JANINO-112:
------------------------------------

Your patch will be included into the next JANINO version.

> Access to protected members can fail across package boundaries
> --------------------------------------------------------------
>
>                 Key: JANINO-112
>                 URL: http://jira.codehaus.org/browse/JANINO-112
>             Project: Janino
>          Issue Type: Bug
>            Reporter: Matt Fowles
>            Assignee: Arno Unkrig
>         Attachments: protected.diff
>
>
> The following will fail to compile in Janino.  The attached patch fixes it and adds a test
> {code:title=ProtectedVariable.java}
> package foo;
> public class ProtectedVariable {
>     protected int var = 1;
> }
> {code}
> {code:title=ProtectedVariable.java}
> package bar;
> public static class Top extends foo.ProtectedVariable {
>         public class Inner {
>             public int get() {
>                 return var;
>             }
>         }
> }
> {code}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[janino-dev] [jira] Resolved: (JANINO-112) Access to protected members can fail across package boundaries

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/JANINO-112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Fowles resolved JANINO-112.
--------------------------------

    Resolution: Fixed

> Access to protected members can fail across package boundaries
> --------------------------------------------------------------
>
>                 Key: JANINO-112
>                 URL: http://jira.codehaus.org/browse/JANINO-112
>             Project: Janino
>          Issue Type: Bug
>            Reporter: Matt Fowles
>            Assignee: Arno Unkrig
>         Attachments: protected.diff
>
>
> The following will fail to compile in Janino.  The attached patch fixes it and adds a test
> {code:title=ProtectedVariable.java}
> package foo;
> public class ProtectedVariable {
>     protected int var = 1;
> }
> {code}
> {code:title=ProtectedVariable.java}
> package bar;
> public static class Top extends foo.ProtectedVariable {
>         public class Inner {
>             public int get() {
>                 return var;
>             }
>         }
> }
> {code}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[janino-dev] [jira] Commented: (JANINO-112) Access to protected members can fail across package boundaries

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/JANINO-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138759#action_138759 ]

Matt Fowles commented on JANINO-112:
------------------------------------

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.

> Access to protected members can fail across package boundaries
> --------------------------------------------------------------
>
>                 Key: JANINO-112
>                 URL: http://jira.codehaus.org/browse/JANINO-112
>             Project: Janino
>          Issue Type: Bug
>            Reporter: Matt Fowles
>            Assignee: Arno Unkrig
>         Attachments: protected.diff
>
>
> The following will fail to compile in Janino.  The attached patch fixes it and adds a test
> {code:title=ProtectedVariable.java}
> package foo;
> public class ProtectedVariable {
>     protected int var = 1;
> }
> {code}
> {code:title=ProtectedVariable.java}
> package bar;
> public static class Top extends foo.ProtectedVariable {
>         public class Inner {
>             public int get() {
>                 return var;
>             }
>         }
> }
> {code}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email