Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354532 - [Java] NPE due to method parameter of kind C1<X>.C2
Summary: [Java] NPE due to method parameter of kind C1<X>.C2
Status: NEW
Alias: None
Product: MoDisco
Classification: Modeling
Component: Technologies (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Windows XP
: P5 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-11 13:05 EDT by Fabien Giquel CLA
Modified: 2013-05-24 04:03 EDT (History)
3 users (show)

See Also:
gdupe: kepler+


Attachments
Stack trace (2.24 KB, text/plain)
2011-08-11 13:07 EDT, Fabien Giquel CLA
gdupe: iplog-
Details
A simple java class for getting the NPE (103 bytes, text/x-java)
2011-08-11 13:08 EDT, Fabien Giquel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.