This page is no longer maintained — Please continue to the home page at www.scala-lang.org

compiler warning when unable to generate forwarder

2 replies
Viktor Klang
Joined: 2008-12-17,
User offline. Last seen 1 year 27 weeks ago.
Hey guys,

is there any compiler flag to turn on warning output from the compiler when it cannot emit static forwarders for companion object methods?

Just scretched some head until I found that there was a name clash that prevented the emission of forwarders.

Cheers,


--
Viktor Klang

Akka Tech LeadTypesafe - The software stack for applications that scale

Twitter: @viktorklang
dcsobral
Joined: 2009-04-23,
User offline. Last seen 38 weeks 5 days ago.
Re: compiler warning when unable to generate forwarder

2012/1/19 √iktor Ҡlang :
> Hey guys,
>
> is there any compiler flag to turn on warning output from the compiler when
> it cannot emit static forwarders for companion object methods?
>
> Just scretched some head until I found that there was a name clash that
> prevented the emission of forwarders.

Didn't paulp add this just recently?

dcsobral
Joined: 2009-04-23,
User offline. Last seen 38 weeks 5 days ago.
Re: compiler warning when unable to generate forwarder

Not quite, it turns out:

commit 2064372659156e2637eac4d092321818a30abb41
Author: Paul Phillips
Date: Mon Jan 2 11:48:22 2012 -0800

Better error reporting regarding main methods.

Now notices most things which look like main methods and says
something useful if they aren't usable as entry points.
Closes SI-4749.

So the compiler is doing it, but only for main methods.

2012/1/19 Daniel Sobral :
> 2012/1/19 √iktor Ҡlang :
>> Hey guys,
>>
>> is there any compiler flag to turn on warning output from the compiler when
>> it cannot emit static forwarders for companion object methods?
>>
>> Just scretched some head until I found that there was a name clash that
>> prevented the emission of forwarders.
>
> Didn't paulp add this just recently?
>
> --
> Daniel C. Sobral
>
> I travel to the future all the time.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland