jms-spec
  1. jms-spec
  2. JMS_SPEC-120

Typo: in example, change .class() to .class

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: JMS 2.0 rev A
    • Labels:
      None

      Description

      The JMS spec contains the following code in an example:

      StockObject stockObject = message.getBody(StockObject.class());
      

      This is incorrect. It should be changed to

      StockObject stockObject = message.getBody(StockObject.class);
      

      i.e. class should not be followed by ().

        Activity

        Nigel Deakin created issue -
        Nigel Deakin made changes -
        Field Original Value New Value
        Tags jms20-bug jms20-errata
        Nigel Deakin made changes -
        Assignee Nigel Deakin [ nigeldeakin ]
        Hide
        Nigel Deakin added a comment -

        JMS specification section 14.4.10 "Unpacking an ObjectMessage": Existing text:

        StockObject stockObject = message.getBody(StockObject.class());
        

        Replacement text

        StockObject stockObject = message.getBody(StockObject.class);
        
        Show
        Nigel Deakin added a comment - JMS specification section 14.4.10 "Unpacking an ObjectMessage": Existing text: StockObject stockObject = message.getBody(StockObject.class()); Replacement text StockObject stockObject = message.getBody(StockObject.class);
        Hide
        Nigel Deakin added a comment -

        I have updated the specification in the source code repository. PDF may be downloaded here.

        Show
        Nigel Deakin added a comment - I have updated the specification in the source code repository. PDF may be downloaded here .
        Hide
        Nigel Deakin added a comment -

        Fixed in the JMS 2.0 rev A maintenance release

        Show
        Nigel Deakin added a comment - Fixed in the JMS 2.0 rev A maintenance release
        Nigel Deakin made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s JMS 2.0 rev A [ 17297 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Nigel Deakin
            Reporter:
            Nigel Deakin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: