Clover error while compiling- Unexpected token... Does Clover support enums?

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

Caused by: line 60: unexpected token: ChangeType

Cause

Enums are supported in by java 1.5, however the code is being complied using java 1.4

Resolution

You need to ensure that the "source" attribute on clover-setup is set to 1.5.

e.g:

<clover-setup source="1.5" initstring="...."/>

 

 

Last modified on Nov 21, 2012

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.