MinecraftForge/FML — pull request #568 by Zot201 (2014-11-27 07:04:06+00:00)
Title: Allow overriding methods in subclass without annotations

When a method is overridden in a subclass without using an extra SubcribeEvent annotation, a NullPointerException is thrown during registration.

This commit use the super class method that actually own the annotation, should fix this problem. The way how ASMEventHandler works remain unchanged: According to JVM specification of the invokevirtual instruction, using a super class method will have the same effect as the subclass method. And as a side-effect, the cache in ASMEventHandler should work slightly more efficient, as it allows sharing of wrapper class instances between objects extending the same subscriber method.