generics are not supported in -source 1.3

后端 未结 7 1214
太阳男子
太阳男子 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:16

    Generics were only introduced as a feature in Java 5, so when compiling using 3, generics will not be permitted. If you want more info about generics, look here. So you need to either compile using 5 or later or stop using generics.

提交回复
热议问题