generics are not supported in -source 1.3

2013-04-01T23:26:01

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

public class LoginDialog extends Dialog {

    private final TextField<String> customer;
                          ^here
    private final TextField<String> login1;
    private final TextField<String> password1;
    private final MainController controller= new MainController();
    private String customerId;
    private String login;
    private String password;

I have an error like:

[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
...src/main/java/com/messagedna/web/client/widget/LoginDialog.java:[19,27] error: generics are not supported in -source 1.3

what may be the reason of this?

Copyright License:
Author:「Nikitin Mikhail」,Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.
Link to:https://stackoverflow.com/questions/15746264/generics-are-not-supported-in-source-1-3

About “generics are not supported in -source 1.3” questions

I have a problem while maven packaging. In this code: public class LoginDialog extends Dialog { private final TextField&lt;String&gt; customer; ^here private final
I have a problem while maven packaging. In this code: public class LoginDialog extends Dialog { private final TextField&lt;String&gt; customer; ^here private final
I have imported an existing Maven project into Eclipse IDE . I have modified some code in it , it compiled successfully , I am using Java 1.6 as compiler and when i am trying to run maven clean
i create new project in android studio 3.5.3 with kotlin 1.3.11 problem is this error when i build project error error: annotations are not supported in -source 1.3 (use -source 5 or higher...
I'm using embedded jetty server to build a war, I ran maven clean through eclipse, then maven install. I get a bunch of "not supported" errors \RoleDao.java:[86,13] generics are not supported in -...
just a quick question: I am a CS undergrad and have only had experience with the Eclipse, and Net Beans IDEs. I have recently acquired a Macbook and was wanting to recompile a recent school proje...
I have the following code: Map&lt;String, String&gt; prefMap = new HashMap&lt;String, String&gt;(); prefMap.put("ns2", "http://service.fr/myservice1"); prefMap.put("ns3"
I'm using Maven and the kotlin-maven-plugin to compile code. &lt;plugin&gt; &lt;artifactId&gt;kotlin-maven-plugin&lt;/artifactId&gt; &lt;groupId&gt;org.jetbrains.kotlin&lt;/groupId&gt;&
I'm using maven in my projects and my classes does not have any error but when i use mvn compile &amp; package it gives me a various error as below: [ERROR] Failed to execute goal org.apache.maven.
I am using Maven 2.x, Atlassian Bamboo with maven plugin my build jdk configuration is set to 1.6 and i don't have any jdk version enforced setting in pom.xml file. When i compile project in my ID...

Copyright License:Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.