DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42015>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42015

           Summary: Verifier fails in pass 2 with "Number of
                    LocalVariableTable attributes of Code attribute" on
                    static methods.
           Product: BCEL
           Version: 5.2
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: bcel-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


Result
Pass 2:
Number of LocalVariableTable attributes of Code attribute '<CODE>' (method
'public static String getSS9()') exceeds number of local variable slots '0'
('There may be no more than one LocalVariableTable attribute per local variable
in the Code attribute.').

Test code:

public class Test
{
    String ss4;
    static String ss6;
    static String ss9;
    
    public String getSS()
    {
        return getSS1();
    }

    public String getSS1()
    {
        return (String)getSS2();
    }

    public Object getSS2()
    {
        return getSS3();
    }

    public String getSS3()
    {
        return "";
    }
    
    public String getSS4()
    {
        return ss4;
    }

    public String getSS5()
    {
        String ss5 = "";
        return ss5;
    }

    public String getSS6()
    {
        return ss6;
    }

    public Test getSS7()
    {
        return this;
    }

    public int getSS8()
    {
        return 1;
    }
    
    public static String getSS9()
    {
        if( true )
        {
            return ss6;
        }
        return ss9;
    }
    
    public String[] getSS10()
    {
        String[] ss10 = new String[1];
        ss10[0] = "";
        return ss10;
    }

}

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to