I've added this class:
public class StringExtensions {
public static String makeMusical( String in ) {
return "1";
}
}
@ExtensionMethod({StringExtensions.class})
public class App {
public static void main(String[] args) {
String a = "A".makeMusical(); //compiles but ide shows:"cannot resolve method makeMusical"
}
}
but when trying to use it on a string I get:
"cannot resolve method makeMusical"
(The solution is built and running on IntelliJ but I do not have intellisense / ide doesn't recognized the method)
I've set:
- Enable annotation processing.