Book a Demo

Author Topic: Double language code generation  (Read 2884 times)

nicholas_yue

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Double language code generation
« on: April 15, 2005, 07:20:18 pm »
Hi,

 Why does my model generates code for both C++ and Java?

 I have only chosen C++ as the language of choice.

Cheers

nicholas_yue

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Double language code generation
« Reply #1 on: April 16, 2005, 05:44:50 am »
Quote
Hi,

  Why does my model generates code for both C++ and Java?

  I have only chosen C++ as the language of choice.

Cheers


Answering my own question.

EA gets pretty lost if you change the language for code generation after the class has been created.

What was happening in my model was the EA was writing C++ code to a file with a .java extension causing the confusion.

I have to manually go through each class to update.

Although there is a tool to reset/update the code generation language, it did not do the trick for me.

Not sure if it is a bug.

Cheers

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Double language code generation
« Reply #2 on: April 17, 2005, 03:37:04 pm »
The reset source code language dialog can also clear filenames as well to make sure you don't end up writing the wrong language to the wrong extension.

I wouldn't call it a bug, but look out for EA 5.0 which will include the ability to maintain one model and then generate two seperate models (such as for C++ and Java) from that.  From those seperate models you won't then need to change language to generate.

Simon