Read only archive ; use https://github.com/JacORB/JacORB/issues for new issues
Bug 450 - i2jpackage option causes reject of valid module definition
Summary: i2jpackage option causes reject of valid module definition
Status: RESOLVED FIXED
Alias: None
Product: JacORB
Classification: Unclassified
Component: IDL compiler (show other bugs)
Version: 2.0
Hardware: PC All
: P2 normal
Assignee: Gerald Brose
URL:
Depends on:
Blocks:
 
Reported: 2004-01-28 15:28 UTC by Steffen Ries
Modified: 2015-11-03 09:40 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Ries 2004-01-28 15:28:56 UTC
NameTable.checkScopingRules() checks scoping rules in translated package names
instead of the original package names. This leads to a bogus reject of valid IDL
code, when the option "-i2jpackage" is used.

Example:
$ cat foo.idl
module foo {
	interface bar {
	};
};

$ idl -i2jpackage foo:foo.foo foo.idl
[jacorb.idl] ERROR : foo.idl, line:1(11): Module name foo.foo already defined
	module foo
[jacorb.idl] ERROR : /tmp/foo.idl, line: 5(1): 1 error(s).
	
[jacorb.idl] ERROR : /tmp/foo.idl, line: 5(1): Parse error : Lexer errors


The same problem exists in 1.4.0, 1.4.1 and 2.0
Comment 1 Nick Cross 2015-11-03 09:40:30 UTC
Fixed by a99073fcf32e4eef6db27a50050f7bef85451031