-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #583 from diffblue/master
Update security-scanner-support to current master
- Loading branch information
Showing
62 changed files
with
1,687 additions
and
563 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CORE | ||
test.class | ||
--lazy-methods --verbosity 10 --function test.main | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
elaborate java::A\.f:\(\)V | ||
-- | ||
elaborate java::B\.g:\(\)V |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// The most basic lazy loading test: A::f is directly called, B::g should be unreachable | ||
|
||
public class test | ||
{ | ||
A a; | ||
B b; | ||
public static void main() | ||
{ | ||
A.f(); | ||
} | ||
} | ||
|
||
class A | ||
{ | ||
public static void f() {} | ||
} | ||
|
||
class B | ||
{ | ||
public static void g() {} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CORE | ||
test.class | ||
--lazy-methods --verbosity 10 --function test.main | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
elaborate java::A\.f:\(\)V | ||
-- | ||
elaborate java::B\.g:\(\)V |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// This test checks that because A is instantiated in main and B is not, | ||
// A::f is reachable and B::g is not | ||
|
||
public class test | ||
{ | ||
A a; | ||
B b; | ||
public static void main() | ||
{ | ||
A a = new A(); | ||
a.f(); | ||
} | ||
} | ||
|
||
class A | ||
{ | ||
public void f() {} | ||
} | ||
|
||
class B | ||
{ | ||
public void g() {} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CORE | ||
test.class | ||
--lazy-methods --verbosity 10 --function test.main | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
elaborate java::A\.f:\(\)V | ||
-- | ||
elaborate java::B\.g:\(\)V |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// This test checks that because `main` has a parameter of type C, which has a field of type A, | ||
// A::f is considered reachable, but B::g is not. | ||
|
||
public class test | ||
{ | ||
public static void main(C c) | ||
{ | ||
c.a.f(); | ||
} | ||
} | ||
|
||
class A | ||
{ | ||
public void f() {} | ||
} | ||
|
||
class B | ||
{ | ||
public void g() {} | ||
} | ||
|
||
class C | ||
{ | ||
A a; | ||
} | ||
|
||
class D | ||
{ | ||
B b; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.