[prev in list] [next in list] [prev in thread] [next in thread] 

List:       groovy-scm
Subject:    [groovy-scm] [jira] Closed: (GROOVY-996) protected fields not visible in
From:       "Jochen Theodorou (JIRA)" <jira () codehaus ! org>
Date:       2006-11-28 12:34:41
Message-ID: 39043384.1164717281540.JavaMail.haus-jira () codehaus01 ! managed ! contegix ! com
[Download RAW message or body]

     [ http://jira.codehaus.org/browse/GROOVY-996?page=all ]

Jochen Theodorou closed GROOVY-996.
-----------------------------------

      Assignee: Jochen Theodorou  (was: John Wilson)
    Resolution: Won't Fix

sometimes people can be so blind... Stupid me didn't saw that SubClass is not \
extending SuperClass. Of course it is not possible to access x then! 

> protected fields not visible in subclasses
> ------------------------------------------
> 
> Key: GROOVY-996
> URL: http://jira.codehaus.org/browse/GROOVY-996
> Project: groovy
> Issue Type: Bug
> Components: syntax
> Affects Versions: 1.0-JSR-2
> Reporter: Dierk Koenig
> Assigned To: Jochen Theodorou
> Fix For: 1.0-RC-1
> 
> 
> class SuperClass{protected String x = 'x'}
> class SubClass{void out(){print x}}
> new SubClass().out()
> throws a ScopeCheckingException

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

        

<hr/>
<p>
To unsubscribe from this list please visit:
</p>
<p>
    <a href="http://xircles.codehaus.org/manage_email">http://xircles.codehaus.org/manage_email</a>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic