Bugs item #630817, was opened at 2002-10-29 19:51
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=104754&aid=630817&group_id=4754
Category: Tapestry
Group: bug
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: joe panico (jpanico)
Assigned to: Howard Lewis Ship (hship)
Summary: ExternalPage triggers deprecated warn
Initial Comment:
It seems that Tapestry2.2 is tickling a fairly obscure
bug in 1.4.x line of javacs. Under that compiler, if
you create a class that
1) extends BasePage
2) implements ExternalPage
The compiler will warn that:
com/pixory/pxapplication/pages/ApplicationViewerPage.java
[31] warning:
renderWrapped(net.sf.tapestry.IMarkupWriter,net.sf.tapestry.IRequestCycle)
in net.sf.tapestry.IComponent has been deprecated
Note that this does *not* happen with jikes, which
convinces us that it's a bug in javac, even though the
language specification is a little vague in the area of
the deprecated javadoc comment. The basic problem is
that IComponent has a deprecated method. BasePage
(ultimately) implements IComponent. IExternalPage also
(ultimately) implements IComponent. Javac interprets
this IExternalPage implementor overriding a deprecated
method declared in IComponent, which will trigger the
warning.
The problem can be succinctly recreated with this test
case:
public interface InterfaceA
{
public void abstractMethod();
/**
* @deprecated To be removed
*
**/
public void deprecatedMethod();
}
public abstract class ClassA extends Object
implements InterfaceA
{
public void deprecatedMethod()
{
}
}
public interface InterfaceB extends InterfaceA
{
public void anotherDumbMethod();
}
public class ClassB extends ClassA
implements InterfaceB
{
public void abstractMethod()
{
}
public void anotherDumbMethod()
{
}
}
I know this isn't really a Tapestry bug (it's not
Tapestry's fault), but since there is very little
chance of getting sun to quickly fix javac, and since
we always build with both javac and jikes to check for
compatability, it would be really nice if Tapestry
could compensate for this piece of brain-damage that
sun has given us.
----------------------------------------------------------------------
>Comment By: Howard Lewis Ship (hship)
Date: 2002-11-28 10:08
Message:
Logged In: YES
user_id=26816
Just checked, and yes there are no longer any deprecated
methods in IComponent. I start each new release (2.3 in this
case) with a purge of methods deprecated in the previous
release.
However, this is the kind of thing that may occur again in the
future, and you just may have to deal with it.
----------------------------------------------------------------------
Comment By: Howard Lewis Ship (hship)
Date: 2002-11-26 12:40
Message:
Logged In: YES
user_id=26816
How, exactly, should Tapestry be changed?
The methods in question may already have been removed in
2.3 (I start each release with a clean-up-fest to remove stuff
deprecated in the previous release).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=104754&aid=630817&group_id=4754
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer