Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

StepInto method target doesn't work if the method is part of wrapped expression #519

Closed
gayanper opened this issue Nov 25, 2023 · 0 comments

Comments

@gayanper
Copy link
Contributor

Take the example

mport java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public class DemoApplication {

  public static void main(String[] args) {
    new DemoApplication().test();
  }

  private void test() {
    new ArrayList<>(List.of("1"))
      .subList(0, 1)
      .addAll(mergedData());

    new ArrayList<>(List.of("1"))
      .subList(0, 1)
      .addAll(filterMe("1", 
        "2", "3", 
        "4"));

  }

  private Collection<? extends String> mergedData() {
    return List.of("Merged");
  }

  private Collection<? extends String> filterMe(String string1, String string2, String string3, String string4) {
    return mergedData();
  }
}

Now try to add breakpoints at expression new ArrayList<>(List.of("1")).subList(0, 1).addAll(mergedData()); and select mergedData as target which will not work.

Also the same if you try on the next expression and try to jump into filterMe("1", "2", "3", "4").

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant