Re: How to restrict access to sun.misc.Unsafe when using PaxExam ?

2017-11-23 Thread Christian Schneider
Do you maybe use boot delegation? Christian 2017-11-23 11:06 GMT+01:00 'Norman Maurer' via OPS4J : > Hmm I do not export it... Can I somehow see "who" export it ? > I only run the unit test and add my bundle to the config thats it. > > > Am Donnerstag, 23. November 2017

Re: How to restrict access to sun.misc.Unsafe when using PaxExam ?

2017-11-23 Thread 'Achim Nierbeck' via OPS4J
Hi, you could write a little test and do look for which bundle actually exports that package. for example with the following code you'll find all exports of all bundles ;) List bundleWirings = Arrays.stream(bundleContext.getBundles()) .map(bundle ->

Re: How to restrict access to sun.misc.Unsafe when using PaxExam ?

2017-11-23 Thread 'Norman Maurer' via OPS4J
Hmm I do not export it... Can I somehow see "who" export it ? I only run the unit test and add my bundle to the config thats it. Am Donnerstag, 23. November 2017 11:00:02 UTC+1 schrieb Achim Nierbeck: > > Hi, > > first of all, if you don't have a bundle or system-fragment-bundle > exporting

How to restrict access to sun.misc.Unsafe when using PaxExam ?

2017-11-23 Thread 'Norman Maurer' via OPS4J
Hi all, I am trying to use @RunWith(PaxExam.class) and restrict the access to sun.misc.Unsafe while doing this. I want to do this to write a unit that ensure we are still able to init a class when sun.misc.Unsafe is not present. Any idea how to do this ? So far I could not find any way to do

KarafJavaRunner steals master commands from surefire's CommandReader

2017-11-23 Thread Vasya Bezkedov
I use Pax Exam 4.11.0 and surefire plugin 2.20.1. The issue reproduces if I run Karaf as a separated process (KarafDistributionOption.runEmbedded(false)). The issue is in communication between Surefire and PaxExam. Surefire uses System.in for communication between maven plugin's process and

Epic-Stories are not shown up if not logged in as well as links to Wiki pages

2017-11-23 Thread 'Christoph Läubrich' via OPS4J
If I view https://ops4j1.jira.com/browse/PAXEXAM-832 while logged in all is fine, stories show up and the link to the Wiki is displayed. If I'm not logged in (e.g. open a private tab, view it on a different computer) the Stories are not displayed and the link to the wiki states that I'm not