Uploaded image for project: 'Commons BCEL'
  1. Commons BCEL
  2. BCEL-89

return type not verified by JustIce

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 6.0
    • Main
    • None

    Description

      I have found the following very simple class to be accepted by the JustIce
      verifier (BCEL 5.2) even though it should clearly not.

      $$$ javap -c Test
      Compiled from "Test.java"
      public class Test extends java.lang.Object

      { public Test(); Code: 0: aload_0 1: invokespecial #9; //Method java/lang/Object."<init>":()V 4: return public java.lang.String foo(java.lang.String, java.lang.Integer); Code: 0: aload_2 1: areturn }

      In the method "foo", an Integer is returned instead of a String but JustIce does
      not complain about that. The Sun verifier rejects the class.

      Attachments

        1. bcel-verifier-patch.txt
          5 kB
          Erik Bengtson
        2. Test.class
          0.2 kB
          malloovidio

        Activity

          People

            issues@commons.apache.org Apache Commons Developers
            malloovidio@bluewin.ch malloovidio
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: