Skip to content

Commit 22da298

Browse files
authored
add proc full error message (#926)
1 parent b5ab508 commit 22da298

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

inject/src/main/java/io/avaje/inject/DBeanScopeBuilder.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,11 @@ public BeanScope build() {
285285
Level.ERROR,
286286
"Could not find any AvajeModule instances to wire. Possible Causes: \n"
287287
+ "1. No beans have been defined.\n"
288-
+ "2. The avaje-inject-generator depedency was not available during compilation\n"
289-
+ "3. Perhaps using Gradle and a misconfigured IDE? Refer to https://avaje.io/inject#gradle");
288+
+ "2. The avaje-inject-generator depedency was not available during compilation"
289+
+ (Runtime.version().feature() >= 23
290+
? " or -proc full was not enabled in maven compiler"
291+
: "")
292+
+ "\n3. Perhaps using Gradle and a misconfigured IDE? Refer to https://avaje.io/inject#gradle");
290293
}
291294

292295
postConstructList.forEach(builder::addPostConstruct);

0 commit comments

Comments
 (0)