You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2017/09/27 01:12:07 UTC
svn commit: r1809797 - in
/maven/plugin-tools/trunk/maven-plugin-plugin/src/it:
java-basic-annotations-jdk8/src/main/java/org/apache/maven/plugin/coreit/TestInterface.java
mplugin-272_java8/src/main/java/fr/ca/TestInterface.java
Author: hboutemy
Date: Wed Sep 27 01:12:06 2017
New Revision: 1809797
URL: http://svn.apache.org/viewvc?rev=1809797&view=rev
Log:
add Java 8 specific source code to check that compiler is configured with source/target 1.8
Added:
maven/plugin-tools/trunk/maven-plugin-plugin/src/it/java-basic-annotations-jdk8/src/main/java/org/apache/maven/plugin/coreit/TestInterface.java (with props)
Modified:
maven/plugin-tools/trunk/maven-plugin-plugin/src/it/mplugin-272_java8/src/main/java/fr/ca/TestInterface.java
Added: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/java-basic-annotations-jdk8/src/main/java/org/apache/maven/plugin/coreit/TestInterface.java
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/src/it/java-basic-annotations-jdk8/src/main/java/org/apache/maven/plugin/coreit/TestInterface.java?rev=1809797&view=auto
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-plugin/src/it/java-basic-annotations-jdk8/src/main/java/org/apache/maven/plugin/coreit/TestInterface.java (added)
+++ maven/plugin-tools/trunk/maven-plugin-plugin/src/it/java-basic-annotations-jdk8/src/main/java/org/apache/maven/plugin/coreit/TestInterface.java Wed Sep 27 01:12:06 2017
@@ -0,0 +1,30 @@
+package fr.ca;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+public interface TestInterface {
+
+ /**
+ * Java 8 required to support such default method implementation
+ */
+ public default void foo(){
+
+ }
+}
Propchange: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/java-basic-annotations-jdk8/src/main/java/org/apache/maven/plugin/coreit/TestInterface.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/mplugin-272_java8/src/main/java/fr/ca/TestInterface.java
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/src/it/mplugin-272_java8/src/main/java/fr/ca/TestInterface.java?rev=1809797&r1=1809796&r2=1809797&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-plugin/src/it/mplugin-272_java8/src/main/java/fr/ca/TestInterface.java (original)
+++ maven/plugin-tools/trunk/maven-plugin-plugin/src/it/mplugin-272_java8/src/main/java/fr/ca/TestInterface.java Wed Sep 27 01:12:06 2017
@@ -21,6 +21,9 @@ package fr.ca;
public interface TestInterface {
+ /**
+ * Java 8 required to support such default method implementation
+ */
public default void foo(){
}