Uploaded image for project: 'Java Mission Control'
  1. Java Mission Control
  2. JMC-5125

DataPageToolkit.getQuantityAttributes assumes IQuantity attributes

XMLWordPrintable

      DataPageToolkit.getQuantityAttributes assumes that the attributes in the query parameter are of the type IAttribute<IQuantity>. If the query contains any non-quantity attributes then there will be a ClassCastException later when the attributes are used to extract values.

      As long as the method is only used for queries with only quantity attributes, then it will work just fine, but we should rework this so that it becomes type safe.

            Unassigned Unassigned
            owestin Ola Westin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: