You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "dweiss (via GitHub)" <gi...@apache.org> on 2023/10/15 21:15:50 UTC
[PR] Fix jacoco coverage tests (add createClassLoader to replicator permissions) [lucene]
dweiss opened a new pull request, #12684:
URL: https://github.com/apache/lucene/pull/12684
Code coverage tests have been failing with an exception thrown from jacoco's premain:
```
Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "createClassLoader")
at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:485)
at java.base/java.security.AccessController.checkPermission(AccessController.java:1068)
at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:416)
at java.base/java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:479)
at java.base/java.lang.ClassLoader.checkCreateClassLoader(ClassLoader.java:371)
at java.base/java.lang.ClassLoader.checkCreateClassLoader(ClassLoader.java:360)
at java.base/java.lang.ClassLoader.<init>(ClassLoader.java:475)
at org.jacoco.agent.rt.internal_4481564.AgentModule$1.<init>(AgentModule.java:65)
at org.jacoco.agent.rt.internal_4481564.AgentModule.<init>(AgentModule.java:63)
at org.jacoco.agent.rt.internal_4481564.PreMain.createRuntime(PreMain.java:59)
at org.jacoco.agent.rt.internal_4481564.PreMain.premain(PreMain.java:49)
```
I added this permission to the security policy specific to replication tests. Fixes the problem and seems harmless (affects code cov. tests only).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
Re: [PR] Fix jacoco coverage tests (add createClassLoader to replicator permissions) [lucene]
Posted by "dweiss (via GitHub)" <gi...@apache.org>.
dweiss merged PR #12684:
URL: https://github.com/apache/lucene/pull/12684
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org