Bug 1096992 - PowerMock 1.4.x incompatible with EasyMock 3.1
Summary: PowerMock 1.4.x incompatible with EasyMock 3.1
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: powermock
Version: 20
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Michael Simacek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-12 22:15 UTC by Christopher Tubbs
Modified: 2015-05-20 14:35 UTC (History)
5 users (show)

Fixed In Version: 1.6.2-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-20 14:35:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Christopher Tubbs 2014-05-12 22:15:51 UTC
Description of problem:

PowerMockRunner 1.4.12 and some versions of 1.5.x are incompatible with EasyMock 3.2 available in Fedora. PowerMock needs to be updated to version 1.5.4 (preferred) or EasyMock 3.1 needs to be available.

Version-Release number of selected component (if applicable):
1.4.12

How reproducible:
100%

Steps to Reproduce:
1. Run a basic JUnit test with PowerMockRunner, using expectNew

Actual results:
Test fails with the following exception:
org.powermock.reflect.exceptions.FieldNotFoundException: No instance field of type "org.easymock.internal.MocksControl$MockType" could be found in the class hierarchy of org.easymock.internal.MocksControl.

Expected results:
Test succeeds

Additional info:
http://stackoverflow.com/questions/17788926/org-powermock-reflect-exceptions-fieldnotfoundexception-when-using-powermock-exp
http://code.google.com/p/powermock/issues/detail?id=454

Comment 1 Michael Simacek 2015-05-20 14:35:31 UTC
I updated powermock to version 1.6.2 in rawhide. I think it would be impractical to rebase it in stable fedoras as it's a test only dependency of packages. Please reopen the bug if you think otherwise.


Note You need to log in before you can comment on or make changes to this bug.