I have a Java Project. My System's Java version is 1.8 My Maven Version is pointed to 1.8 Java version
Now i intentionally added a nio package in my project. I ran the maven clean install before changing the pom.xml. Added below snippet
<properties>
<maven.compiler.target>1.5</maven.compiler.target>
<maven.compiler.source>1.5</maven.compiler.source>
</properties
I expected the program to fail. But it was successful. Can anyone tell the reason why. i have also tried the snippet under plugin tag under build but to no avail. Please help
Java nio package exists in previous versions (like 1.5). Did you import one of the existins classes at that time? Perhaps you meant NIO.2?
More info here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.