- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
can't sit still
Fri, 2010-02-12, 17:25
...count on the JaScala guy to find new issues. Thanks for fixing the
no-owner thing...I got a nice set of build.xml files out of it :)
new one: using scala objects in java files: the scala compiler doesn't like
the import statement:
Bip.scala:
package bip
object Bip {
def bip = println("bip")
}
Bop.java:
package bip;
import bip.Bip$;
class Bop {
void bop () { Bip$.MODULE$.bip(); }
}
compiler error:
Bip$ is not a member of _root_.bip
I checked the command line and it works fine...
Should I open tickets right away or after you agree it's a defect? Since
we're in this beta, is it ok to hijack the forum and use it as a ticketing
system?
thanks
-----
Razvan Cojocaru,
Work: http://www.sigma-systems.com
Playground: http://wiki.homecloud.ca
Follow me: http://feeds.razie.com/RazvanTech RSS Feed ,
http://twitter.com/razie Twitter .
On Fri, Feb 12, 2010 at 4:25 PM, Razvan Cojocaru wrote:
> new one: using scala objects in java files: the scala compiler doesn't like
> the import statement:
>
> Bip.scala:
> package bip
> object Bip {
> def bip = println("bip")
> }
>
> Bop.java:
> package bip;
> import bip.Bip$;
> class Bop {
> void bop () { Bip$.MODULE$.bip(); }
> }
> compiler error:
> Bip$ is not a member of _root_.bip
>
> I checked the command line and it works fine...
Hmm ... interesting. This doesn't seem to affect the presentation
compiler, only the interactive build compiler.
> Should I open tickets right away or after you agree it's a defect? Since
> we're in this beta, is it ok to hijack the forum and use it as a ticketing
> system?
Yes, please open a ticket. I think this is probably one for Hubert
rather than me.
Cheers,
Miles