Navigation Menu

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

Missing method body from custom methods in generated Ruby code #177

Closed
Nava2 opened this issue Aug 26, 2015 · 2 comments
Closed

Missing method body from custom methods in generated Ruby code #177

Nava2 opened this issue Aug 26, 2015 · 2 comments
Assignees
Labels
Priority-Medium This problem or request is likely to be of significant benefit if dealt with Status-Verified Type-Defect

Comments

@Nava2
Copy link
Contributor

Nava2 commented Aug 26, 2015

Originally reported on Google Code with ID 277
Owned by @EmperorJordan


What steps will reproduce the problem?

  1. Copy the below program and compile it:

    class Foo
    {
    void hello(name)
    {
    'Hello ' + name
    }
    }

  2. Generate Ruby code from the program.

  3. Observe what was generated for the "hello" method.

The problem here is that the method should look something like this:

 def hello(name)  
   'Hello ' + name  
 end 

But instead we get this:

 def hello (name)end

Also note that the indentation and formatting is pretty bad here. The end is on the
same line as the "def" and the "def" is 1-space indented when everything else in the
class is at least 2-space.


Reported by @EmperorJordan on 2012-02-13 21:53:40

@Nava2
Copy link
Contributor Author

Nava2 commented Aug 26, 2015

I have submitted a fix for this, see r1460.


Reported by @EmperorJordan on 2012-02-14 00:08:13

@Nava2 Nava2 added Type-Defect Priority-Medium This problem or request is likely to be of significant benefit if dealt with Status-Verified labels Aug 26, 2015
@Nava2
Copy link
Contributor Author

Nava2 commented Aug 26, 2015

I have verified that this is fixed.


Reported by @umple on 2012-02-15 17:22:34

  • Status changed: Verified

@Nava2 Nava2 closed this as completed Aug 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority-Medium This problem or request is likely to be of significant benefit if dealt with Status-Verified Type-Defect
Projects
None yet
Development

No branches or pull requests

2 participants