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.
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.