Re: [Ikvm-developers] Attributes of synthesized inner interfaces
Brought to you by:
jfrijters
From: Michael B. <md...@sa...> - 2013-04-30 21:06:39
|
On Tue, Apr 30, 2013 at 1:02 PM, Jeroen Frijters <je...@su...> wrote: > I would argue that this is a bug in the Scala compiler, but that doesn't > really matter since Javac also sets the static flag on nested interfaces > and enums. In my defense, javac has the following comment: > > // Nested interfaces and enums are always STATIC (Spec ???) > Fair enough, and indeed they're going to fix this in the next version of Scala. However, it would be nice if I could generate stub jars that didn't cause Scala to freak out in the meanwhile. :) > The (untested) fix is to override the ReflectiveModifiers property in > FakeTypeWrapper in DotNetTypeWrapper.cs: > > internal override Modifiers ReflectiveModifiers > { > get > { > return Modifiers | Modifiers.Static; > } > } > Works like a charm, thanks! -- md...@sa... |