Syntax errors caused as a result of the word 'enum' after migration from WebSphere Commerce V6.0 to V7.0

Technote (troubleshooting)


Problem(Abstract)

After migration from IBM WebSphere Commerce V6.0 to V7.0, syntax errors are caused as a result of the word 'enum'.

Symptom

Inside IBM Rational Application Developer, syntax errors will be reported for each occurrence of the word 'enum' after migration from WebSphere Commerce V6.0 to V7.0.


Cause

Starting in JDK 1.6 'enum' is now a keyword, hence any occurrence of the keyword 'enum', outside of its new intended usage, will cause a syntax error.

Resolving the problem

Replace variables named 'enum' with some other name, for example: 'myenum'.

Some IBM WebServices generated code may include “enum” as package names. For example: com.ibm.ws.webservices.engine.enum.

This will be resolved by changing com.ibm.ws.webservices.engine.enum* to com.ibm.ws.webservices.engine.enumtype*.


Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

WebSphere Commerce Professional Edition
Migration

Software version:

7.0

Operating system(s):

Windows

Reference #:

1454435

Modified date:

2012-05-29

Translate my page

Machine Translation

Content navigation