- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
compiler warning when unable to generate forwarder
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
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










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?
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.