Book a Demo

Author Topic: Java package malformed in code generation  (Read 3838 times)

acerox

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Java package malformed in code generation
« on: April 05, 2004, 12:55:06 am »
Hi all!!!  ;)
 
we have a small problem during the java code generation from EA, probably because we don't know how to do it correctly  ::).

The situation is that the java classes created from EA don't  generate the package clausule correctly  ???, only generate the first level of the package. (nevertheless the import clausules are written correctly  :o  :o...)  

for example, if we have a class in com.test.classes (EA package definition), when EA creates the .java file, only appears:

package com;

instead of ...

package com.test.classes;

We would be very thankful if you helped us with this question.

Thanks beforehand.

mschulz

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Java package malformed in code generation
« Reply #1 on: April 05, 2004, 10:59:16 am »
I just encountered a similar problem - you might want to verify that your package "test" which is a child of the "com" package does *not* have the "Namespace Root" attribute set in the package control options.  

Not sure if this will solve the problem or not...-Mike

acerox

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Java package malformed in code generation
« Reply #2 on: April 06, 2004, 12:47:07 am »
I just found the solution!!! ;D

I upgrade to release 724 of EA version 4, and it works correctly. (EA 4.00.724)

Before the upgrade i've verified that the namespace root was not set on the package "test", i test it with this configuration, and it continued failing :(  :( so i think that the cause of the problem was a simple application bug, solved in the release 724....

thx all !!