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

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • 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

        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 .

          People

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

            Dates

            • Created:
              Updated: