[jboss-jira] [JBoss JIRA] (DROOLS-1198) NoClassDefFoundError when using str[endsWith] on a field that matches an imported class name

Matteo Mortari (JIRA) issues at jboss.org
Mon Sep 26 12:45:01 EDT 2016


    [ https://issues.jboss.org/browse/DROOLS-1198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13298591#comment-13298591 ] 

Matteo Mortari commented on DROOLS-1198:
----------------------------------------

Just for sake of completeness, as I had the chance to got hold of a physical Mac, I tested this fix on Mac OSX with the original reproducer.

Please notice with reference to screenshots below, both of Mac OSX, this JIRA was reported against 6.4.0.Final, and the fix besides of master is also committed to 6.5.0.CR2.
With 6.4.0.Final the problem was:
!screenshot-640Final.png|thumbnail!
With the fix, using version 6.5.0.CR2:
!screenshot-fixed-650CR2andmaster.png|thumbnail!

This to demonstrate the fix also on a physical Mac with Mac OSX.

> NoClassDefFoundError when using str[endsWith] on a field that matches an imported class name
> --------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-1198
>                 URL: https://issues.jboss.org/browse/DROOLS-1198
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 6.4.0.Final
>            Reporter: Chris Austin
>            Assignee: Mario Fusco
>            Priority: Minor
>             Fix For: 7.0.0.Beta2
>
>         Attachments: DROOLS-1198-unabletoreproduce.zip, screenshot-640Final.png, screenshot-fixed-650CR2andmaster.png, screenshot-linux.png, screenshot-Mac.png
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list