Difference in method definition and declaration fixed (Bug #3189)