st 9. 10. 2019 v 20:15 odesílatel Siddhesh Rane <siddheshr...@disroot.org>
napsal:

> 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.
>

Right. It is possible that sigtest ignores "nbjdk.home" property and runs
on JDK the Ant is running at. That would be a bug. The file that needs to
be fixed in such case is at nbbuild/antsrc/org/netbeans/nbbuild/Sigtest.java
-jt

Reply via email to