shell ExpressionToTypeInfo.findExpressionPath uses exceptions

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: tools

      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

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

              Created:
              Updated: