compiler warnings - Java version when using older target/source the api of the new java version is available -


this question has answer here:

i have java 8 installed , compile code target , source 1.6. works don't want code compile if there java 8 specific function in code. compiles if run on machine running java 6

java.lang.nosuchmethoderror: java.lang.float.isfinite(f)

is possible give error @ compile time?

you need set bootclasspath jdk 6 installation. otherwise use jdk 8 , find new classes , methods shouldn't using.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -