<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.jacorb.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://www.jacorb.org/bugzilla/"
          
          maintainer="jacorb@goots.org"
>

    <bug>
          <bug_id>992</bug_id>
          
          <creation_ts>2014-09-10 18:00:45 +0000</creation_ts>
          <short_desc>Can no longer name an exception Timeout if it has a data member</short_desc>
          <delta_ts>2014-10-03 04:57:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>JacORB</product>
          <component>IDL compiler</component>
          <version>3.5</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Rodenbaugh">David.Rodenbaugh</reporter>
          <assigned_to name="Mailinglist to track bugs">jacorb-bugs</assigned_to>
          <cc>jacorb</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3201</commentid>
    <comment_count>0</comment_count>
    <who name="David Rodenbaugh">David.Rodenbaugh</who>
    <bug_when>2014-09-10 18:00:45 +0000</bug_when>
    <thetext>Starting with JacORB 2.3.1 and thru 3.5, I found that I can no longer define an exception called &quot;Timeout&quot; in idl that has a data member.
The generated code will not compile.
The problem goes away if I rename the exception something other than &quot;Timeout&quot;.
It also goes away if I remove the data member, in this case &quot;long id;&quot;.
Does this sound like a bug or is &quot;Timeout&quot; a reserved name?

   exception Timeout
   {
      long id;
   };

    [javac] Compiling 2 source files to /home/davidr/crss2/build/classes
    [javac] TimeoutHelper.java:62: cannot find symbol
    [javac] symbol  : constructor Timeout(java.lang.String,int)
    [javac] location: class Timeout
    [javac]             final Timeout result = new Timeout(id, x0);
    [javac]                                    ^
    [javac] TimeoutHelper.java:68: cannot find symbol
    [javac] symbol  : variable id
    [javac] location: class Timeout
    [javac]             out.write_long(s.id);
    [javac]                             ^
    [javac] 2 errors</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3202</commentid>
    <comment_count>1</comment_count>
    <who name="Nick Cross">jacorb</who>
    <bug_when>2014-09-11 11:54:59 +0000</bug_when>
    <thetext>I believe this happened as it clashes with the built in timeout exception.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>