Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments are carried down into all child scopes if there is a for loop #13

Closed
Naddiseo opened this issue May 2, 2012 · 0 comments
Closed
Assignees

Comments

@Naddiseo
Copy link

Naddiseo commented May 2, 2012

Test case:

// Header Comment

class Klass {
  void method() {
      for (;;) {}
  }
}

Output:

$ j2py test.java
#!/usr/bin/env python
""" generated source for module test """
#  Header Comment
class Klass(object):
    """ generated source for class Klass """
    def method(self):
        """ generated source for method method """
        #  Header Comment
        while True:
            #  Header Comment

The "header comment" is printed in the child scopes.

@ghost ghost assigned natural May 2, 2012
@natural natural closed this as completed in 1b428df May 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants