Author Topic: SE 24.0.2 Java9+ Incomplete method references  (Read 430 times)

Marcel

  • Senior Community Member
  • Posts: 260
  • Hero Points: 26
SE 24.0.2 Java9+ Incomplete method references
« on: July 11, 2020, 09:16:58 pm »
Some switch-statement function references are not being tracked.  In the following code sample, the list of references for method "doOne()" is empty, whereas "doTwo()" correctly shows one reference.

Code: [Select]
package com.acme.stuff;
import java.net.HttpURLConnection;

public class Main {
  public static void main(String args[]) {
  }

  private void doOneOrTwo(int action) {
      switch (action) {
        case HttpURLConnection.HTTP_ACCEPTED -> doOne();
        case 2 -> doTwo();
      }
  }

  private void doOne() {
  }

  private void doTwo() {
  }
}

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3468
  • Hero Points: 466
Re: SE 24.0.2 Java9+ Incomplete method references
« Reply #1 on: July 13, 2020, 04:27:38 pm »
I can see what's happening.

This will be fixed (workaround) in the next hot fix.
« Last Edit: July 13, 2020, 07:46:14 pm by Dennis »