Community
Participate
Working Groups
reported on the mailing list. This works on the command line but fails in the IDE: I tried to access the method from sub class. But it show compiler error. Am I doing anything working here? public class Purchase{ } // aspect PurchaseFinder{ //Compile error code static <U extends Purchase> U Purchase.find(){ ...... } } public class HardwarePurchase extend Purchase{ public static test(){ HardwarePurchase test = HardwarePurchase .<HardwarePurchase >find(); // this code is not working } } Error- The method find() of type Purchase is not generic; it cannot be parameterized with arguments <HardwarePurchase >. But if I move the static function (find) code to the Purchase class from PurchaseFinder aspect then it works fine. Working code- public class Purchase{ static <U extends Purchase> U find(){ ...... } }
Doh! It is a reconciling thing.
Same bug as what we are seeing in the Neo4J code. *** This bug has been marked as a duplicate of bug 343001 ***