Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Semantic highlight of static method is that of category method #512

Closed
eric-milles opened this issue Mar 5, 2018 · 0 comments
Closed

Semantic highlight of static method is that of category method #512

eric-milles opened this issue Mar 5, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@eric-milles
Copy link
Member

Main.groovy

static void setThreadLocalProperty(String key, Object val) { Class target = null // redacted
  def setter = Reflections.findMethod('setThreadLocalProperty', target, String, Object)
  Reflections.invokeMethod(setter, target, key, val) // semantic highlights as DGM
}

Reflections.groovy

import java.lang.reflect.*
class Reflections {
  static Method findMethod(String methodName, Class<?> targetClass, Class<?>... paramTypes) {
  }
  static Object invokeMethod(Method method, Object target, Object... params) {
  }
}
@eric-milles eric-milles self-assigned this Mar 5, 2018
@eric-milles eric-milles added this to the v3.0.0 milestone Mar 5, 2018
@eric-milles eric-milles added the bug label Mar 5, 2018
eric-milles added a commit that referenced this issue Mar 6, 2018
- loose to exact confidence boost prevents category method precedence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant