puppetlabs/puppetlabs-java — pull request #45 by Brball (2013-10-04 21:53:41+00:00)
Title: Added code to allow passing in 1.6 or 1.7 for java version on Redhat os ...

Have updated to allow you to set the version 1.6 or 1.7 form the java you want to install.
I think this will cover issue #40 and #43.