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

can't sit still

1 reply
Razvan Cojocaru 2
Joined: 2009-11-20,
User offline. Last seen 42 years 45 weeks ago.

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

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: can't sit still

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

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