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

jporkkahtc

  • Senior Community Member
  • Posts: 1720
  • Hero Points: 170
  • 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

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2661
  • Hero Points: 410
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

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2661
  • Hero Points: 410
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.