<?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>470</bug_id>
          
          <creation_ts>2004-03-25 05:26:16 +0000</creation_ts>
          <short_desc>RuntimeException from IDL compiler</short_desc>
          <delta_ts>2005-10-03 22:48:58 +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>2.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brian Wallis">brian.wallis</reporter>
          <assigned_to name="Gerald Brose">gerald.brose</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1035</commentid>
    <comment_count>0</comment_count>
    <who name="Brian Wallis">brian.wallis</who>
    <bug_when>2004-03-25 05:26:16 +0000</bug_when>
    <thetext>For the following IDL which I believe is valid (I have two contants declared 
fred::x and charlie::x): 
 
interface fred { 
  const unsigned long x = 0xffffffff; 
}; 
 
interface charlie : fred { 
  const unsigned long x = 0xffffffff; 
}; 
 
I get the following error when compiling with the idl compiler: 
 
% idl -noskel -d output -I. test.idl 
java.lang.RuntimeException: Could not find definition of : charlie.x 
        at org.jacorb.idl.TypeMap.removeDefinition(Unknown Source) 
        at org.jacorb.idl.NameTable.define(Unknown Source) 
        at org.jacorb.idl.ConstDecl.parse(Unknown Source) 
        at org.jacorb.idl.InterfaceBody.internal_parse(Unknown Source) 
        at org.jacorb.idl.InterfaceBody.parse(Unknown Source) 
        at org.jacorb.idl.Interface.parse(Unknown Source) 
        at org.jacorb.idl.Definition.parse(Unknown Source) 
        at org.jacorb.idl.Spec.parse(Unknown Source) 
        at org.jacorb.idl.CUP$actions.CUP$do_action(Unknown Source) 
        at org.jacorb.idl.parser.do_action(Unknown Source) 
        at org.jacorb.idl.runtime.lr_parser.parse(Unknown Source) 
        at org.jacorb.idl.parser.compile(Unknown Source) 
        at org.jacorb.idl.parser.compile(Unknown Source) 
        at org.jacorb.idl.parser.compileAndHandle(Unknown Source) 
        at org.jacorb.idl.parser.main(Unknown Source) 
[jacorb.idl] ERROR : /work/wallis/TrainingExamples/CXX/ciidl/test.idl, line: 
 8(1): Exception: java.lang.RuntimeException: Could not find definition of : 
 charlie.x 
 
-noskel -d output -I. test.idl  : Could not find definition of : charlie.x 
Usage: idl [-h|-help][-v|-version][-Dsymbol[=value]][-Idir][-U&lt;symbol&gt;][-W 
 debug_level ][-all][-forceOverwrite][-ami_callback][-ami_polling][-backend 
 classname][-d &lt;Output Dir&gt;][-unchecked_narrow][-i2jpackage 
 x:y][-i2jpackagefile 
 &lt;filename&gt;][-cldc10][-ir][-nofinal][-noskel][-nostub][-sloppy_forward][-slop 
py_names][-permissive_rmic][-syntax] &lt;filelist&gt; 
 
Even if the IDL is invalid, the runtime exception is an inappropriate way to 
report it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1036</commentid>
    <comment_count>1</comment_count>
    <who name="Gerald Brose">gerald.brose</who>
    <bug_when>2004-03-25 08:48:35 +0000</bug_when>
    <thetext>Sure, the stack trace is not definitely not intended to surface
at all, that&apos;s a plain bug.

Thanks, Gerald.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1553</commentid>
    <comment_count>2</comment_count>
    <who name="Iliyan Jeliazkov">iliyan</who>
    <bug_when>2005-09-09 23:54:59 +0000</bug_when>
    <thetext>Is org.jacorb.idl.TypeMap.removeDefinition() supposed to throw a runtime
exception when the type definition of a symbol (constant, in this particular
case) is not found?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1566</commentid>
    <comment_count>3</comment_count>
    <who name="André Spiegel">spiegel</who>
    <bug_when>2005-10-03 22:48:58 +0000</bug_when>
    <thetext>This should be fixed now by the patch for bug 616, which I just installed.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>