Syntax errors caused as a result of the word 'enum' after migration from WebSphere Commerce V6.0 to V7.0
After migration from IBM WebSphere Commerce V6.0 to V7.0, syntax errors are caused as a result of the word 'enum'.
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.
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*.
Translate this page: