Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: AW: [eclipselink-dev] Build errors

Adrian,
    I have seen the @override 1.6 dependency before, it is the javac.version tag that is significant, the following part of jpa/build.xml:139 should work fine if the default javac.version = 1.6
               source="${javac.version}"
               target="${javac.version}"
    Since they are both the same, there should be no issue with the javac.version.

    I do however after a refresh get the following same 2 issues for @Override (1.6) and notifier (Junit)
compile:
    [javac] Compiling 213 source files to F:\view_w35c\jpa\eclipselink.jpa.wdf.test\classes
    [javac] F:\view_w35c\jpa\eclipselink.jpa.wdf.test\src\org\eclipse\persistence\testing\framework\wdf\server\CollectNotificationsListener.java:41: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] F:\view_w35c\jpa\eclipselink.jpa.wdf.test\src\org\eclipse\persistence\testing\framework\wdf\server\TestAssumptionFailed.java:32: cannot find symbol
    [javac] symbol  : method fireTestAssumptionFailed(org.junit.runner.notification.Failure)
    [javac] location: class org.junit.runner.notification.RunNotifier
    [javac]         notifier.fireTestAssumptionFailed(failure.restore());
    [javac]                 ^
    [javac] 2 errors

BUILD FAILED
F:\view_w35c\build.xml:315: The following error occurred while executing this line:
F:\view_w35c\jpa\eclipselink.jpa.wdf.test\build.xml:178: Compile failed; see the compiler error output for details.

    Looks like Guy states - a JUnit version issue
    I am running with the following build.properties override
junit.lib=${oracle.extensions.depend.dir}/junit.jar
    which is a 3.8.1 version

>If I switch to JUnit 4.5 via junit-4.5.jar

I get the following errors I have also seen in the past on the warning junit function when compiling core
   [javac] symbol  : method warning(java.lang.String)
   [javac] location: class org.eclipse.persistence.testing.tests.plsql.PLSQLTestModel
   [javac]                     warning("PLSQL is only supported on Oracle.");


>trying another version

/michael

Goerler, Adrian wrote:

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

 

 

Von: eclipselink-dev-bounces@xxxxxxxxxxx [mailto:eclipselink-dev-bounces@xxxxxxxxxxx] Im Auftrag von Goerler, Adrian
Gesendet: Freitag, 9. April 2010 16:25
An: Guy Pelletier
Cc: Dev mailing list for Eclipse Persistence Services
Betreff: AW: [eclipselink-dev] Build errors

 

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

 




 

Von: eclipselink-dev-bounces@xxxxxxxxxxx [mailto:eclipselink-dev-bounces@xxxxxxxxxxx] Im Auftrag von Guy Pelletier
Gesendet: Freitag, 9. April 2010 16:21
An: Dev mailing list for Eclipse Persistence Services
Betreff: [eclipselink-dev] Build errors

 

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.

 


_______________________________________________ eclipselink-dev mailing list eclipselink-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/eclipselink-dev


Back to the top