Issue Details (XML | Word | Printable)

Key: GROOVY-2497
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Minor Minor
Assignee: Unassigned
Reporter: Luke Daley
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

assertEquals() raises IllegalAccessError for Lists

Created: 12/Jan/08 09:15 PM   Updated: 08/Feb/08 01:26 AM
Component/s: None
Affects Version/s: 1.5
Fix Version/s: 1.5.2

Time Tracking:
Not Specified


 Description  « Hide
The following test causes an exception ...

void testIt() {
assertEquals([1,2], [3,4])
}

That should fail yes, bit raises the following exception ...

java.lang.IllegalAccessError: tried to access method junit.framework.Assert.failNotEquals(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V from class groovy.util.GroovyTestCase
at groovy.util.GroovyTestCase.assertEquals(GroovyTestCase.java:385)
at groovy.util.GroovyTestCase.assertEquals(GroovyTestCase.java:389)



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Paul King added a comment - 13/Jan/08 06:12 AM
What version of Groovy do you have? The example seems to work for me with HEAD.

Luke Daley added a comment - 13/Jan/08 04:44 PM
Hrm. Works for me too. Also seems to work on 1.5.0 and 1.5.1.

I was getting this using Maven. I am thinking this might be due to a mismatch between junit versions or something. I'll move the issue to that project.

Apologies, should have done more testing.


Paul King added a comment - 08/Feb/08 01:26 AM
close off release 1.5.4