Author Topic: B4 Java class code completion problem  (Read 2366 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
B4 Java class code completion problem
« on: September 12, 2014, 11:40:21 PM »
I've some IFoo??? java classes and cooresponding IFoo??? native classes.


In Java, I entered this:
class MyBigClass {   
IFoo foo = newIFoo() {

Then Slick offers to fill it in with the "Select Virtual Functions to Override" dialog.I select all, and Slick proceeds to fill it in with C++ code.

This is in a Java source file, there is an import statement for "IFoo", push_tag() finds the correct Java class that is being referenced, yet code completion is using the C++ class of the same name.Also note that the indenting is wrong - it's indented too much, and the ending 2 braces are indented at the same level.Running Beatify fixes the indenting.

     IFoo foo = new IFoo() {
            /**
                .....
                @param errorMessage  A developer-level error message
            */
            public void onError(std::string const &errorMessage) {
                Log.d(TAG, "onError()");
            }
            }


Dennis

  • Senior Community Member
  • Posts: 3966
  • Hero Points: 517
Re: B4 Java class code completion problem
« Reply #1 on: September 13, 2014, 12:41:34 AM »
We are looking into this one.  Thanks.

Dennis

  • Senior Community Member
  • Posts: 3966
  • Hero Points: 517
Re: B4 Java class code completion problem
« Reply #2 on: September 24, 2014, 12:47:25 AM »
The primary bug is fixed for the next build.  The indentation bug is still there, but as you said, a quick beautify fixes that.