Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3737

ClassCastException when calling DefaultContent.setNodeData with an integer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.4.5
    • None
    • core
    • None

      Because this method calls info.magnolia.cms.util.NodeDataUtil#getJCRPropertyType then info.magnolia.cms.util.NodeDataUtil#setValue. The former call returns PropertyType.LONG whether the argument value is a java.lang.Integer or java.lang.Long (or their primitive counterparts thanks to auto-boxing), while the latter attempts to cast the value into a Long

        Acceptance criteria

              dlipp Daniel Lipp
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD