Uploaded image for project: 'Torque'
  1. Torque
  2. TORQUE-121

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.1
    • 4.0-beta1
    • None
    • None
    • 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?

      Attachments

        1. Peer.vm
          51 kB
          Tal Kramer

        Activity

          People

            tv Thomas Vandahl
            talkramer Tal Kramer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: