Post

1 follower Follow
0

Syntax not recognized Warnings for enum keyword during J2EE analysis even if the Java version is set as 1.4

We have observed Syntax not recognized Warnings for enum keyword during J2EE analysis even if the Java version is set as 1.4. 

Enum is a keyword from Java version 1.5 and above and ideally, it should throw the warnings only when Java version is set as 1.5 and above.

The issue here is due to multiple analysis units with multiple java versions and dependencies between those analysis units.

To be more specific, when an analysis unit with Java version set as 1.4 has a dependency with an analysis unit with a java version as above 1.5 this creates conflicts when analyzer is trying to analyze some files. Those files might have java code compatible with the Java version 1.4 but not with later versions. This is the reason these warnings with Enum comes up. As of now this is not handled by J2EE analyzer. It has been reported to R&D and they are working on it. 

 

 

Please sign in to leave a comment.