Mercurial > hg > graal-compiler
changeset 14645:4f5a97ba0883
Also look for private test methods
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Thu, 20 Mar 2014 13:42:27 -0700 |
parents | 07ce8ff3603d |
children | a939edbab5ee |
files | graal/com.oracle.graal.test/src/com/oracle/graal/test/GraalTest.java |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.test/src/com/oracle/graal/test/GraalTest.java Thu Mar 20 13:41:59 2014 -0700 +++ b/graal/com.oracle.graal.test/src/com/oracle/graal/test/GraalTest.java Thu Mar 20 13:42:27 2014 -0700 @@ -48,6 +48,15 @@ found = m; } } + if (found == null) { + /* Now look for non-public methods (but this does not look in superclasses). */ + for (Method m : clazz.getDeclaredMethods()) { + if (m.getName().equals(methodName)) { + Assert.assertNull(found); + found = m; + } + } + } if (found != null) { return found; } else {