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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P5 P5
    • tbd
    • 8
    • core-libs
    • None

      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.

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

              Created:
              Updated:
              Resolved: