October 9, 2019 10:21 AM, "Jaroslav Tulach" <jaroslav.tul...@gmail.com> wrote:
> Looks like the deprecated > >> Class org.netbeans.modules.openfile.PackagePanel >> "E1.2 - API type removed" : method public java.awt.peer.ComponentPeer > > java.awt.Component.getPeer() >> anno 0 java.lang.Deprecated() > > method got removed. If that is true, we will have to update the `.sigfile` > (or files) and remove the line requesting the method. > -tj So basically this method is removed in JDK 11 but not in JDK 8. If I set the project Properties > Library > Java Platform to JDK 8, it should compile in the IDE as well. However this does not happen. This seems to be a bug. Ant only compiles with the jdk it is run with, which is JDK 11 inside the IDE and JDK 8 on command line, ignoring the project setting. > st 2. 10. 2019 v 17:38 odesílatel Siddhesh Rane <siddheshr...@disroot.org> > napsal: > >> I have been trying to compile the ide/utilities module from within >> Netbeans 11.1 but it fails with an error related to api signature failing >> (error pasted below). >> The same module compiles fine if I call ant build on the command line in >> the module directory. >> In both the cases I have used the same ant binary that Netbeans uses and >> my repo is currently at master (101c870) with no changes. I am running >> Netbeans on JDK 11. On command line, ant runs on JDK 8 >> >> Regards >> >> Siddhesh Rane >> >> --- ERROR SNIPPET --- >> Detected Java version: 11 in: /home/siddhesh/Applications/jdk-11.0.1 >> Detected OS: Linux >> ... >> -sigtest-init: >> Skipping /home/siddhesh/NetBeansProjects/netbeans/ide/utilities/nbproject >> because it already exists. >> Property "spec.version.base" has not been set >> Set property sigtest.class.path = >> /home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-modules-quer >> es.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/core/org-openide-filesyste >> s.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/lib/org-openide-util.jar:/h >> me/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/lib/org-openide-util-lookup.jar:/hom >> /siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-modules-sendopts. >> ar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/lib/boot.jar:/home/siddhesh/Ne >> BeansProjects/netbeans/nbbuild/netbeans/platform/lib/org-openide-modules.jar:/home/siddhesh/NetBeans >> rojects/netbeans/nbbuild/netbeans/platform/lib/org-openide-util-ui.jar:/home/siddhesh/NetBeansProjec >> s/netbeans/nbbuild/netbeans/platform/modules/org-openide-actions.jar:/home/siddhesh/NetBeansProjects >> netbeans/nbbuild/netbeans/platform/modules/org-openide-awt.jar:/home/siddhesh/NetBeansProjects/netbe >> ns/nbbuild/netbeans/platform/modules/org-netbeans-api-annotations-common.jar:/home/siddhesh/NetBeans >> rojects/netbeans/nbbuild/netbeans/platform/modules/org-openide-dialogs.jar:/home/siddhesh/NetBeansPr >> jects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-api-progress.jar:/home/siddhesh/NetBea >> sProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-api-progress-nb.jar:/home/siddhesh >> NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-explorer.jar:/home/siddhesh/ >> etBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-swing-outline.jar:/home/sidd >> esh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-swing-tabcontrol.jar:/h >> me/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-windows.jar:/hom >> /siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-nodes.jar:/home/si >> dhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-text.jar:/home/siddhes >> /NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-modules-editor-mimelookup. >> ar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-filesystem >> -nb.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-io.ja >> :/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-api-intent. >> ar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-api-io.ja >> :/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-openide-loaders.jar: >> home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-api-scripting >> jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/platform/modules/org-netbeans-api-temp >> ates.jar:/home/siddhesh/NetBeansProjects/netbeans/nbbuild/netbeans/ide/modules/org-netbeans-modules- >> tilities.jar >> Property "sigtest.skip.check" has not been set >> Property "sigtest.gen.fail.on.error" has not been set >> Found: nbproject/org-netbeans-modules-utilities.sig >> Property "commit.mail" has not been set >> Override ignored for property "sigtest.mail" >> sigtest check: ide/utilities; cnb: org-netbeans-modules-utilities; email: >> api-chan...@netbeans.org; type: check >> check-sigtest: >> Skipping >> /home/siddhesh/NetBeansProjects/netbeans/ide/utilities/build/test/sigtest/results >> because it already exists. >> >> /home/siddhesh/NetBeansProjects/netbeans/ide/utilities/build/test/sigtest/results/org.netbeans.modul >> s.utilities >> Packages: org.netbeans.modules.openfile.*, org.netbeans.modules.search.* >> email: api-chan...@netbeans.org >> SignatureTest report >> Base version: 1.66 >> Tested version: 1.67 >> Check mode: bin [throws removed] >> Constant checking: on >> Class org.netbeans.modules.openfile.PackagePanel >> "E1.2 - API type removed" : method public java.awt.peer.ComponentPeer >> java.awt.Component.getPeer() >> anno 0 java.lang.Deprecated() >> /home/siddhesh/NetBeansProjects/netbeans/ide/utilities/build/test/sigtest/results/org-netbeans-modul >> s-utilities.xml: >> 1 failures in >> /home/siddhesh/NetBeansProjects/netbeans/ide/utilities/nbproject/org-netbeans-modules-utilities.sig >> /home/siddhesh/NetBeansProjects/netbeans/nbbuild/templates/projectized.xml:766: >> >> Signature tests return code is wrong (1), check the messages above >> at org.netbeans.apitest.Sigtest.execute(Sigtest.java:184) >> at org.netbeans.nbbuild.Sigtest.apitest(Sigtest.java:290) >> at org.netbeans.nbbuild.Sigtest.execute(Sigtest.java:131) >> at >> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) >> at jdk.internal.reflect.GeneratedMethodAccessor237.invoke(Unknown >> Source) >> at >> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java >> 43) >> at java.base/java.lang.reflect.Method.invoke(Method.java:566) >> at >> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99) >> at org.apache.tools.ant.Task.perform(Task.java:350) >> at org.apache.tools.ant.Target.execute(Target.java:449) >> at org.apache.tools.ant.Target.performTasks(Target.java:470) >> at >> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) >> at org.apache.tools.ant.Project.executeTarget(Project.java:1361) >> at >> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) >> at org.apache.tools.ant.Project.executeTargets(Project.java:1251) >> at >> org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:261) >> at >> org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:574) >> at >> org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:128) >> BUILD FAILED (total time: 0 seconds) >> >> --- END --- >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org >> For additional commands, e-mail: dev-h...@netbeans.apache.org >> >> For further information about the NetBeans mailing lists, visit: >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists