commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (BCEL-64) ClassCastException on justice
Date Thu, 24 Apr 2014 09:59:15 GMT

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

Emmanuel Bourg updated BCEL-64:
-------------------------------

      Component/s:     (was: Main)
                   Verifier
      Description: 
Run "java -cp .;bcel-5.1.jar org.apache.bcel.verifier.Verifier j00000.class", 
where j00000.class is a hand-made class file that contains some errors (that I'm trying to
identify).

JustIce ends with a ClassCastException.

The output from the verifier is:

JustIce by Enver Haase, (C) 2001-2002.
<http://bcel.sourceforge.net>
<http://jakarta.apache.org/bcel>

Now verifying: j00000

Pass 1:
VERIFIED_OK
Passed verification.

Pass 2:
VERIFIED_OK
Passed verification.

Pass 3a, method number 0 ['public void <init>()']:
VERIFIED_OK
Passed verification.

Visiting non-standard Signature object
Visiting non-standard Signature object
Visiting non-standard Signature object
Visiting non-standard Signature object
Visiting non-standard Signature object
Visiting non-standard Signature object
Visiting non-standard Signature object
Visiting non-standard Signature object
Pass 3b, method number 0 ['public void <init>()']:
VERIFIED_OK
Passed verification.

Exception in thread "main" java.lang.ClassCastException: org.apache.bcel.classfi
le.ConstantUtf8
        at org.apache.bcel.generic.FieldOrMethod.getClassName(FieldOrMethod.java
:102)
        at org.apache.bcel.generic.FieldOrMethod.getClassType(FieldOrMethod.java
:109)
        at org.apache.bcel.generic.FieldOrMethod.getLoadClassType(FieldOrMethod.
java:115)
        at org.apache.bcel.verifier.statics.Pass3aVerifier$InstOperandConstraint
Visitor.visitLoadClass(Pass3aVerifier.java:430)
        at org.apache.bcel.generic.GETSTATIC.accept(GETSTATIC.java:107)
        at org.apache.bcel.generic.InstructionHandle.accept(InstructionHandle.ja
va:282)
        at org.apache.bcel.verifier.statics.Pass3aVerifier.pass3StaticInstructio
nOperandsChecks(Pass3aVerifier.java:364)
        at org.apache.bcel.verifier.statics.Pass3aVerifier.do_verify(Pass3aVerif
ier.java:160)
        at org.apache.bcel.verifier.PassVerifier.verify(PassVerifier.java:108)
        at org.apache.bcel.verifier.Verifier.doPass3a(Verifier.java:121)
        at org.apache.bcel.verifier.Verifier.main(Verifier.java:263)

  was:
Run "java -cp .;bcel-5.1.jar org.apache.bcel.verifier.Verifier j00000.class", 
where j00000.class is a hand-made class file that contains some errors (that I'm 
trying to identify).

JustIce ends with a ClassCastException.

The output from the verifier is:

JustIce by Enver Haase, (C) 2001-2002.
<http://bcel.sourceforge.net>
<http://jakarta.apache.org/bcel>

Now verifying: j00000

Pass 1:
VERIFIED_OK
Passed verification.

Pass 2:
VERIFIED_OK
Passed verification.

Pass 3a, method number 0 ['public void <init>()']:
VERIFIED_OK
Passed verification.

Visiting non-standard Signature object
Visiting non-standard Signature object
Visiting non-standard Signature object
Visiting non-standard Signature object
Visiting non-standard Signature object
Visiting non-standard Signature object
Visiting non-standard Signature object
Visiting non-standard Signature object
Pass 3b, method number 0 ['public void <init>()']:
VERIFIED_OK
Passed verification.

Exception in thread "main" java.lang.ClassCastException: org.apache.bcel.classfi
le.ConstantUtf8
        at org.apache.bcel.generic.FieldOrMethod.getClassName(FieldOrMethod.java
:102)
        at org.apache.bcel.generic.FieldOrMethod.getClassType(FieldOrMethod.java
:109)
        at org.apache.bcel.generic.FieldOrMethod.getLoadClassType(FieldOrMethod.
java:115)
        at org.apache.bcel.verifier.statics.Pass3aVerifier$InstOperandConstraint
