fix for channel API for java
Merge pull request #505 from nlake44/javachannel

fix for channel API for java