< prev index next >

test/hotspot/jtreg/compiler/valhalla/valuetypes/ValueTypeTest.java

Print this page

        

@@ -271,11 +271,11 @@
         }
         if (!EXCLUDELIST.isEmpty()) {
            exclude = Arrays.asList(EXCLUDELIST.split(","));
         }
         // Gather all test methods and put them in Hashtable
-        for (Method m : getClass().getMethods()) {
+        for (Method m : getClass().getDeclaredMethods()) {
             Test[] annos = m.getAnnotationsByType(Test.class);
             if (annos.length != 0 &&
                 ((list == null || list.contains(m.getName())) && (exclude == null || !exclude.contains(m.getName())))) {
                 tests.put(getClass().getSimpleName() + "::" + m.getName(), m);
             }
< prev index next >