Git Product home page Git Product logo

Comments (10)

scarytom avatar scarytom commented on June 18, 2024

The released Hamcrest jars should work fine in Java 7, but we currently perform release builds (and tests) with Java 6.

I happily build and test Hamcrest in Open JDK 7 (as does our travis CI build https://travis-ci.org/hamcrest/JavaHamcrest) so I'm not immediately sure why it isn't working for you.

from javahamcrest.

galaux avatar galaux commented on June 18, 2024

OK I'll try to get a thorough look at this and let you know.

On 12 March 2013 10:53, Tom Denley [email protected] wrote:

The released Hamcrest jars should work fine in Java 7, but we currently
perform release builds (and tests) with Java 6.

I happily build and test Hamcrest in Open JDK 7 (as does our travis CI
build https://travis-ci.org/hamcrest/JavaHamcrest) so I'm not immediately
sure why it isn't working for you.


Reply to this email directly or view it on GitHubhttps://github.com//issues/30#issuecomment-14766707
.

from javahamcrest.

scarytom avatar scarytom commented on June 18, 2024

Thank you, that's great. I await with interest, and will be happy to help fix anything you find.

from javahamcrest.

ebourg avatar ebourg commented on June 18, 2024

I observed the same compilation error on Windows 7 with Oracle JDK 1.7.0_17. I just ran ant after extracting the source archive of Hamcrest 1.3. Switching to Java 6 fixed the issue.

from javahamcrest.

scarytom avatar scarytom commented on June 18, 2024

I've just spent half an hour trying to reproduce this problem, and couldn't.

Then I re-read the post, and I realised what's going on.

Please can you confirm exactly which hamcrest code you are trying to build with JDK 7? The trunk version works fine, but older versions (including the tagged 1.3 codebase) will not.

from javahamcrest.

ebourg avatar ebourg commented on June 18, 2024

Thank you for checking Tom. I confirm it works on the trunk.

from javahamcrest.

galaux avatar galaux commented on June 18, 2024

I was trying to run 1.3 tests. I guess I wil need to wait for the next release then.

from javahamcrest.

puntogil avatar puntogil commented on June 18, 2024
hi

java version "1.7.0_60"
OpenJDK Runtime Environment (fedora-2.4.2.0.fc19-i386)
OpenJDK Server VM (build 24.0-b56, mixed mode)
ant 1.8.4
easymock 3.1
junit 4.11
qdox 1.12

[junit] Testcase: testIteratesOverFactoryMethods(org.hamcrest.generator.ReflectiveFactoryReaderTest): FAILED
[junit] expected:<[first]Method> but was:<[second]Method>
[junit] junit.framework.ComparisonFailure: expected:<[first]Method> but was:<[second]Method>
[junit] at org.hamcrest.generator.ReflectiveFactoryReaderTest.testIteratesOverFactoryMethods(ReflectiveFactoryReaderTest.java:39)
[junit]

BUILD FAILED
~/rpmbuild/BUILD/hamcrest-1.3/build.xml:84: Test org.hamcrest.generator.ReflectiveFactoryReaderTest failed

  • with jmock 2.5.1
    [junit] Testcase: testReadsGenerifiedParameterTypes(org.hamcrest.generator.ReflectiveFactoryReaderTest): FAILED
    [junit] expected:<java.util.Set<[java.lang.String[]]>[]> but was:<java.util.Set<[[Ljava.lang.String;]>[]>
    [junit] junit.framework.ComparisonFailure: expected:<java.util.Set<[java.lang.String[]]>[]> but was:<java.util.Set<[[Ljava.lang.String;]>[]>
    [junit] at org.hamcrest.generator.ReflectiveFactoryReaderTest.testReadsGenerifiedParameterTypes(ReflectiveFactoryReaderTest.java:178)
    [junit]
    [junit]

BUILD FAILED
~/rpmbuild/BUILD/hamcrest-1.3/build.xml:84: Test org.hamcrest.generator.ReflectiveFactoryReaderTest failed

  • with testng 6.8
    [junit] Testcase: testIteratesOverFactoryMethods(org.hamcrest.generator.ReflectiveFactoryReaderTest): FAILED
    [junit] expected:<[first]Method> but was:<[second]Method>
    [junit] junit.framework.ComparisonFailure: expected:<[first]Method> but was:<[second]Method>
    [junit] at org.hamcrest.generator.ReflectiveFactoryReaderTest.testIteratesOverFactoryMethods(ReflectiveFactoryReaderTest.java:39)
    [junit]
    [junit]

BUILD FAILED
~/rpmbuild/BUILD/hamcrest-1.3/build.xml:84: Test org.hamcrest.generator.ReflectiveFactoryReaderTest failed

from javahamcrest.

sf105 avatar sf105 commented on June 18, 2024

Yes. Hamcrest 1.3 will not build with Java 7. It really is time for the next release.

from javahamcrest.

kastoestoramadus avatar kastoestoramadus commented on June 18, 2024

Can you sey if this question is relevant to this issue?
http://stackoverflow.com/questions/20804174/hamcrest-jdk7-migration

from javahamcrest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.