|
issue with inherited static members in java interfaces (possible bug?): msg#00047lang.scala
Hi, Noticed something a bit odd (am using Scala2), here is a minimal test case: // I1.java package test; public interface I1 { public static final int i = 1; } // I2.java package test; public interface I2 extends I1 { public static final String s = "foo"; } // test.scala object testi { import test._; import test.I2._; def main(args: Array[String]): Unit = { I1.i; // ok I2.s // ok I2.i; // nope. compile-time error: 'value i is not a member of test.I2' s; // ok i; // still no luck: ' error: not found: value i' } } Is this a bug or intended behavior? Thanks, Jason |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: addJavaBeanMethods: 00047, Nikolay Mihaylov |
|---|---|
| Next by Date: | Re: addJavaBeanMethods: 00047, Martin Odersky |
| Previous by Thread: | addJavaBeanMethodsi: 00047, Judson, Ross |
| Next by Thread: | Re: issue with inherited static members in java interfaces (possible bug?): 00047, Adriaan Moors |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |