1 // Demonstrate that private methods can be reflected even if they are
2 // not referenced at compile-time (i.e. -fkeep-inline-functions works).
3 import java
.lang
.reflect
.Method
;
4 public class KeepInline
{
5 private void example() {
6 System
.out
.println("example");
8 public static void main(String
[] args
) {
10 KeepInline pr
= new KeepInline();
11 Method
[] meths
= pr
.getClass().getDeclaredMethods();
12 for (int n
= 0; n
< meths
.length
; n
++)
13 System
.out
.println(meths
[n
]);
14 } catch (Throwable t
) {