[Uml-devel] Bugs in C++ and Java codegeneration of methods/interfaces

Harald Wallus wallus at results-hannover.de
Thu Nov 13 00:11:05 UTC 2003


Hi all,

there is something different in codegeneration between C++ and Java, too:
In Java the Token String has a uppercase, in C++ not.
That is no a big problem, but when I use umbrello, often I get this 
mismatch.
On the one hand, I think that such kinds of problems can only solved 
with user-action in the gui.
On the other hand, I wish a language independed tool.
At least, you may need to build a transformer for the language 
dependended parts.

nice day
Harald


Brian Thomas wrote:

>On Monday 10 November 2003 11:04 pm, umbrello-devel-request at mail.kde.org wrote:
>  
>
>>Subject: [Uml-devel] [Bug 67769] New: all operations of an interface should
>>be marked as abstract
>>    
>>
>
>	Hi all,
>
>	I dont think this bug is correct. Already you are free to mark an operation as an abstract one, 
>	if desired. In the example (Java) that Harald gives, the operation is explicitly
>	*not* abstract, e.g. 
>
>  
>
>>abstract public interface Neue_schnittstelle {
>> public void neue_operation ( );
>>} 
>>    
>>
>
>	Now, in C++, there is no such thing as an Interface "class", however, you get an 
>	interface by specifying abstract methods (one or more) and NO concrete methods
>	(if you do that, you just created an abstract class). [Someone correct me if I am wrong
>	here. Typing without puting much thought into this..]
>
>	So I would phrase the bug as "C++ interfaces should always generate code with abstract
>	methods (both operations + accessor methods)"
>
>	I will patch the C++ code later today.
>
>	As a totally different bug:
>
>	I do note that the interface declaration is always abstract (in Java) [again: someone correct
>	me if I am wrong here]
>
>	I will submit a patch to fix *this* bug (interface not always abstract in Java) if that 
>	is desired.
>
>	I will be submitting a patch for the body of the operations appearing in Java
>	(Bug 67770).
>
>	Cheers,
>
>	-b.t.
>
>
>
>
>-------------------------------------------------------
>This SF.Net email sponsored by: ApacheCon 2003,
>16-19 November in Las Vegas. Learn firsthand the latest
>developments in Apache, PHP, Perl, XML, Java, MySQL,
>WebDAV, and more! http://www.apachecon.com/
>_______________________________________________
>Uml-devel mailing list
>umbrello-devel at kde.org
>https://mail.kde.org/mailman/listinfo/umbrello-devel
>  
>


-- 
Dr. Harald Wallus
Results GmbH 
Am Listholze 78, D-30177 Hannover 
Tel: +49(0)511 90951-23  Fax: +49(0)511 90951-90 
Email: wallus at results-hannover.de 
Internet: http://www.results-hannover.de  






More information about the umbrello-devel mailing list