Re: [freenet-dev] Re: [freenet-support] Compilation error

2004-02-18 Thread Toad
On Wed, Feb 18, 2004 at 09:10:11AM -0800, Sheldon Young wrote:
> > > javac -target 1.1 -classpath lib/freenet-ext.jar:lib/junit.jar
> > > -sourcepath src -d build  -deprecation src/freenet/client/*.java
> > > src/freenet/client/cli/*.java
> > > src/freenet/support/servlet/http/HttpSessionImpl.java:7: warning:
> > > javax.servlet.http.HttpSessionContext in javax.servlet.http has been
> > > deprecated
> > > import javax.servlet.http.HttpSessionContext;
> > >   ^
> > > 1 warning
> > >
> > > I don't know what it mean
> >
> > It means you should turn off -deprecation if you don't want to see the
> > message :)
> >
> > Seriously though, this is annoying :|
> 
> This is the last and only deprecation warning.
> 
> Unfortunately it cannot be eliminated because, according to the Servlet
> 2.2 specification, getSession() must still exists in the
> HttpServletRequest class.  As long as getSession() exists then the
> HttpSession class must exist, which means the deprecated class
> HttpSessionContext must exist.

We do not however have to implement it. Just return null, and don't
implement HttpSessionContext. Right?
> 
> It's a little ugly, but it's harmless, although it may point out we are
> reinventing the wheel and maybe should be borrowing someone elses servlet
> implementation.
-- 
Matthew J Toseland - [EMAIL PROTECTED]
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.


signature.asc
Description: Digital signature
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]

Re: [freenet-dev] Re: [freenet-support] Compilation error

2004-02-18 Thread Sheldon Young
> > javac -target 1.1 -classpath lib/freenet-ext.jar:lib/junit.jar
> > -sourcepath src -d build  -deprecation src/freenet/client/*.java
> > src/freenet/client/cli/*.java
> > src/freenet/support/servlet/http/HttpSessionImpl.java:7: warning:
> > javax.servlet.http.HttpSessionContext in javax.servlet.http has been
> > deprecated
> > import javax.servlet.http.HttpSessionContext;
> >   ^
> > 1 warning
> >
> > I don't know what it mean
>
> It means you should turn off -deprecation if you don't want to see the
> message :)
>
> Seriously though, this is annoying :|

This is the last and only deprecation warning.

Unfortunately it cannot be eliminated because, according to the Servlet
2.2 specification, getSession() must still exists in the
HttpServletRequest class.  As long as getSession() exists then the
HttpSession class must exist, which means the deprecated class
HttpSessionContext must exist.

It's a little ugly, but it's harmless, although it may point out we are
reinventing the wheel and maybe should be borrowing someone elses servlet
implementation.

___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


Re: [freenet-support] Compilation error

2004-02-18 Thread Yoann
Le mer 18/02/2004 à 17:44, Toad a écrit :
> > 
> > I don't know what it mean
> 
> It means you should turn off -deprecation if you don't want to see the
> message :)

If I turn off -deprecation, I have this :

javac -target 1.1 -classpath lib/freenet-ext.jar:lib/junit.jar
-sourcepath src -d build  src/freenet/client/*.java
src/freenet/client/cli/*.java
Note: src/freenet/support/servlet/http/HttpSessionImpl.java uses or
overrides a deprecated API.
Note: Recompile with -deprecation for details.

.jar are not generated :(

-- 
Offset


signature.asc
Description: Ceci est une partie de message	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]

Re: [freenet-support] Compilation error

2004-02-18 Thread Toad
On Wed, Feb 18, 2004 at 05:36:44PM +0100, Yoann wrote:
> I try to compile the lastest Freenet sources.
> I take the library freenet-ext.jar and junit.jar
> And when i do make, I have (I had -depecation) :
> 
> javac -target 1.1 -classpath lib/freenet-ext.jar:lib/junit.jar
> -sourcepath src -d build  -deprecation src/freenet/client/*.java
> src/freenet/client/cli/*.java
> src/freenet/support/servlet/http/HttpSessionImpl.java:7: warning:
> javax.servlet.http.HttpSessionContext in javax.servlet.http has been
> deprecated
> import javax.servlet.http.HttpSessionContext;
>   ^
> 1 warning
> 
> I don't know what it mean

It means you should turn off -deprecation if you don't want to see the
message :)

Seriously though, this is annoying :|
--
Matthew J Toseland - [EMAIL PROTECTED]
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.


signature.asc
Description: Digital signature
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]

[freenet-support] Compilation error

2004-02-18 Thread Yoann
I try to compile the lastest Freenet sources.
I take the library freenet-ext.jar and junit.jar
And when i do make, I have (I had -depecation) :

javac -target 1.1 -classpath lib/freenet-ext.jar:lib/junit.jar
-sourcepath src -d build  -deprecation src/freenet/client/*.java
src/freenet/client/cli/*.java
src/freenet/support/servlet/http/HttpSessionImpl.java:7: warning:
javax.servlet.http.HttpSessionContext in javax.servlet.http has been
deprecated
import javax.servlet.http.HttpSessionContext;
  ^
1 warning

I don't know what it mean
Thanks
Offset


signature.asc
Description: Ceci est une partie de message	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]