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

Reformat line in Class.privateGetPublicFields() to be more debugger-friendly

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P5
    • Resolution: Won't Fix
    • Affects Version/s: 8
    • Fix Version/s: tbd_minor
    • Component/s: core-libs
    • Labels:
      None

      Description

      A DESCRIPTION OF THE REQUEST :
      Please reformat the line

       if (res != null) return res;

      in java.lang.Class#privateGetPublicFields(Set<Class<?>>) to

       if (res != null)
        return res;


      JUSTIFICATION :
      When debugging the recursive method privateGetPublicFields it is often necessary to set a breakpoint at the return statement. Currently this cannot be done. The breakpoint is hit unconditionally.

      This causes severe debugging headaches.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Have elegant iconic Java code in the JDK.
      ACTUAL -
      Must see strange unfavorable idioms in the JDK.

      CUSTOMER SUBMITTED WORKAROUND :
      Define a conditional breakpoint.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: