alibaba / alibaba/testable-mock
EnablePrivateAccessProcessor Unable to get public no-arg constructor
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 306
- PR merge metrics
- No merged PRs in 30d
Description
Help pls as first time to use testable-mock.
### Env:
Java15.
>
0.7.8
org.apache.maven.plugins
maven-surefire-plugin
3.0.0-M6
-javaagent:${settings.localRepository}/com/alibaba/testable/testable-agent/${testable.version}/testable-agent-${testable.version}.jar
mvn test failed with following error:
>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project deploy: Compilation failure
[ERROR] Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: com.alibaba.testable.processor.EnablePrivateAccessProcessor Unable to get public no-arg constructor
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the reported failure by running mvn test with Java 15 and the testable.version 0.7.8 configuration shown in the issue. Start at EnablePrivateAccessProcessor and investigate why the annotation processor cannot be constructed; done means test compilation succeeds without the public no-arg constructor error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100