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

Provide a mechansim to allow a class/method to request filtering from the stack trace

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      It'd be useful to provide a mechanism for a class/method to request filtering from stack trace.

      For example, lambda proxy classes are implementation details. Showing it in the stack trace does not provide useful information while it makes the stack trace longer. Reflection implementation classes are good candidate to be filtered as well. VM has special handling of @java.lang.invoke.LambdaForm.Hidden annotation and also skip reflection frames to find the caller of @CS method.
      java.lang.Throwable
           StackTraceTest.lambda$0(StackTraceTest.java:6)
           StackTraceTest$$Lambda$1.run(Unknown Source)
           StackTraceTest.main(StackTraceTest.java:8)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mchung Mandy Chung
                Reporter:
                mchung Mandy Chung
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: