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

Bug 326125

Summary: [composition] java/inventory discovery : internal error on String index out of range
Product: [Modeling] MoDisco Reporter: Lom Hillah <lhillah>
Component: TechnologiesAssignee: Fabien Giquel <fabien.giquel>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P1 CC: barbier.gabriel, fabien.giquel, hugo.bruneliere, modisco.web-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Java project with which the bug occurred none

Description Lom Hillah CLA 2010-09-24 04:48:16 EDT
Build Identifier: 20100617-1415

When trying to discover Java and Inventory model from a Java project, the following error occurs:
An internal error occurred during: "Java Composition Discoverer is working ...".
String index out of range: -1

Reproducible: Always

Steps to Reproduce:
1. Import the attached example project into Eclipse.
2. Right-click on the project (I was in Java perspective) -> Modisco -> Discover Java and inventory model from Java project...
3. The error occurs.
Comment 1 Lom Hillah CLA 2010-09-24 04:57:54 EDT
Created attachment 179504 [details]
Java project with which the bug occurred

Please find the Java project on which the bug happened as an archive. 
Just import it as an existing Eclipse project using the archive option.
Comment 2 Fabien Giquel CLA 2010-09-30 05:14:53 EDT
I report here some information indicated on related forum thread : this issue may be the same that the one fixed in bug 323220 (portability to Linux).
Lom, if it is possible for you, would you please update your MoDisco features to a nightly build (more recent than 20100923) to verify that this problem was effectively fixed ?

Fabien.
Comment 3 Fabien Giquel CLA 2010-10-25 12:46:56 EDT
Set the bug as duplicate since the same behavior has been detected on Linux and fixed.

*** This bug has been marked as a duplicate of bug 323220 ***
Comment 4 Hugo Bruneliere CLA 2011-01-11 04:58:55 EST
Duplicate of an already fixed bug.