HelenBlack / lambdaj

Automatically exported from code.google.com/p/lambdaj
Apache License 2.0
0 stars 0 forks source link

"org.hamcrest.Matchers"'s signer information does not match #87

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download lambdaj-2.4-with-dependencies.jar and use it in a project (Eclipse)

2. Try to use a matcher from org.hamcrest.Matchers for example the 
equalToIgnoringCase function in the following code:

List<Book> matchingBooks = filter(having(on(Book.class).getTitle(), 
equalToIgnoringCase(authorSearch)), books);

3. Get this error when running: 

"org.hamcrest.Matchers"'s signer information does not match signer information 
of other classes in the same package

What is the expected output? What do you see instead?

Expected output is no error. Get error instead and can't use hamcrest matchers 
as a result.

What version of the product are you using? On what operating system?

lambdaj-2.4-with-dependencies.jar 
Eclipse Version: 3.6.2
Windows 7 64
Java 1.6

Original issue reported on code.google.com by mortense...@gmail.com on 23 Feb 2012 at 9:24

GoogleCodeExporter commented 8 years ago
After playing around more I found this link: 

http://www.southsearepublic.org/article/2258/read/hamcrest_11_security_error_on_
eclipse_gallileo_with_jmock

Which helped me find a solution which was to reorder the export of the java 
build path so that the lambdaj-2.4-with-dependencies.jar was above my junit 
library. The junit library also includes an org.hamcrest.Matchers which seems 
to have been causing the problem

Original comment by mortense...@gmail.com on 23 Feb 2012 at 9:51

GoogleCodeExporter commented 8 years ago

Original comment by mario.fu...@gmail.com on 8 Jul 2012 at 10:17

GoogleCodeExporter commented 8 years ago
junit-4.10 on maven contains hamcrest-core-1.1 . Th eproblem is probably a 
conflict. I solved importing org.hamcrest.CoreMatchers instead of 
org.hamcrest.Matchers.

Original comment by Smi...@gmail.com on 17 Jul 2012 at 1:45