You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Alex Lumpov (Commented) (JIRA)" <ji...@apache.org> on 2011/10/03 11:49:34 UTC

[jira] [Commented] (TAP5-1679) Bug in InternalClassTransformationImpl

    [ https://issues.apache.org/jira/browse/TAP5-1679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13119222#comment-13119222 ] 

Alex Lumpov commented on TAP5-1679:
-----------------------------------

Iets consider a two components:
public class Parent {
private void beginRender(MarkupWriter writer) {
write("A");
}
}

public class Child extends Parent {
private void beginRender(MarkupWriter writer) {
write("B");
}
} 

I am not overriding method because method is private
                
> Bug in InternalClassTransformationImpl
> --------------------------------------
>
>                 Key: TAP5-1679
>                 URL: https://issues.apache.org/jira/browse/TAP5-1679
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.2.6
>            Reporter: Alex Lumpov
>            Priority: Minor
>
> For example, consider a two components:
> public class Parent {
> void beginRender(MarkupWriter writer) {
> write("A");
> }
> }
> public class Child extends Parent {
> void beginRender(MarkupWriter writer) {
> write("B");
> }
> }
> Judging by the documentation (http://tapestry.apache.org/component-rendering.html)
> component Child should display "AB",
> but in reality it displays "A".
> The fact that RenderPhaseMethodWorker does not process the method B.beginRender,
> because it believes that it override A.beginRender. 
> In the process of the transformation of the Child,
> InternalClassTransformationImpl.TransformMethodImpl.isOverride()
> looking for a method with the same signature in the Parent and it finds it.
> All would be right, if the method beginRender was protected or public.
> I think
> To fix this bug method isOverride()
> should take into account the modifiers in the method signature.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira