where to get valid code

10 views
Skip to first unread message

Mathew

unread,
Jan 15, 2008, 5:31:00 PM1/15/08
to java2python-discuss
Hi
I was hoping to find a version of j2py that supports the do/while
construct. (When I run 0.2 on a file with do/while I get a
NotImplemented exception)

So I checked out the current code from svn and now I get
File "/home/myeates/lib/python2.5/site-packages/java2python/lib/
sourcetypes.py", line 195, in addVariable
if force or (var.name and self.isClass):
AttributeError: 'str' object has no attribute 'name'

Is there a version that handles do/while?

Mathew

Troy Melhase

unread,
Jan 15, 2008, 6:27:01 PM1/15/08
to java2pyth...@googlegroups.com
> So I checked out the current code from svn and now I get
> File "/home/myeates/lib/python2.5/site-packages/java2python/lib/
> sourcetypes.py", line 195, in addVariable
> if force or (var.name and self.isClass):
> AttributeError: 'str' object has no attribute 'name'
>
> Is there a version that handles do/while?

Try r45.

Also, if you can supply the code (or portion) that you're trying to
translate, I'll try to fix the error.

Mathew Yeates

unread,
Jan 15, 2008, 9:29:40 PM1/15/08
to java2pyth...@googlegroups.com

my bad. I wasn't completely uninstalling. And my .g files weren't being turned into java files because I don't have an executable named "antlr" When I ran java antlr.Tool all was good.

Thanks
Mathew

Reply all
Reply to author
Forward
0 new messages