Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1198

NoClassDefFoundError when using str[endsWith] on a field that matches an imported class name

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 7.0.0.Beta2
    • 6.4.0.Final
    • core engine
    • None
    • NEW
    • NEW

      This error was triggered when accessing the user field with str[endsWith] when user is null:

      java.lang.NoClassDefFoundError: mssp/io/model/user (wrong name: mssp/io/model/User)

      Condition that triggers the error:
      $a : Alert(user!=null, user str[endsWith] "$")

      This does not trigger the error:
      $a : Alert(user!=null, user matches ".+
      $")

      If I remove the import for the User class the error will not be triggered. As a workaround I've switched to using matches instead of str[endsWith], but I'd prefer to switch back.

      I did not experience this issue in 6.3.0-Final, so it appears to be a regression in 6.4.0-Final

        1. DROOLS-1198-unabletoreproduce.zip
          4 kB
        2. screenshot-640Final.png
          screenshot-640Final.png
          524 kB
        3. screenshot-fixed-650CR2andmaster.png
          screenshot-fixed-650CR2andmaster.png
          442 kB
        4. screenshot-linux.png
          screenshot-linux.png
          271 kB
        5. screenshot-Mac.png
          screenshot-Mac.png
          333 kB

              mfusco@redhat.com Mario Fusco
              chrisxaustin_jira Chris Austin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: