You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by lewis john mcgibbney <le...@gmail.com> on 2011/10/23 22:28:01 UTC

Classes which use a deprecated API within source

Hi,

This has been on my mind for some time, the output below would suggest
that there are java classes which are rather dated and require an
update.
I thought that this could be linked to the problems I was having with
the eclipse source code formatter, but unfortunately it doesn't look
like this is the case.
Before I jump in and start getting into this, does anyone have an idea
of what to be looking out for, or instead a method for getting rid of
these messages.
For the record these messages appear in both trunk and nutch-gora.

Thanks

Lewis
*
compile-core-test*:
    [javac] /zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/Nutch-nutchgora/nutchgora/build.xml:325:
warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 31 source files to
/zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/Nutch-nutchgora/nutchgora/build/test/classes
    [javac] Note:
/zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/Nutch-nutchgora/nutchgora/src/test/org/apache/nutch/plugin/TestPluginSystem.java
uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note:
/zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/Nutch-nutchgora/nutchgora/src/test/org/apache/nutch/plugin/TestPluginSystem.java
uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.



-- 
*Lewis*

Re: Classes which use a deprecated API within source

Posted by Markus Jelsma <ma...@openindex.io>.
I'm sorry, i haven't tried.

cheers 

> Hi Markus,
> 
> Just to clarify, have you tried to check for log output using the parameter
> you specified or are you saying that you haven't?
> 
> Thanks
> 
> Lewis
> On Thu, Oct 27, 2011 at 6:40 PM, Markus Jelsma
> 
> <ma...@openindex.io>wrote:
> > In ant you can set -Xlint:unchecked somewhere in a parameter. It then
> > shows what it's complaining about. I've not yet seen issues.
> > 
> > On Sunday 23 October 2011 22:28:01 lewis john mcgibbney wrote:
> > > Hi,
> > > 
> > > This has been on my mind for some time, the output below would suggest
> > > that there are java classes which are rather dated and require an
> > > update.
> > > I thought that this could be linked to the problems I was having with
> > > the eclipse source code formatter, but unfortunately it doesn't look
> > > like this is the case.
> > > Before I jump in and start getting into this, does anyone have an idea
> > > of what to be looking out for, or instead a method for getting rid of
> > > these messages.
> > > For the record these messages appear in both trunk and nutch-gora.
> > > 
> > > Thanks
> > > 
> > > Lewis
> > > *
> > > 
> > > compile-core-test*:
> > >     [javac]
> > 
> > /zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/Nutch-nutc
> > h
> > 
> >  > gora/nutchgora/build.xml:325: warning: 'includeantruntime' was not
> >  > set,
> > > 
> > > defaulting to
> > > build.sysclasspath=last; set to false for repeatable builds
> > > 
> > >     [javac] Compiling 31 source files to
> > 
> > /zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/Nutch-nutc
> > hg
> > 
> > > ora/nutchgora/build/test/classes [javac] Note:
> > /zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/Nutch-nutc
> > hg
> > 
> > > ora/nutchgora/src/test/org/apache/nutch/plugin/TestPluginSystem.java
> > > uses or overrides a deprecated API.
> > > 
> > >     [javac] Note: Recompile with -Xlint:deprecation for details.
> > 
> > >     [javac] Note:
> > /zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/Nutch-nutc
> > hg
> > 
> > > ora/nutchgora/src/test/org/apache/nutch/plugin/TestPluginSystem.java
> > > uses unchecked or unsafe operations.
> > > 
> > >     [javac] Note: Recompile with -Xlint:unchecked for details.
> > 
> > --
> > Markus Jelsma - CTO - Openindex
> > http://www.linkedin.com/in/markus17
> > 050-8536620 / 06-50258350

Re: Classes which use a deprecated API within source

Posted by lewis john mcgibbney <le...@gmail.com>.
Hi Markus,

Just to clarify, have you tried to check for log output using the parameter
you specified or are you saying that you haven't?

Thanks

Lewis
On Thu, Oct 27, 2011 at 6:40 PM, Markus Jelsma
<ma...@openindex.io>wrote:

> In ant you can set -Xlint:unchecked somewhere in a parameter. It then shows
> what it's complaining about. I've not yet seen issues.
>
> On Sunday 23 October 2011 22:28:01 lewis john mcgibbney wrote:
> > Hi,
> >
> > This has been on my mind for some time, the output below would suggest
> > that there are java classes which are rather dated and require an
> > update.
> > I thought that this could be linked to the problems I was having with
> > the eclipse source code formatter, but unfortunately it doesn't look
> > like this is the case.
> > Before I jump in and start getting into this, does anyone have an idea
> > of what to be looking out for, or instead a method for getting rid of
> > these messages.
> > For the record these messages appear in both trunk and nutch-gora.
> >
> > Thanks
> >
> > Lewis
> > *
> > compile-core-test*:
> >     [javac]
> >
> /zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/Nutch-nutch
>  > gora/nutchgora/build.xml:325: warning: 'includeantruntime' was not set,
> > defaulting to
> > build.sysclasspath=last; set to false for repeatable builds
> >     [javac] Compiling 31 source files to
> >
> /zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/Nutch-nutchg
> > ora/nutchgora/build/test/classes [javac] Note:
> >
> /zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/Nutch-nutchg
> > ora/nutchgora/src/test/org/apache/nutch/plugin/TestPluginSystem.java uses
> > or overrides a deprecated API.
> >     [javac] Note: Recompile with -Xlint:deprecation for details.
> >     [javac] Note:
> >
> /zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/Nutch-nutchg
> > ora/nutchgora/src/test/org/apache/nutch/plugin/TestPluginSystem.java uses
> > unchecked or unsafe operations.
> >     [javac] Note: Recompile with -Xlint:unchecked for details.
>
> --
> Markus Jelsma - CTO - Openindex
> http://www.linkedin.com/in/markus17
> 050-8536620 / 06-50258350
>



-- 
*Lewis*

Re: Classes which use a deprecated API within source

Posted by Markus Jelsma <ma...@openindex.io>.
In ant you can set -Xlint:unchecked somewhere in a parameter. It then shows 
what it's complaining about. I've not yet seen issues.

On Sunday 23 October 2011 22:28:01 lewis john mcgibbney wrote:
> Hi,
> 
> This has been on my mind for some time, the output below would suggest
> that there are java classes which are rather dated and require an
> update.
> I thought that this could be linked to the problems I was having with
> the eclipse source code formatter, but unfortunately it doesn't look
> like this is the case.
> Before I jump in and start getting into this, does anyone have an idea
> of what to be looking out for, or instead a method for getting rid of
> these messages.
> For the record these messages appear in both trunk and nutch-gora.
> 
> Thanks
> 
> Lewis
> *
> compile-core-test*:
>     [javac]
> /zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/Nutch-nutch
> gora/nutchgora/build.xml:325: warning: 'includeantruntime' was not set,
> defaulting to
> build.sysclasspath=last; set to false for repeatable builds
>     [javac] Compiling 31 source files to
> /zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/Nutch-nutchg
> ora/nutchgora/build/test/classes [javac] Note:
> /zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/Nutch-nutchg
> ora/nutchgora/src/test/org/apache/nutch/plugin/TestPluginSystem.java uses
> or overrides a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] Note:
> /zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/Nutch-nutchg
> ora/nutchgora/src/test/org/apache/nutch/plugin/TestPluginSystem.java uses
> unchecked or unsafe operations.
>     [javac] Note: Recompile with -Xlint:unchecked for details.

-- 
Markus Jelsma - CTO - Openindex
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350