[jboss-jira] [JBoss JIRA] (JBRULES-3157) Add information such as line number or source code in VerifierComponent

Toni Rikkola (JIRA) jira-events at lists.jboss.org
Tue Jun 12 06:39:04 EDT 2012


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

Toni Rikkola commented on JBRULES-3157:
---------------------------------------

I closed it, if that was what you were after?

Thanks for the patch!
                
> Add information such as line number or source code in VerifierComponent
> -----------------------------------------------------------------------
>
>                 Key: JBRULES-3157
>                 URL: https://issues.jboss.org/browse/JBRULES-3157
>             Project: Drools
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: drools-verifier
>            Reporter: Jérémie Lagarde
>            Assignee: Toni Rikkola
>            Priority: Optional
>             Fix For: 5.4.0.Final
>
>
> We can link the VerifierComponent with their descriptions.
> This provides a simple access to information from the descriptions of the component or its associated VerifierMessageBase.
> I tested this by adding to the VerifierComponent  constructor the BaseDescr :
> public abstract class VerifierComponent implements Comparable<VerifierComponent>, Cause {
>     private BaseDescr descr;
>     public VerifierComponent(BaseDescr descr) {
>         this.descr = descr;
>     }
> ...
> }
> And integrate that in all Visitors.
> This seems to work. ( https://github.com/jerr/drools/tree/line-number-in-verifier )
> What do you think of this, I can add test cases and provide a patch or git pull request.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jboss-jira mailing list