Torque
  1. Torque
  2. TORQUE-121

Peer generation, using Peer.vm does not call super class' methods but always calls BasePeer.method(...)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 4.0-beta1
    • Component/s: None
    • Labels:
      None
    • Environment:
      Java

      Description

      When generating the om, the *Peer generated classes call BasePeer methods when calling to the original method, This ignores the base class.
      On generation, it is possible to define a basePeer object, but it is irrelevant at the current state since it is not used within the static generated class.

      To fix it, I have replaced in torque-gen.XX.jar in the file om/Peer.vm all calls to BasePeer.method(...) by $

      {table.BasePeer}

      .method(...). Is there a better solution? Or anything wrong with this suggestion?

      1. Peer.vm
        51 kB
        Tal Kramer

        Activity

        Tal Kramer created issue -
        Hide
        Tal Kramer added a comment -

        Suggested solution, based on Peer.vm from torque-gen-3.1.1.jar

        Show
        Tal Kramer added a comment - Suggested solution, based on Peer.vm from torque-gen-3.1.1.jar
        Tal Kramer made changes -
        Field Original Value New Value
        Attachment Peer.vm [ 12400006 ]
        Thomas Vandahl made changes -
        Assignee Thomas Vandahl [ tv ]
        Hide
        Thomas Vandahl added a comment -

        Fixed in SVN

        Show
        Thomas Vandahl added a comment - Fixed in SVN
        Thomas Vandahl made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 4.0 [ 12312102 ]
        Thomas Fox made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Thomas Vandahl
            Reporter:
            Tal Kramer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development