Hello Jan

Le 18/02/2020 à 08:30, Jan Lahoda a écrit :

I know some things that changed (like adding the support for JDK 9, or the ability to use the JDK's javac instead of nb-javac). But it is hard to say what is the issue without actually being able to reproduce the issue. I am definitely willing to look at problems with (Java) refactoring, but I need to be able to reproduce them. I tried a simple testcase with renaming an interface method, and it worked - so apparently I didn't trigger the problematic part. Might be related to the JDK 9 module support (although I tried both with and without module-info), or to something else, but having a case where one can see what is going on makes chances for a fix much higher.

Thanks for looking. In my case the failures are systematic: since NetBeans 11.2 refactoring and "search usage" never succeed, unless the class is not used anywhere. However I have not yet verified if it happens on another machine than mine. The problem occurs with the Apache SIS project, which has a particularity: it is a Maven project but provides also the NetBeans Ant project files. The Maven build is the official one, but I open the project as a NetBeans Ant project in the IDE for daily development (I find NetBeans Ant projects more efficient than Maven projects - faster to build and launch, more customizable, better at providing a global view of all modules. There is no conflict as long as I never open the project as a Maven project in NetBeans).

But to avoid wasting your time, I should check if the issue is still present in NetBeans 11.3 first, and if yes if it occurs also on other machines. In the meantime I have a workaround for not being able to search usages: I change the name of the method and I check which classes got the red icon in the project tab.

    Martin



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to