aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei Shakirin (JIRA)" <>
Subject [jira] [Issue Comment Deleted] (ARIES-1708) Incorrect processing of duplicated patterns
Date Mon, 03 Apr 2017 09:59:41 GMT


Andrei Shakirin updated ARIES-1708:
    Comment: was deleted

(was: Patch)

> Incorrect processing of duplicated patterns
> -------------------------------------------
>                 Key: ARIES-1708
>                 URL:
>             Project: Aries
>          Issue Type: Bug
>          Components: Transaction
>    Affects Versions: transaction-blueprint-1.1.1
>            Reporter: Andrei Shakirin
> In case if transaction pattern is used more than once for the same component, the transaction-blueprint
module throws following exception:
> {code}
> Unable to apply patterns {.*, .*}.
> {code}
> It caused by following: map in TxComponentMetaDataHelperImpl.TranData uses Pattern as
a key. Pattern class doesn't implement equals() method and duplicated patterns can be saved
in the map. 
> That causes exception on later processing steps, because code cannot find fewest and
longest pattern.
> Proposal:
> a) use wildcard string instead Pattern object as map key
> b) in case if more than one pattern stays after selection, just use the first one instead
> This case happens often by using blueprint maven plugin generating transaction attribute
in xml configuration and enabling annotations scan for the same beans.
> Patch is attached

This message was sent by Atlassian JIRA

View raw message