Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ClassCastExceptions after applying new library

    Hi,
    using SmartGWT/3.1p/PowerEdition/2013-04-12.

    After applying new above mentioned library we are getting couple of ClassCastExceptions.
    For example. We have a field in DS defined like this:
    Code:
    <field name="someName" type="text" escapeHTML="true" customSelectExpression="table_alias.COLUMN_NAME"/>
    On server we do casting like this:
    Code:
    BigDecimal fieldName = (BigDecimal)record.get("fieldName");
    And this line of code is now throwing ClassCastException.

    So it looks like in the past DB type took precedence while today takes precedence “type” attribute in DS.
    Was this intended change by you or is it a bug ?

    Regards,
    Frantisek

    #2
    Intended change (actually regarded as a bugfix) - when you say the type is text we now force the type to text. If you don't want that, don't declare type="text" for a BigDecimal.

    Comment

    Working...
    X