Skip to main content

Problem

  • Product : VisiNet
  • Product Version: 8.0 & above
  • Platform/OS version: ALL

When customer used a JDK5 "enum" feature in their code. After using VisiNet Java2cs command to convert the Java class file to C Sharp file, the following error will be thrown when compiling the C sharp file.

The following error message will be shown during compilation:

Visual Studio Projects\\CorbaTest2\\CorbaTest2\\Expression.cs(12): The type or namespace name "Enum" does not exist in the class or namespace "J2EE.Lang" (are you missing an assembly reference?)

Resolution

VisiNet supports JDK 1.4. Since enum type is introduced in JDK 1.5, VisiNet does not support enum type.


#JDK1.5
#VisiNet
#Security
#enum
#JDK1.4
#VisiBroker
#The type or namespace name "Enum" does not exist in the class or namespace "J2EE.Lang"