[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jacorb-bugs
Subject:    [jacorb-bugs] [Bug 470] New: RuntimeException from IDL compiler
From:       bugzilla-daemon () inf ! fu-berlin ! de
Date:       2004-03-25 4:26:17
Message-ID: E1B6MRd-0003T6-00 () berners ! inf ! fu-berlin ! de
[Download RAW message or body]

http://www.jacorb.org/cgi-bin/bugzilla/show_bug.cgi?id=470

           Summary: RuntimeException from IDL compiler
           Product: JacORB
           Version: 2.1
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: IDL compiler
        AssignedTo: gerald.brose@acm.org
        ReportedBy: brian.wallis@ot.com.au
         QAContact: jacorb-bugs@lists.spline.inf.fu-berlin.de


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<symbol>][-W 
 debug_level ][-all][-forceOverwrite][-ami_callback][-ami_polling][-backend 
 classname][-d <Output Dir>][-unchecked_narrow][-i2jpackage 
 x:y][-i2jpackagefile 
 <filename>][-cldc10][-ir][-nofinal][-noskel][-nostub][-sloppy_forward][-slop 
py_names][-permissive_rmic][-syntax] <filelist> 
 
Even if the IDL is invalid, the runtime exception is an inappropriate way to 
report it.



------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic