javap report fails if includes interfaces

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • None
    • Affects Version/s: None
    • Component/s: tools
    • None

      Line 102 or so of the com.sun.tdk.jcov.report.javap.JavapClass has this condition:
      if (textLine.contains("class") && textLine.contains("{")) {

      Interfaces would not satisfy this condition because there is a line "interface.*{".

      That leads to package not being assigned in JavapClass, that leads to an interface being put into a map with an empty classname on line 153 in JavapRepGen.run(String, String, String):
      classes.put(javapClass.getClassName(), javapClass);

      That leads to an error from line 197 in the same method, with leads to report not been generated.

      One such interface on which the report fails is com.sun.crypto.provider.AESConstants.java

            Assignee:
            Leonid Kuskov
            Reporter:
            Aleksandre Iline
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: