[jira] Created: (BOO-1082) Abstract subclassing turns methods public

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

[jira] Created: (BOO-1082) Abstract subclassing turns methods public

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

Reply to Author | View Threaded | Show Only this Message

Abstract subclassing turns methods public
-----------------------------------------

                 Key: BOO-1082
                 URL: http://jira.codehaus.org/browse/BOO-1082
             Project: Boo
          Issue Type: Bug
          Components: Compiler
    Affects Versions: 0.8.2
            Reporter: Will
            Priority: Minor


abstract class A:
    protected abstract def A():
        pass
               
abstract class B(A):
    pass
       
class C(B):
    protected override def A():
        pass


Attempting to compile this will give:

BCE0090: Derived method 'C.A' can not reduce the accessibility of 'B.A' from 'public' to 'protected'.


--
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



[jira] Assigned: (BOO-1082) Abstract subclassing turns methods public

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

Reply to Author | View Threaded | Show Only this Message


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

Rodrigo B. de Oliveira reassigned BOO-1082:
-------------------------------------------

    Assignee: Rodrigo B. de Oliveira

> Abstract subclassing turns methods public
> -----------------------------------------
>
>                 Key: BOO-1082
>                 URL: http://jira.codehaus.org/browse/BOO-1082
>             Project: Boo
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 0.8.2
>            Reporter: Will
>            Assignee: Rodrigo B. de Oliveira
>            Priority: Minor
>
> abstract class A:
>     protected abstract def A():
>         pass
>
> abstract class B(A):
>     pass
>
> class C(B):
>     protected override def A():
>         pass
> Attempting to compile this will give:
> BCE0090: Derived method 'C.A' can not reduce the accessibility of 'B.A' from 'public' to 'protected'.

--
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



[jira] Closed: (BOO-1082) Abstract subclassing turns methods public

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

Reply to Author | View Threaded | Show Only this Message


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

Rodrigo B. de Oliveira closed BOO-1082.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9.3

Fixed in rev. 3425. Thanks for the report!

> Abstract subclassing turns methods public
> -----------------------------------------
>
>                 Key: BOO-1082
>                 URL: http://jira.codehaus.org/browse/BOO-1082
>             Project: Boo
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 0.8.2
>            Reporter: Will
>            Assignee: Rodrigo B. de Oliveira
>            Priority: Minor
>             Fix For: 0.9.3
>
>
> abstract class A:
>     protected abstract def A():
>         pass
>
> abstract class B(A):
>     pass
>
> class C(B):
>     protected override def A():
>         pass
> Attempting to compile this will give:
> BCE0090: Derived method 'C.A' can not reduce the accessibility of 'B.A' from 'public' to 'protected'.

--
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