View Single Post
  #4   Spotlight this post!  
Unread 28-01-2010, 00:15
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
Re: From C++ to Java

Good, we agree that you don't need to convert the library, but I believe that the translator tool was doing it anyway.

You didn't say what converter tool you were using, or how much robot code you have to convert, so I can't give specific advice. I can say that when WPI students ported WPILib from C++ to Java, they essentially used "cut and paste", then fixed the syntax errors. [They had to do a lot more work on FPGA interfacing, etc, that you don't need to worry about it.]

If you are interested in converting from C++ to Java on your own you need to be familiar with differences between C++ objects and Java objects (C++ objects can be on stack, static memory, or in heap, '.' vs. '->'). Also, the Java version of WPILib all method names begin with lowercase letters.
Reply With Quote