Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354532

Summary: [Java] NPE due to method parameter of kind C1<X>.C2
Product: [Modeling] MoDisco Reporter: Fabien Giquel <fabien.giquel>
Component: TechnologiesAssignee: Project Inbox <modisco.web-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P5 CC: gdupe, modisco.web-inbox, nicolas.bros
Version: 0.9.0Flags: gdupe: kepler+
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Stack trace
gdupe: iplog-
A simple java class for getting the NPE none

Description Fabien Giquel CLA 2011-08-11 13:05:15 EDT
Some method parameter type is not resolved when it is of kind C1<X>.C2.
It results in one NPE in post-processing step "MethodRedefinitionManager" (see attached trace).

This bug was originally submitted on bug 351590 along with another ClassCastException.
Comment 1 Fabien Giquel CLA 2011-08-11 13:07:43 EDT
Created attachment 201335 [details]
Stack trace
Comment 2 Fabien Giquel CLA 2011-08-11 13:08:33 EDT
Created attachment 201336 [details]
A simple java class for getting the NPE

Here is a simple java class for getting the NPE with Java discoverer
Comment 3 Fabien Giquel CLA 2011-08-11 13:20:01 EDT
For remember, on related bug 351590, the issue comes from PolygonsSet.followLoop method.
Comment 4 Fabien Giquel CLA 2011-08-11 13:31:10 EDT
Additionally, the method AVLTreeTest.value() also matches the problematic kind.

An immediate workaround for related bug 351590 "Apache math commons" discovery is to comment the both "PolygonsSet.followLoop()" and "AVLTreeTest.value()" in code. The model discovery then success (along with 351590 SR1 workaround).

Fixing the issue needs more investigation.
Comment 5 Gregoire Dupe CLA 2011-09-28 08:05:59 EDT
I'm really sorry, but to guaranty maintainability of MoDisco (and EMF Facet) we
have to focus this year on the move to EMF Facet. I cannot the plan this bug
for Juno (of course if someone provides the fix we will commit it).

This bug is still a major bug. It will then come back on the top just after the
move to EMF Facet.