GoodforGod / graalvm-hint

🧰 Generates GraalVM configuration hints for native-image applications.
http://goodforgod.dev/graalvm-hint/
Apache License 2.0
33 stars 4 forks source link

Bug fix class without package declare #3

Closed linux-china closed 2 years ago

linux-china commented 2 years ago

If class without package declare, and typeName will be empty string, and path for reflect-config.json will be META-INF/native-image//application/reflect-config.json and that is not legal path.

import io.goodforgod.graalvm.hint.annotation.ReflectionHint;

@ReflectionHint
public class RequestOnly {

    private String name;
}