Visitor.visitLoadClass(Pass3aVerifier.java:430)
        at org.apache.bcel.generic.GETSTATIC.accept(GETSTATIC.java:107)
        at org.apache.bcel.generic.InstructionHandle.accept(InstructionHandle.ja
va:282)
        at org.apache.bcel.verifier.statics.Pass3aVerifier.pass3StaticInstructio
nOperandsChecks(Pass3aVerifier.java:364)
        at org.apache.bcel.verifier.statics.Pass3aVerifier.do_verify(Pass3aVerif
ier.java:160)
        at org.apache.bcel.verifier.PassVerifier.verify(PassVerifier.java:108)
        at org.apache.bcel.verifier.Verifier.doPass3a(Verifier.java:121)
        at org.apache.bcel.verifier.Verifier.main(Verifier.java:263)

         Priority: Major
      Environment:     (was: Operating System: other
Platform: Other)
    Fix Version/s: 5.2
         Priority:   (was: P5)
         Severity:   (was: normal)

> ClassCastException on justice
> -----------------------------
>
>                 Key: BCEL-64
>                 URL: https://issues.apache.org/jira/browse/BCEL-64
>             Project: Commons BCEL
>          Issue Type: Bug
>          Components: Verifier
>    Affects Versions: 5.1
>            Reporter: Joaquin Cuenca Abela
>            Assignee: Apache Commons Developers
>             Fix For: 5.2
>
>         Attachments: j00000.class
>
>
> Run "java -cp .;bcel-5.1.jar org.apache.bcel.verifier.Verifier j00000.class", 
> where j00000.class is a hand-made class file that contains some errors (that I'm trying
to identify).
> JustIce ends with a ClassCastException.
> The output from the verifier is:
> JustIce by Enver Haase, (C) 2001-2002.
> <http://bcel.sourceforge.net>
> <http://jakarta.apache.org/bcel>
> Now verifying: j00000
> Pass 1:
> VERIFIED_OK
> Passed verification.
> Pass 2:
> VERIFIED_OK
> Passed verification.
> Pass 3a, method number 0 ['public void <init>()']:
> VERIFIED_OK
> Passed verification.
> Visiting non-standard Signature object
> Visiting non-standard Signature object
> Visiting non-standard Signature object
> Visiting non-standard Signature object
> Visiting non-standard Signature object
> Visiting non-standard Signature object
> Visiting non-standard Signature object
> Visiting non-standard Signature object
> Pass 3b, method number 0 ['public void <init>()']:
> VERIFIED_OK
> Passed verification.
> Exception in thread "main" java.lang.ClassCastException: org.apache.bcel.classfi
> le.ConstantUtf8
>         at org.apache.bcel.generic.FieldOrMethod.getClassName(FieldOrMethod.java
> :102)
>         at org.apache.bcel.generic.FieldOrMethod.getClassType(FieldOrMethod.java
> :109)
>         at org.apache.bcel.generic.FieldOrMethod.getLoadClassType(FieldOrMethod.
> java:115)
>         at org.apache.bcel.verifier.statics.Pass3aVerifier$InstOperandConstraint
> Visitor.visitLoadClass(Pass3aVerifier.java:430)
>         at org.apache.bcel.generic.GETSTATIC.accept(GETSTATIC.java:107)
>         at org.apache.bcel.generic.InstructionHandle.accept(InstructionHandle.ja
> va:282)
>         at org.apache.bcel.verifier.statics.Pass3aVerifier.pass3StaticInstructio
> nOperandsChecks(Pass3aVerifier.java:364)
>         at org.apache.bcel.verifier.statics.Pass3aVerifier.do_verify(Pass3aVerif
> ier.java:160)
>         at org.apache.bcel.verifier.PassVerifier.verify(PassVerifier.java:108)
>         at org.apache.bcel.verifier.Verifier.doPass3a(Verifier.java:121)
>         at org.apache.bcel.verifier.Verifier.main(Verifier.java:263)



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

Mime
View raw message