Skip to content

Commit f5101fc

Browse files
Fix for broken test.
Issue was that nothing was actually using the `javax.annotation` module in the project, i.e. a bug in the test project. For some reason updating the Kotlin jars caused the issue to be displayed. Fixed by having a module depend on the module. Also added a use of one of the types from one of the patched jars to ensure it working.
1 parent e9ffc69 commit f5101fc

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

test-project-kotlin/greeter.provider/src/main/java/module-info.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
module greeter.provider {
44
requires greeter.api;
55
requires kotlin.stdlib;
6+
requires java.annotation;
67
provides Greeter with examples.greeter.Friendly;
78
}

test-project-kotlin/greeter.provider/src/main/kotlin/examples/greeter/Friendly.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ package examples.greeter
22

33
import examples.greeter.api.Greeter
44
import java.io.*
5+
import javax.annotation.concurrent.Immutable;
56

7+
@Immutable
68
class Friendly: Greeter {
79
override fun hello(): String {
810
val stream = javaClass.getResourceAsStream("/greeting.txt")

0 commit comments

Comments
 (0)