The target version of java compiler “jsr14” and JDK7 / 8

Who can tell me that javac with jsr14 target option can still use JDK7 / 8?

Say,

$javac -source 1.5 -target jsr14 Hello.java

Solution

We use - jsr14 extensively in OSGi because it allows us to use generics in API, but it is still deployed in 1.4 embedded environment Unfortunately, they make JDK 7 not backward compatible with Java 6 and 5 Javac 1.7 ignores the general information that actually exists in jar files Fortunately, fortunately, there is no problem because this information is ignored And it doesn't look like some undocumented functions

Unfortunately, people on the front line often think little about not being able to update to the latest and greatest people I guess Oracle really doesn't care about the embedded market

We may now need to ship two jars, one embedded and one for JDK 7 suck.

This is our error report: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7078419

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>