The Artima Developer Community
Sponsored Link

ScalaTest/ScalaUtils Forum
Ignore annotation under scala 2.7.2

2 replies on 1 page. Most recent reply: Nov 15, 2008 10:50 AM by Bill Venners

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Brett Knights

Posts: 2
Nickname: 57150
Registered: Jul, 2008

Ignore annotation under scala 2.7.2 Posted: Nov 11, 2008 3:36 PM
Reply to this message Reply
Advertisement
Hello,

I am trying to build scalatest under scala 2.7.2.final.

I have built an ant task to aid this and can compile the main scalatest classes ok

When I try to compile the test classes however I've run into errors where I get this:

app\tests\org\scalatest\SuiteSuite.scala:19: error: Ignore is not a member of org.scalatest

import org.scalatest.Ignore
^

or this
\app\tests\org\scalatest\SuiteSuite.scala:57: error: not found: type Ignore

@Ignore

^

When I investigated the code I couldn't find any definition of the Ignore annotation that made sense for my understanding (admittedly not much) of the way annotations are created in scala.


Can anyone shed any insight on this? Has anyone built the trunk version of scalatest under 2.7.2 final?


Brett Knights

Posts: 2
Nickname: 57150
Registered: Jul, 2008

Re: Ignore annotation under scala 2.7.2 Posted: Nov 11, 2008 3:47 PM
Reply to this message Reply
oops.

ok I found the Ignore.java file that should define the annotation but perhaps I'm not using scalac properly so that the .java files get built as well.

Bill Venners

Posts: 2284
Nickname: bv
Registered: Jan, 2002

Re: Ignore annotation under scala 2.7.2 Posted: Nov 15, 2008 10:50 AM
Reply to this message Reply
Hi Brett,

Are you doing this from the build.xml file in the trunk? It has a javac task for compiling Ignore.java. One of the few things you can't do in Scala is define an annotation that is visible from Java reflection, which is why Ignore must be defined in Java.

Flat View: This topic has 2 replies on 1 page
Topic: scalatest and scala 2.7.2 Previous Topic   Next Topic Topic: Testing private Methods

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use