Wei-Chiu Chuang created AMBARI-26325:
----------------------------------------
Summary: IllegalAccessError: PowerMock is trying to access JDK
internal classes
Key: AMBARI-26325
URL: https://issues.apache.org/jira/browse/AMBARI-26325
Project: Ambari
Issue Type: Bug
Components: ambari-metrics
Reporter: Wei-Chiu Chuang
[~adoroszlai] submitted a PR to fix an unrelated Ambari Metrics bug and it is
failing for PowerMock problems:
https://github.com/apache/ambari-metrics/actions/runs/12330045488/job/34415053674?pr=138
{noformat}
Caused by: java.lang.IllegalAccessError: class
jdk.internal.reflect.ConstructorAccessorImpl loaded by
org.powermock.core.classloader.MockClassLoader @2bea5ab4 cannot access
jdk/internal/reflect superclass jdk.internal.reflect.MagicAccessorImpl
{noformat}
I believe this is because Ambari is run with JDK17 now.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]