This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 62337

Summary: JVM Parameters (-javaagent) is ignored by JUnit
Product: java Reporter: matthiasmann <matthiasmann>
Component: JUnitAssignee: junit-issues@java <junit-issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description matthiasmann 2005-08-16 00:54:29 UTC
I'm writing an application that uses a java.lang.instrument agent (using the JVM
parameter "-javaagent:....." in the project properties). The application depends
the byte code modifications that are done by this agent.

I can run and debug the application without problems.
But when I try to run a JUnit test the javaagent is not loaded.
Comment 1 Marian Petras 2005-10-19 16:25:52 UTC
This is not currently possible. A request for making it possible is already
recorded - see issue #46298.

*** This issue has been marked as a duplicate of 46298 ***