Here’s your description of the problem, if you can fill in the gaps here, explain what it means, provide some kind of context, steps to reproduce the problem, then people can help you (otherwise your frustration will continue and your feeling that no one is responding, rather than no one understanding the context, will continue):
“While running one of the unit tests against old code migrated in, I get the failure shown at the end of this thread.” Gj On Sun, 20 Jun 2021 at 20:12, Eric Bresie <[email protected]> wrote: > Am I assume it would involve changing over > > From packages/classes like: > > org.openidex.search.SearchInfo > org.openidex.search.SearchInfoFactory > > To packages/classes like: > => org.netbeans.api.search.provider.SearchInfo > => org.netbeans.spi.search.SearchInfoDefinition > => org.netbeans.api.search.provider.SearchInfoUtils > => org.netbeans.spi.search.SearchInfoDefinitionFactory > > Not quite sure the difference between SearchInfo vs SearchInfoDefinition. > > There also seems to be some File Object, Child/Root type classes involved > which I'm not sure how best to migrate over quite as cleanly (i.e. some > things have changed from interfaces to abstract classes, some more > specialized to I suspect more generalized high level new API, etc.) > > Is this sort of thing documented someplace (either in mailing list, wiki, > API, other classes already migrated, etc.)? > > Eric Bresie > [email protected] > > > On Sun, Jun 20, 2021 at 9:46 AM Eric Bresie <[email protected]> wrote: > > > While running one of the unit tests against old code migrated in, I get > > the failure shown at the end of this thread. > > > > I suspect this has to do with the code in question using an older > > deprecated API (specifically org.openidex.util and related Search > > classes). I assume the new API package may be org.netbeans.api.search > > > > Is there any details on how to migrate from this to an alternative newer > > API? > > > > I see references to org.openidex.util here ( > > > https://netbeans.apache.org/wiki/DevFaqLibrariesModuleDescriptions.asciidoc > > ) related to Servlet APIs which wasn't sure if this is correct. > > > > Display Name Module Comments > > org.openidex.util Servlet 2.2 API org.netbeans.modules.servletapi > > > > I find details about the org.netbean.api.search here ( > > > https://bits.netbeans.org/12.3/javadoc/org-netbeans-api-search/apichanges.html > > ), but I don't see any reference to org.openidex.util in the list. > > > > > > On maven central ( > > > https://search.maven.org/artifact/org.netbeans.api/org-openidex-util/RELEASE124/jar > > ) , I find reference to artifact name for org.openidex.util and > dependency > > like the below. Is this the likely migrate path? > > > > <groupId>org.netbeans.api</groupId> > > *<artifactId>org-openidex-util</artifactId>* > > <version>RELEASE124</version> > > <dependencies> > > <dependency> > > <groupId>org.netbeans.api</groupId> > > * <artifactId>org-netbeans-api-search</artifactId>* > > <version>RELEASE124</version> > > </dependency> > > > > ---- > > > > deprecatedModulesAreDisabled Failure Some deprecated modules are in use > > org.openidex.util is deprecated and should not be enabled > > > > junit.framework.AssertionFailedError: Some deprecated modules are in use > > org.openidex.util is deprecated and should not be enabled > > at > > > org.netbeans.core.validation.ValidateModulesTest.deprecatedModulesAreDisabled(ValidateModulesTest.java:274) > > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native > > Method) > > at > > > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > > at > > > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77) > > at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:476) > > at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:402) > > at java.base/java.lang.Thread.run(Thread.java:829) > > > > Eric Bresie > > [email protected] > > >
