Github user shils commented on a diff in the pull request:

    https://github.com/apache/incubator-groovy/pull/76#discussion_r35913731
  
    --- Diff: src/main/org/codehaus/groovy/tools/javac/JavaStubGenerator.java 
---
    @@ -925,7 +931,8 @@ private void printImports(PrintWriter out, ClassNode 
classNode) {
             imports.addAll(Arrays.asList(ResolveVisitor.DEFAULT_IMPORTS));
     
             for (Map.Entry<String, ImportNode> entry : 
moduleNode.getStaticImports().entrySet()) {
    -            imports.add("static 
"+entry.getValue().getType().getName()+"."+entry.getKey());
    +            if (entry.getKey().equals(entry.getValue().getFieldName()))
    --- End diff --
    
    I'm using a strategy similar to the one used for regular imports - 
excluding aliased static imports, and replacing their occurrences with their 
fully qualified names.  


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to