[Bro-Dev] [JIRA] (BIT-71) Forward declarations of events don't work inside a module namespace
Jon Siwek (JIRA)
jira at bro-tracker.atlassian.net
Mon Mar 16 12:39:00 PDT 2015
[ https://bro-tracker.atlassian.net/browse/BIT-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19970#comment-19970 ]
Jon Siwek commented on BIT-71:
------------------------------
Other examples of the problem referenced in BIT-984.
> 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
>
> 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)
More information about the bro-dev
mailing list