Bug 415294 - LabeledStatement not resolved
Summary: LabeledStatement not resolved
Status: NEW
Alias: None
Product: MoDisco
Classification: Modeling
Component: Technologies (show other bugs)
Version: 0.11.0   Edit
Hardware: PC Windows 7
: P2 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-18 09:30 EDT by Benjamin Klatt CLA
Modified: 2016-05-20 10:49 EDT (History)
2 users (show)

See Also:
gdupe: luna+


Attachments
Example Eclipse Project (3.08 KB, application/octet-stream)
2013-08-18 09:30 EDT, Benjamin Klatt CLA
gdupe: iplog-
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Klatt CLA 2013-08-18 09:30:35 EDT
Created attachment 234511 [details]
Example Eclipse Project

When discovering code containing labeled statements, e.g. within continue statements,  the reference to the labeled statement is not resolved.

In the code example below, the continue statement references the labeled statement "outside" to jump to the outer for loop.
When discovering this code with either the Java Model discoverer or the Java and Inventory discoverer, the LabeledStatement is not resolved and an UnresolvedLabaledStatement element is produced.

        outside: 
        for (int i = 0; i < 10; i++) {
            for (int j = 0; j < 10; j++) {
                if (i % 3 == 0) {
                    continue outside;
                }
                System.out.println("i: "+i+ "|j: "+j);
            }
        }

The error exists in the latest Kepler (0.11) as well as in the previous Juno Releases (0.10.x)