alibaba / alibaba/testable-mock

不支持 java module

Open
#269 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.8k
Forks
306
PR merge metrics
No merged PRs in 30d

Description

在 java 17 环境下执行

SubscriberExceptionContext context = OmniConstructor.newInstance(SubscriberExceptionContext.class);

报错:

Cause: superclass access check failed: class com.alibaba.testable.processor.translator.BaseTranslator (in unnamed module @0x7dafd810) cannot access class com.sun.tools.javac.tree.TreeTranslator (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.tree to unnamed module @0x7dafd810

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported OmniConstructor.newInstance(SubscriberExceptionContext.class) failure in Java 17 and read the access error involving com.alibaba.testable.processor.translator.BaseTranslator and com.sun.tools.javac.tree.TreeTranslator. Determine the module-access behavior involved; done means this invocation no longer fails because jdk.compiler does not export the referenced package.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.