- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
How to use a method whose name is "with"
Fri, 2012-02-10, 07:41
I am trying to use Guice and Jersey along with scala. However, it fail
on the following line
serve("/*").with(classOf[ServletContainer])
The error is
error: identifier expected but 'with' found.
The name of the method is with. I can't really use anything else. How
can I call it?
Fri, 2012-02-10, 08:11
#2
Re: How to use a method whose name is "with"
On 10 fév, 01:46, √iktor Ҡlang wrote:
> On Fri, Feb 10, 2012 at 7:41 AM, Laurent Bourgault-Roy
>
> wrote:
> > I am trying to use Guice and Jersey along with scala. However, it fail
> > on the following line
>
> > serve("/*").with(classOf[ServletContainer])
>
> serve("/*").`with`(classOf[ServletContainer])
>
Fixed It. Thank you
>
>
> > The error is
>
> > error: identifier expected but 'with' found.
>
> > The name of the method is with. I can't really use anything else. How
> > can I call it?
>
> --
> Viktor Klang
>
> Akka Tech Lead
> Typesafe - The software stack for applications that scale
>
> Twitter: @viktorklang
Laurent Bourgault-Roy
On Fri, Feb 10, 2012 at 7:41 AM, Laurent Bourgault-Roy
wrote:
> I am trying to use Guice and Jersey along with scala. However, it fail
> on the following line
>
> serve("/*").with(classOf[ServletContainer])
serve("/*").`with`(classOf[ServletContainer])
>
> The error is
>
> error: identifier expected but 'with' found.
>
> The name of the method is with. I can't really use anything else. How
> can I call it?