cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with central build of Simple Date Type with Enumeration

Former Member
0 Kudos

Dear gurus,

I hope I'm posting this in the correct forum. Please advise if I'm in the wrong forum.

I have a Web Dynpro DC in which I've created a simple data type with enumeration. It is used for binding to a radio box. The data type is called DownloadType; the enumeration contains two vales: current and archive. To allow me to access the enumeration values, I turn on the "Generate a class representation of the enumeration" in the data type builder.

I then reference the enumeration values with code like:

if (downloadType.equals (DownloadType._CURRENT))

yada yada yada

This works fine when building locally and deploying directly. But when the DC is built by CBS (or doing a "Development Component->Build..." in NW Dev Studio), the build fails, stating that the DownloadType._CURRENT symbol cannot be resolved.

For example:

C:yadayadayada.java:227: cannot resolve symbol
symbol  : variable _CURRENT 
location: class yadayadayada.DownloadType
                equals(DownloadType._CURRENT))  {

Apparently the central builder is not smart enough to handle the "Generate a class representation" flag.

Is this a known problem? Are there any workarounds?

Thanks in advance for any help you can provide.

-Kelly

P.S. Environment: 2004s

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kelly,

works for me using SP10, what SP are you on?

There's a line in the DC log that says:

[ddgen] [Info] Generating datatypes/com/x/x/x/MyEnum.java

and the java compiler includes the matching path for compilation:

[echo] source paths:

[echo] ...\_comp\src\packages

[echo] ..\t\ABF37B5AFB3B2E8A76FFD29E7862EA48\gen_ddic\datatypes

Regards,

Marc

Former Member
0 Kudos

Hi Marc,

We are on SP09, which I understand is not that different from SP10. I'll check the build log. One of our build meisters said that it appears that the .java file for the enumeration is getting created and compiled but that the classpath used when compiling the classes that reference the type do not include the path containing the class for the enumeration.

Thanks for your reply.

Regards,

Kelly

Answers (1)

Answers (1)

Former Member
0 Kudos

An update:

Our build meister tells me that this DC was in an SP08 development track. She pulled the DC into an SP09 dev track and it builds fine. Apparently there is a problem with SP08 and earlier supporting custom Java classes.

Marc, thanks for your question that got us headed in the right direction.

Best regards,

Kelly