Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.1Release
-
Fix Version/s: 2.1.1Release
-
Component/s: Inferencing Engine
-
Labels:None
-
Number of attachments :
Description
Due to the breaking changes in api between the Groovy 1.6 and 1.7 streams, we are not sending the inferencing visitor down the static and * imports of a module node.
I think the solution here is to create a compatibility class in the two org.codehaus.groovy projects that, when asked return all of the ImportNodes of a module node. For 1.6 workspaces, this will not include the static and * imports, but for 1.7 workspaces, this will.
Activity
Andrew Eisenberg
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Andrew Eisenberg [ werdna ] |
Andrew Eisenberg
made changes -
| Assignee | Andrew Eisenberg [ werdna ] | |
| Fix Version/s | 2.1.1Release [ 16772 ] |
Andrew Eisenberg
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Andrew Eisenberg
made changes -
| Component/s | Inferencing Engine [ 14687 ] | |
| Component/s | Code Browsing [ 13143 ] |
Another confounding issue is that there is no ClassNode for static and * imports. What this means is that there will need to be special logic in SimpleTypeLookup and TypeReferenceSearchRequestor that looks at the string of the import statement.
Of course, this will cause further problems because we don't know exactly what the underlying text is. Ie, all are valid import statements:
I think we will have to make an assumption that import statements are of standard format and just not handle non-standard import statements. Arrgh.