Read only archive ; use https://github.com/JacORB/JacORB/issues for new issues

Bug 942

Summary: The generated Java-Files from the IDL-Compiler are sometimes generated in LINUX format
Product: JacORB Reporter: Martin <Martin.Langwieder>
Component: IDL compilerAssignee: Mailinglist to track bugs <jacorb-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: jacorb
Priority: P3    
Version: 3.1   
Hardware: PC   
OS: Windows NT   
Attachments: IDLs and one generated Java class

Description Martin 2013-02-05 10:34:35 UTC
I don't know, if its a bug, but the behavior is pretty strange: 
When generating a idl-File on different computers, the files are sometimes generated in dos-format, sometimes in linux-format.
The computers are having the same operating system Windows 7 and should have the same configuartion. 

Furthermore, the IDL compiler is started with the same batch-script:
java -classpath "C:\Program Files\JacORB-3.1\lib\idl.jar;C:\Program Files\JacORB\lib\logkit-1.2.jar;%CLASSPATH%" org.jacorb.idl.parser %*

The input of the batch-script is:
-d $ProjectFileDir$\src -sloppy_names -I%CD% $FileName$


If you need more information, please tell me.
Comment 1 Nick Cross 2013-02-05 14:47:45 UTC
Can you supply the IDL file? JacORB (looking at the current HEAD) should use src/org/jacorb/idl/Environment.NL to determine what newline format to use. Its possible this isn't consistent hence getting some IDL to reproduce the problem with would be useful.
Comment 2 Martin 2013-02-05 15:57:59 UTC
Created attachment 405 [details]
IDLs and one generated Java class

I included the idl-files in the attachment as well as one generated Java-class. If you try to open the Java-Class in Ultraedit, a message-box appears, if you want to convert die file into Dos format.
Comment 3 Nick Cross 2013-02-05 16:17:57 UTC
It looks like there are still some hardcoded \n rather then Environment.NL references in the IDL compiler.  
Comment 4 Nick Cross 2013-06-10 07:17:39 UTC
Fixed by 6ab3ca4d90afc09bf90772e853557456864b9b44