java compiler's target version “jsr14” with JDK7/8

前端 未结 3 657
無奈伤痛
無奈伤痛 2021-02-08 10:09

Can anybody tell me the jsr14 target option of javac will be still available with JDK7/8?

Say,

$ javac -source 1.5 -target jsr1         


        
3条回答
  •  一向
    一向 (楼主)
    2021-02-08 10:23

    That flag has been abandoned since the beta stages of 1.5. It was only included to allow the 1.5 beta compiler to bypass generics checking/parsing by default while the generics specification wasn't finalised. Once 1.5 was released, that flag became meaningless. New compiler versions may not give errors on encountering it but will most likely silently ignore it.

提交回复
热议问题