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

Bug 331041

Summary: Unexpected ClassDeclaration with qualified name
Product: [Modeling] MoDisco Reporter: Romain Bernard <rom1.bernard>
Component: TechnologiesAssignee: Gabriel BARBIER <barbier.gabriel>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: barbier.gabriel, hugo.bruneliere, modisco.web-inbox, nicolas.bros
Version: 0.8.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
screenshot of the strange ClassDeclaration instance
none
Java discovery settings none

Description Romain Bernard CLA 2010-11-24 11:57:58 EST
Created attachment 183778 [details]
screenshot of the strange ClassDeclaration instance

When reversing the Orekit library (http://www.orekit.org/) from source code and with commons-math as a binary jar, I get a strange ClassDeclaration instance with name "org.apache.commons.math.util.OpenIntToFieldHashMap<T>.Iterator" (see screenshot in attachment).
Comment 1 Gabriel BARBIER CLA 2011-01-04 07:21:51 EST
Hello,
I have tested the discovery of Orekit v5.0 with common-math v2.1, and it works correctly within Modisco v0.9

So could you tell me if I used the correct versions of these projects, please ?
Regards 
Gabriel
Comment 2 Romain Bernard CLA 2011-01-04 07:31:51 EST
(In reply to comment #1)
Ok for orekit and commons-math versions.
I used Modisco 0.8.1 and commons-math deployed as a jar (not source).
Comment 3 Gabriel BARBIER CLA 2011-01-04 07:42:47 EST
Great, the only difference is the version of MoDisco.
I will tried to reproduce the bug in version 0.8.1 (to develop a test for non-regression).

And I recommend you to use the version 0.9 of MoDisco : http://wiki.eclipse.org/MoDisco/Installation 
It will be easier for us to provide you a correction.
Comment 4 Gabriel BARBIER CLA 2011-01-04 08:09:57 EST
Even with the version 0.8.1 of Modisco, I was not able to reproduce the strange ClassDeclaration. 
Could you have a look at the parameters of java discovery (see attachments) and tell me if there is a difference. Because I saw in your screenshot that you discovered 581 instances of ClassDeclaration, however in my java model I get only 418 instances.
And could you confirm that you had no compiler's error on the orekit project ?
Comment 5 Gabriel BARBIER CLA 2011-01-04 08:10:32 EST
Created attachment 185999 [details]
Java discovery settings
Comment 6 Romain Bernard CLA 2011-01-06 08:03:57 EST
(In reply to comment #5)
> Java discovery settings

My settings were :
- commons-math-2.1.jar selected (checked)
- and "Limit .java files........" selected (but "full analysis" gives the same unexpected result).

I cannot use the 0.9 version because our environment is based on eclipse 3.6...

Thanks for your investigations !
Comment 7 Gabriel BARBIER CLA 2011-01-06 10:20:40 EST
Hello

I used the same settings as yours. And I get now 742 instances of ClassDeclaration, with a good "Iterator" ... I wonder what's the difference between our eclipse installations:
I have used an eclipse Helios = 3.6 (modeling bundle, version SR1) with MoDisco v0.8.1.

Sorry, but if I can't reproduce the bug, I will have to close the bug (it could be reopened of course in case of new details).

Regards
Gabriel

PS: you're able to install MoDisco v0.9 on top of Helios, there is no incompatibility (for instant ...)
Comment 8 Gabriel BARBIER CLA 2011-01-10 03:22:04 EST
As I was unable to reproduce the bug ...
Could be reopened with further information.
Comment 9 Hugo Bruneliere CLA 2011-01-11 05:20:17 EST
Currently not a bug.