mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-02-16 07:30:16 +00:00
GP-0: Enabling illegal reflective accesses in tests
This commit is contained in:
parent
849c6d195a
commit
4da3696aa2
@ -180,8 +180,15 @@ def initTestJVM(Task task, String rootDirName) {
|
||||
'-javaagent:' + jmockitPath,
|
||||
'-noverify',
|
||||
'-XX:TieredStopAtLevel=1',
|
||||
'-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=' + debugPort
|
||||
'-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=' + debugPort,
|
||||
|
||||
// Allow illegal reflective accesses
|
||||
'--add-opens=java.base/java.util.concurrent=ALL-UNNAMED',
|
||||
'--add-opens=java.desktop/sun.awt=ALL-UNNAMED',
|
||||
'--add-opens=java.desktop/sun.swing=ALL-UNNAMED',
|
||||
'--add-opens=java.desktop/java.awt=ALL-UNNAMED',
|
||||
'--add-opens=java.desktop/javax.swing=ALL-UNNAMED',
|
||||
'--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED'
|
||||
|
||||
// Note: this args are used to speed-up the tests, but are not safe for production code
|
||||
// -noverify and -XX:TieredStopAtLevel=1
|
||||
|
@ -348,7 +348,15 @@ def initTestJVM(Task task, String rootDirName) {
|
||||
'-javaagent:' + jmockitPath,
|
||||
'-noverify',
|
||||
'-XX:TieredStopAtLevel=1',
|
||||
'-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=' + debugPort
|
||||
'-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=' + debugPort,
|
||||
|
||||
// Allow illegal reflective accesses
|
||||
'--add-opens=java.base/java.util.concurrent=ALL-UNNAMED',
|
||||
'--add-opens=java.desktop/sun.awt=ALL-UNNAMED',
|
||||
'--add-opens=java.desktop/sun.swing=ALL-UNNAMED',
|
||||
'--add-opens=java.desktop/java.awt=ALL-UNNAMED',
|
||||
'--add-opens=java.desktop/javax.swing=ALL-UNNAMED',
|
||||
'--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED'
|
||||
|
||||
// Note: this args are used to speed-up the tests, but are not safe for production code
|
||||
// -noverify and -XX:TieredStopAtLevel=1
|
||||
|
Loading…
Reference in New Issue
Block a user