Attributes defined from Java tried to use current frame for visibility
----------------------------------------------------------------------

                 Key: JRUBY-3398
                 URL: http://jira.codehaus.org/browse/JRUBY-3398
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
            Reporter: Charles Oliver Nutter
            Assignee: Charles Oliver Nutter
             Fix For: JRuby 1.2


RubyModule.addAccessor and friends were always using the visibility set on the 
current frame as the visibility for attr accessors, even in cases coming 
straight from Java. This led to Java class setup sometimes getting the wrong 
visibility for attr methods, since most Java-level class setup does not push a 
frame. Specifically, this led to reports of the java_class method in JI 
sometimes showing up as private (depending on the context from which JI was 
initialized).

Fix pending. Not sure of the best way to test this, but it was causing failures 
after I fixed some scoping rules, so perhaps that's enough.

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


Reply via email to