Hello,

I'm new to bcel, and has this problem when I try to convert using
class2html. This is my class:

-------------
package trybcel ;

class A {
  private A nxt = null ;
  private int x = 0 ;

  boolean m(){ return x==0 ; }
}
-----------

After compiling (success), I call Class2HTML and gets this error, which I
thinks rather wierd:

X:\tmp\trybcel>java -cp ..\bcel-5.2\bcel-5.2.jar
org.apache.bcel.util.Class2HTML
A.class
Processing A.class...java.lang.ArrayIndexOutOfBoundsException: -1
java.lang.ArrayIndexOutOfBoundsException: -1
at org.apache.bcel.util.CodeHTML.writeMethod(CodeHTML.java:520)
at org.apache.bcel.util.CodeHTML.<init>(CodeHTML.java:63)
at org.apache.bcel.util.Class2HTML.<init>(Class2HTML.java:92)
at org.apache.bcel.util.Class2HTML.main(Class2HTML.java:136)

Any help will be appreciated!

Thanks,

--W.P.

Reply via email to