Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-6291

Update code to check for types rather than throw ClassCastException

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: Trunk, 16.11.01
    • Fix Version/s: 16.11.01
    • Component/s: framework
    • Labels:
      None

      Description

      framework/minilang/src/org/ofbiz/minilang/method/conditional/Compare.java
      framework/base/src/org/ofbiz/base/util/ObjectType.java
      framework/minilang/src/org/ofbiz/minilang/MiniLangUtil.java

      all throw ClassCastExceptions and are ignored instead of checking types

      This caused issues in debugging when adding a ClassCastException breakpoint

        Attachments

        1. minilang_compare_r1675655.patch
          7 kB
          Gareth Carter
        2. minilang_compare.patch
          9 kB
          Gareth Carter
        3. LocalizedConverters.patch
          2 kB
          Gareth Carter

          Activity

            People

            • Assignee:
              adrianc@hlmksw.com Adrian Crum
              Reporter:
              gareth.carter Gareth Carter
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: