src/share/classes/java/lang/reflect/Method.java

Print this page

        

@@ -253,10 +253,16 @@
         return parameterTypes.clone();
     }
 
     /**
      * {@inheritDoc}
+     */
+    public int getParameterCount() { return parameterTypes.length; }
+
+
+    /**
+     * {@inheritDoc}
      * @throws GenericSignatureFormatError {@inheritDoc}
      * @throws TypeNotPresentException {@inheritDoc}
      * @throws MalformedParameterizedTypeException {@inheritDoc}
      * @since 1.5
      */