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

shell ExpressionToTypeInfo.findExpressionPath uses exceptions

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • 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

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

              Created:
              Updated: