Issue 2462: BAD_PARAM issue (java-rtf) Source: (, ) Nature: Uncategorized Issue Severity: Summary: Summary: This issue is with the 1998-08-22 "Mapping of OMG IDL to Java". ptc/1998-08-22 (the IDL/Java mapping), section 25.3.5, says that if a bounded string is too long, MARSHAL is thrown. Meanwhile, ptc/1998-12-04 (2.3a Core chapters 1-15), section 3.17.1, says that MARSHAL is to be used for "A request or reply is structurally invalid ...indicates a bug in the runtime". Meanwhile, BAD_PARAM says "a parameter passed to a call is out of range or otherwise illegal..." Based on these descriptions, I propose that BAD_PARAM should be thrown in Java when a string exceeds its bound rather than MARSHAL. Resolution: Make it so. Revised Text: In section 25.4.5 Strings replace the 2 occurrences of MARSHAL with BAD_PARAM. Actions taken: February 22, 1999: received issue June 4, 1999: closed issue Discussion: End of Annotations:===== From: Rochat Subject: IDL/Java mapping spec; string bounds exception To: issues@omg.org Date: Sat, 20 Feb 1999 15:38:42 -0600 (CST) This issue is with the 1998-08-22 "Mapping of OMG IDL to Java". ptc/1998-08-22 (the IDL/Java mapping), section 25.3.5, says that if a bounded string is too long, MARSHAL is thrown. Meanwhile, ptc/1998-12-04 (2.3a Core chapters 1-15), section 3.17.1, says that MARSHAL is to be used for "A request or reply is structurally invalid ...indicates a bug in the runtime". Meanwhile, BAD_PARAM says "a parameter passed to a call is out of range or otherwise illegal..." Based on these descriptions, I propose that BAD_PARAM should be thrown in Java when a string exceeds its bound rather than MARSHAL. ------------------------------- Kim Rochat IBM Component Broker Connector E-Mail: krochat@austin.ibm.com Phone: (512) 823-8792 Tie Line: 793-8792 Date: Fri, 12 Mar 1999 14:59:35 +0000 From: Simon Nash Organization: IBM X-Accept-Language: en To: Jeff Mischkinsky CC: Kim Rochat , java-rtf@omg.org Subject: Issue 2462 - string marshalling exception Jeff, Please put Kim's proposed change from a MARSHAL to a BAD_PARAM exception when strings and wstrings exceed their declared bound (section 25.4.5) into the next Java RTF vote. Thanks. Simon -- Simon C Nash, Technology Architect, IBM Java Technology Centre Tel. +44-1962-815156 Fax +44-1962-818999 Hursley, England Internet: nash@hursley.ibm.com Lotus Notes: Simon Nash@ibmgb