[ 
https://bro-tracker.atlassian.net/browse/BIT-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jon Siwek updated BIT-71:
-------------------------
    Fix Version/s: 2.5

> Forward declarations of events don't work inside a module namespace
> -------------------------------------------------------------------
>
>                 Key: BIT-71
>                 URL: https://bro-tracker.atlassian.net/browse/BIT-71
>             Project: Bro Issue Tracker
>          Issue Type: Problem
>          Components: Bro
>    Affects Versions: 1.5.2
>            Reporter: Robin Sommer
>             Fix For: 2.5
>
>
> Forward declarations of events aren't correctly resolved when used inside a 
> module namespace. The worst thing about this is that they fail silently: 
> there's no error message, the handler is just not executed. 
> The example below never prints anything. Once the module statement is 
> removed, everything works fine though.
> {noformat}
> module Foo;
> global bar: event();
> event bar()
>     {
>     print "bar";
>     }
> event new_connection(c: connection)
>     {
>     event bar();
>     }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4-OD-15-055#64014)
_______________________________________________
bro-dev mailing list
[email protected]
http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev

Reply via email to