generics are not supported in -source 1.3

后端 未结 7 1192
太阳男子
太阳男子 2020-12-19 22:01

I have a problem while maven packaging. In this code:

public class LoginDialog extends Dialog {

    private final TextField customer;
                 


        
7条回答
  •  有刺的猬
    2020-12-19 22:30

    You need to tell the maven compiler plugin that your code is using a recent java version. For instance, if you are using java 7, to the following:

    
       
         org.apache.maven.plugins
         maven-compiler-plugin
         
           1.7
           1.7
         
       
    
    

提交回复
热议问题