fixes bug that prevents setting enums from java procedures
Merge pull request #5 from r0ml/fix_enum

fixes bug that prevents setting enums from java procedures