[ 
https://issues.apache.org/jira/browse/BCEL-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Emmanuel Bourg updated BCEL-102:
--------------------------------

         Priority: Blocker
      Environment:     (was: Operating System: other
Platform: Other)
    Fix Version/s: 6.0
         Priority:   (was: P2)
         Severity:   (was: normal)

> Verifier fails in pass 2 with "Number of LocalVariableTable attributes of 
> Code attribute" on static methods.
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: BCEL-102
>                 URL: https://issues.apache.org/jira/browse/BCEL-102
>             Project: Commons BCEL
>          Issue Type: Bug
>          Components: Main
>    Affects Versions: 5.2
>            Reporter: Erik Bengtson
>            Assignee: Apache Commons Developers
>            Priority: Blocker
>             Fix For: 6.0
>
>         Attachments: bcel-verifier-patch.txt
>
>
> 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;
>     }
> }



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to