Hi,
strange. My build is fine in eclipse as well as with ant.
In Eclipse, I am compiling against
org.junit4_4.5.0.v20090423
with ant, I am using junit 4.5 as well.
Looks like your version of junit is lacking the
org.junit.runner.notification.RunNotifier.fireTestAssumptionFailed
method
for some reason. Sure it is 4.5?
-Adrian
Von: Guy
Pelletier
[mailto:guy.pelletier@xxxxxxxxxx]
Gesendet: Freitag, 9. April 2010 16:38
An: Goerler, Adrian; Dev mailing list for Eclipse Persistence
Services
Betreff: Re: [eclipselink-dev] Build errors
I'm
using junit-4.5 and jdk 1.6.0_06
-----
Original Message -----
Sent: Friday,
April 09,
2010 10:28 AM
Subject: AW:
[eclipselink-dev] Build errors
Hi Guy,
sorry, I was wrong.
I am not overriding an interface method.
Maybe it’s a mismatch of a junit version then. Which
version are you using?
-Adrian
Hi
Guy,
this is due to my change.
Actually, it’s a JDK 1.5/1.6 issue: in 1.5, you
can’t put @Override on an interface method. In 1.6, you can.
Unfortunately, Eclipse by default generates @Override on interface
methods.
I’ll change it to be 1.5 compatible.
Thanks for spotting this.
-Adrian
After
updating this morning, I'm getting the following compile issues when
doing a
full build, any ideas?
compile:
[javac] Compiling 213 source files to
C:\Work\eclipse\jpa\eclipselink.jpa.wd
f.test\classes
[javac]
C:\Work\eclipse\jpa\eclipselink.jpa.wdf.test\src\org\eclipse\persist
ence\testing\framework\wdf\server\CollectNotificationsListener.java:41:
method
d
oes not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac]
C:\Work\eclipse\jpa\eclipselink.jpa.wdf.test\src\org\eclipse\persist
ence\testing\framework\wdf\server\TestAssumptionFailed.java:32: cannot
find
symb
ol
[javac] symbol : method
fireTestAssumptionFailed(org.junit.runner.notificat
ion.Failure)
[javac] location: class
org.junit.runner.notification.RunNotifier
[javac]
notifier.fireTestAssumptionFailed(failure.restore());
[javac]
^
[javac] 2 errors
BUILD
FAILED
C:\Work\eclipse\build.xml:315: The following error occurred while
executing
this
line:
C:\Work\eclipse\jpa\eclipselink.jpa.wdf.test\build.xml:178: Compile
failed; see
the compiler error output for details.