Rename: jps-plugin -> jps/jps-plugin
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
public interface SamInterface {
|
||||
void run();
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public interface SamInterface {
|
||||
default void run() {}
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/SamInterface.class
|
||||
End of files
|
||||
Exit code: NOTHING_DONE
|
||||
------------------------------------------
|
||||
Compiling files:
|
||||
src/SamInterface.java
|
||||
End of files
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/UsageWithFunctionExpressionKt$sam$SamInterface$0.class
|
||||
out/production/module/UsageWithFunctionExpressionKt$usageWithFunctionExpression$a$1.class
|
||||
out/production/module/UsageWithFunctionExpressionKt.class
|
||||
out/production/module/UsageWithFunctionLiteralKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/usageWithFunctionExpression.kt
|
||||
src/usageWithFunctionLiteral.kt
|
||||
End of files
|
||||
Exit code: ABORT
|
||||
------------------------------------------
|
||||
COMPILATION FAILED
|
||||
Interface SamInterface does not have constructors
|
||||
Interface SamInterface does not have constructors
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
fun usageWithFunctionExpression() {
|
||||
val a = { println("Hi!") }
|
||||
SamInterface(a)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun usageWithFunctionLiteral() {
|
||||
SamInterface { println("Hi!") }
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public interface SamInterface {
|
||||
Object run();
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public interface SamInterface {
|
||||
Object run();
|
||||
Object walk();
|
||||
}
|
||||
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/SamInterface.class
|
||||
End of files
|
||||
Exit code: NOTHING_DONE
|
||||
------------------------------------------
|
||||
Compiling files:
|
||||
src/SamInterface.java
|
||||
End of files
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/UsageWithFunctionExpressionKt$sam$SamInterface$0.class
|
||||
out/production/module/UsageWithFunctionExpressionKt$usageWithFunctionExpression$a$1.class
|
||||
out/production/module/UsageWithFunctionExpressionKt.class
|
||||
out/production/module/UsageWithFunctionLiteralKt$usageWithFunctionLiteral$1.class
|
||||
out/production/module/UsageWithFunctionLiteralKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/usageWithFunctionExpression.kt
|
||||
src/usageWithFunctionLiteral.kt
|
||||
End of files
|
||||
Exit code: ABORT
|
||||
------------------------------------------
|
||||
COMPILATION FAILED
|
||||
Interface SamInterface does not have constructors
|
||||
Interface SamInterface does not have constructors
|
||||
jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/samConversions/methodAdded/notUsage.kt
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun notUsage() {
|
||||
println("!")
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
fun usageWithFunctionExpression() {
|
||||
val a = { ":)" }
|
||||
SamInterface(a)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun usageWithFunctionLiteral() {
|
||||
SamInterface { ":)" }
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public class JavaClass {
|
||||
public void foo(SamInterface s) {}
|
||||
public static void bar(SamInterface s) {}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public interface SamInterface {
|
||||
Object run();
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public interface SamInterface {
|
||||
Object run();
|
||||
Object walk();
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/SamInterface.class
|
||||
End of files
|
||||
Exit code: NOTHING_DONE
|
||||
------------------------------------------
|
||||
Compiling files:
|
||||
src/SamInterface.java
|
||||
End of files
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/UsageWithMemberKt$usageWithMember$1.class
|
||||
out/production/module/UsageWithMemberKt.class
|
||||
out/production/module/UsageWithStaticKt$usageWithStatic$1.class
|
||||
out/production/module/UsageWithStaticKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/usageWithMember.kt
|
||||
src/usageWithStatic.kt
|
||||
End of files
|
||||
Exit code: ABORT
|
||||
------------------------------------------
|
||||
COMPILATION FAILED
|
||||
Type mismatch: inferred type is () -> String but SamInterface! was expected
|
||||
Type mismatch: inferred type is () -> String but SamInterface! was expected
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun notUsage() {
|
||||
JavaClass().hashCode()
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun usageWithMember() {
|
||||
JavaClass().foo { "" }
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun usageWithStatic() {
|
||||
JavaClass.bar { "" }
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public interface SamInterface {
|
||||
Object run();
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public interface SamInterface {
|
||||
String run();
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/SamInterface.class
|
||||
End of files
|
||||
Exit code: NOTHING_DONE
|
||||
------------------------------------------
|
||||
Compiling files:
|
||||
src/SamInterface.java
|
||||
End of files
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/UsageWithFunctionExpressionKt$sam$SamInterface$0.class
|
||||
out/production/module/UsageWithFunctionExpressionKt$usageWithFunctionExpression$a$1.class
|
||||
out/production/module/UsageWithFunctionExpressionKt.class
|
||||
out/production/module/UsageWithFunctionLiteralKt$usageWithFunctionLiteral$1.class
|
||||
out/production/module/UsageWithFunctionLiteralKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/usageWithFunctionExpression.kt
|
||||
src/usageWithFunctionLiteral.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun notUsage() {
|
||||
println("!")
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
fun usageWithFunctionExpression() {
|
||||
val a = { ":)" }
|
||||
SamInterface(a)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun usageWithFunctionLiteral() {
|
||||
SamInterface { ":)" }
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public class JavaClass {
|
||||
public void foo(SamInterface s) {}
|
||||
public static void bar(SamInterface s) {}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public interface SamInterface {
|
||||
Object run();
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public interface SamInterface {
|
||||
String run();
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/SamInterface.class
|
||||
End of files
|
||||
Exit code: NOTHING_DONE
|
||||
------------------------------------------
|
||||
Compiling files:
|
||||
src/SamInterface.java
|
||||
End of files
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/UsageWithMemberKt$usageWithMember$1.class
|
||||
out/production/module/UsageWithMemberKt.class
|
||||
out/production/module/UsageWithStaticKt$usageWithStatic$1.class
|
||||
out/production/module/UsageWithStaticKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/usageWithMember.kt
|
||||
src/usageWithStatic.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun notUsage() {
|
||||
JavaClass().hashCode()
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun usageWithMember() {
|
||||
JavaClass().foo { "" }
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun usageWithStatic() {
|
||||
JavaClass.bar { "" }
|
||||
}
|
||||
Reference in New Issue
Block a user