Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-13023

Erroneous logic in ELValidator at picking the best resolution

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.CR1
    • 4.0.0.Beta2
    • common
    • None

      Method ELValidator.validateElOperand() iterates over available resolvers and selects the best resolution.
      If a resolution has property 'resolved' = true, it is accepted as the best, that is ok.
      If all resolutions have property 'resolved' = false, then ELValidator selects resolution that has more resolved segments than the others. If two or more resolutions have equal maximal number of resolved segments, then the first of them is selected.

      This logic is insufficient.
      Suppose there are two resolutions:
      1) no segments detected;
      2) one unresolved segment detected;
      Both will return the number of resolved segments 0. The first resolution will be accepted as the best; while the second is more informative.

      I think that the logic should take into account the number of detected segments when the number of resolved segments is the same.

            scabanovich Viacheslav Kabanovich (Inactive)
            scabanovich Viacheslav Kabanovich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: