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

Why is this string.replace line needed in generic.ObjectType constructor?

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 5.0, 5.1, 5.2, 6.0, 6.1, 6.2
    • Fix Version/s: None
    • Component/s: Main
    • Labels:
      None

      Description

      Why is this line present in the ObjectType constructor:
      https://github.com/apache/commons-bcel/blob/5e2febea94ae56db7fd0729e808625f7be1f6a32/src/main/java/org/apache/bcel/generic/ObjectType.java#L45
       
      The javadoc states that this constructor expects a fully qualified name(which do not contain '/'s). Is it some legacy stuff which is no longer needed since all the tests pass if I replace this line with this one:
      this.class_name = class_name;

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gsaga Sagar Tewari
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: