Comments (10)
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.
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.
Thank you, that's great. I await with interest, and will be happy to help fix anything you find.
from javahamcrest.
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.
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.
Thank you for checking Tom. I confirm it works on the trunk.
from javahamcrest.
I was trying to run 1.3 tests. I guess I wil need to wait for the next release then.
from javahamcrest.
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.
Yes. Hamcrest 1.3 will not build with Java 7. It really is time for the next release.
from javahamcrest.
Can you sey if this question is relevant to this issue?
http://stackoverflow.com/questions/20804174/hamcrest-jdk7-migration
from javahamcrest.
Related Issues (20)
- assertThat(this.object, hasProperty("booleanName")) fails to match boolean types and renames the property HOT 1
- The matcher contains() is misleading HOT 2
- FR: Matching maps with various type HOT 1
- oss-fuzz integration
- Participitation in Hacktoberfest? HOT 1
- HasProperty Matcher doesn't work with Java Records HOT 4
- assertThat(Int::class.java, typeCompatibleWith(Number::class.java)) in kotlin always fails
- hamcrest matching on actual empty list fails with nosuchmethoderror HOT 1
- Test output Alignment
- record version fails the hasProperty HOT 2
- has property fails with non public class.. not sure if this correct as per java standards of property
- Double "close-to" matcher that uses the ULP.
- GraalVM Native Image support HOT 4
- Inquiry about Project Activity and Future Plans HOT 15
- Compatibility in java versions HOT 2
- Upgrade build to JDK 1.8 bytecode HOT 1
- Upgrade to latest Gradle HOT 1
- Publish to Maven Central using GitHub Actions HOT 6
- Hamcrest v3.1
- Hamcrest v4.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javahamcrest.