Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppression of final primitive fields doesn't work. #105

Closed
johanhaleby opened this issue Jul 23, 2015 · 2 comments
Closed

Suppression of final primitive fields doesn't work. #105

johanhaleby opened this issue Jul 23, 2015 · 2 comments

Comments

@johanhaleby
Copy link
Collaborator

Suppression of final primitive fields doesn't work. The calls are never
intercepted by the MockGateway for some reason. Perhaps it's something
wrong with Javassist?

@thekingn0thing
Copy link
Member

Tests has been added.

thekingn0thing added a commit to thekingn0thing/powermock that referenced this issue Mar 12, 2016
* upstream/master:
  Update changelog.txt
  Fix powermock#634 java.lang.NoClassDefFoundError: Could not initialize class org.mockito.internal.util.MockUtil
  More TestNG tests.
  Update dependencies
  Throw exception on mockStatic if the class wasn't prepared for test (@PrepareForTest(ClassWithStatic.class)). Implemented # 604 for: -mockito junit -mockito testng
  Throw exception on when(Class c) if class wasn't prepared for test (@PrepareForTest(ClassWithStatic.class)) Implemented # 622 for: - Mockito jUnit - Mockito TestNG
  Add usage and dependencies statistic
  Update link in test source for issue powermock#105
  Stubbing/supressing should have precedence over mocking powermock#327
  Update changelog.txt
  powermock-590 suppress(method) doesn't work on a @SPY
  powermock-572 Enable @PrepareForTest on enums
  Add guidelines for managing GitHub issues
  Update change log.
  powermock-214 Whitebox.invokeConstructor may not work as expected with overloaded constructors Fix powermock#214
  Update README.md
@thekingn0thing thekingn0thing modified the milestones: Backlog, PowerMock 1.6.6 Apr 29, 2016
@thekingn0thing
Copy link
Member

The issue cannot be fixed. The javac inlines values of final static int/long/boolean during compile time. So these values cannot be suspected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants