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: Open
Resolution: None
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.
----------------------------------------------------------------------
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:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer