Fix for Issue #374

This fixes the issue #374 within the java parser.