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

shell ExpressionToTypeInfo.findExpressionPath uses exceptions

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 18
    • Fix Version/s: None
    • Component/s: tools
    • Labels:

      Description

      in line with the until-now prevailing convention to throw an exception to terminate a tree scan early, ExpressionToTypeInfo.findExpressionPath calls a private PathFinder class that does just that.

      Throwing an exception may be expensive.

      There is a new improved paradigm to override the `scan` methods to simply terminate early when a condition has been met, without the need for an exception. It may be worth retrofitting this to this situation. See the fix for JDK-8267690

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jjg Jonathan Gibbons
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: