Re: how to use import sources for C++

"Tom Morris" <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.user
Message-ID <[email protected]>
On 10/12/07, Maarten Troost <[email protected]> wrote:
> Trying the C++ import for existing code. Upon importing the first
> message that appears state "Add entries to match the classpath that
> would be used to compile these source modules.  For example, you
> probably want to include the JRE or JDK that you use."
> This stumps me as I am not using Java and thus certainly don't want the
> C++ code compiled with a java compiler. Since argouml started, the JRE
> is ok.

This is a known bug.  This dialog should only  be displayed for Java import.

> Thus happily ignoring the dialogue, clicking ok, getting another
> dialogue telling us some limitations, fine for me, pressing close. And
> yet another box with an error report:
> Caused by: java.util.EmptyStackException
>         at java.util.Stack.peek(Unknown Source)
>         at
> org.argouml.language.cpp.reveng.ModelerImpl.beginParameterDeclaration(Mo
> delerImpl.java:571)
>         at

I'm not sure what the state of the C++ parser is.  It's possible that
this just isn't finished yet, but I'm sure the C++ developer will be
along to provide an update.

The best thing to do is file a bug report and include the source
module if possible.

Tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.