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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • None
    • core-libs
    • None

      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)

            mchung Mandy Chung (Inactive)
            mchung Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: