Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8242241

add assert to ClassUnloadEventImpl::className

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 15
    • 15
    • core-svc
    • None
    • b19

      The className converts class signature to name format and returns.
      Mandy suggested to add an assert:
        Is ClassUnloadEvent only sent for non-array reference type?
        If so, is it worth adding an assert like
           assert classSignature.startsWith('L') && classSignature.endsWith(';');

            sspitsyn Serguei Spitsyn
            sspitsyn Serguei Spitsyn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: