Skip to content

Unable to run JMockit within Kubernetes Pod: java.util.Currency throws IllegalArgumentException #448

@knob-creek

Description

@knob-creek

Please provide the following information:

  • Version of JMockit that was used:
    1.33

  • Description of the problem:
    When run inside a Kubernetes Pod, JMockit tests do no initialize properly. There is an IllegalArgumentException in
    JMockitInitialization.preventEventualClassLoadingConflicts (JMockitInitialization.java:40)

Obviously, there is a weird Default Locale with (probably) empty country, which Currency rejects.
Maybe, a well known Locale (like Locale.German or whichever you prefer) should be used here.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions