Using blacklist in Recorder leads to 'ambiguous reference' in the script

937 views
Skip to first unread message

Christiaan Knaap

unread,
Aug 6, 2014, 4:13:23 AM8/6/14
to gat...@googlegroups.com
When I use the blacklist in the recorder, the script wil contain the line:

.inferHtmlResources(black = BlackList(""".*\.css.*"""), white = WhiteList())

But the compiler in Eclipse (+ Scala IDE for Eclipse) complains:

ambiguous reference to overloaded definition, both method inferHtmlResources in class HttpProtocolBuilder of type (black: io.gatling.core.filter.BlackList, white: io.gatling.core.filter.WhiteList)io.gatling.http.config.HttpProtocolBuilder and  method inferHtmlResources in class HttpProtocolBuilder of type (white: io.gatling.core.filter.WhiteList, black: io.gatling.core.filter.BlackList)io.gatling.http.config.HttpProtocolBuilder match argument types (black: io.gatling.core.filter.BlackList,white: io.gatling.core.filter.WhiteList)

When I leave the parameter names out of the method call, the compiler can resolve the correct overload by type:

.inferHtmlResources(BlackList(""".*\.css.*"""), WhiteList())



Nicolas Rémond

unread,
Aug 6, 2014, 4:47:11 AM8/6/14
to gat...@googlegroups.com
Indeed, entered your description in our bug tracker: https://github.com/gatling/gatling/issues/2067



--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pierre DAL-PRA

unread,
Aug 6, 2014, 4:12:03 PM8/6/14
to gat...@googlegroups.com
Just fixed !
Could you please try the latest snapshot version and confirm everything's working on your side ?

Cheers, 

Pierre

Christiaan Knaap

unread,
Aug 12, 2014, 2:18:01 PM8/12/14
to gat...@googlegroups.com
I will try to check it as soon as possible.


--
You received this message because you are subscribed to a topic in the Google Groups "Gatling User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gatling/c087ltWzdAM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gatling+u...@googlegroups.com.

Pierre DAL-PRA

unread,
Aug 12, 2014, 2:46:04 PM8/12/14
to gat...@googlegroups.com
This fix has been included in Gatling 2.0.0-RC2, therefore you won't have to use snapshots, you'll only need to upgrade :)

Cheers,

Pierre

Christiaan Knaap

unread,
Aug 12, 2014, 3:51:21 PM8/12/14
to gat...@googlegroups.com
That's even better ;-)

Christiaan Knaap

unread,
Aug 13, 2014, 3:47:17 AM8/13/14
to gat...@googlegroups.com
Just tested it on RC2, it works perfectly now.
Thank you for fixing this so quickly.

Op woensdag 6 augustus 2014 22:12:03 UTC+2 schreef Pierre DAL-PRA:

Pierre DAL-PRA

unread,
Aug 13, 2014, 3:57:58 AM8/13/14
to gat...@googlegroups.com
You're welcome :)
Reply all
Reply to author
Forward
0 new messages