Andy Clement
Andy Clement
Can you possibly share a small test project? In the annotation case, my immediate first thought is that the exception that says you need a proxy says you don't need...
Yep, step 1 was at least have some kind of system that would make anything in this space possible, and we have that now (and it seems to work pretty...
Maybe we can catch a lot of cases with simplistic analysis (asm visitor), we would certainly catch class literal references like `POJO` in here: ``` POJO pojo = objectMapper.readValue(json, POJO.class)...
This problem was already in the Graal tracker ( https://github.com/oracle/graal/issues/2595 ) so I've added a reference to this bug and your test project. They are using different spring cloud dependencies...
Ah, I hadn't run that darn gu install native-image command on the 20.2 I grabbed. Now I've done this, the sample is compiling without NPE. Grab 20.2 (I used 20200627)...
Now building, the app doesn't run of course, but it fails for expected reasons :) I bet running it with the agent to collect a first go of config and...
Ran with the agent to collect config. Gets further, now breaks with `ObjenesisCglibAopProxy` usage.
Ok, upgraded the project to 0.8.0-SNAPSHOT of the Spring GraalVM feature. Now we're at: ``` Caused by: org.springframework.cglib.core.CodeGenerationException: com.oracle.svm.core.jdk.UnsupportedFeatureError-->Unsupported method java.lang.ClassLoader.defineClass1(String, byte[], int, int, ProtectionDomain, String) is reachable at org.springframework.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:538)...
Hmm, I got it going but not totally happy with the solution: ``` 2020-06-30 22:02:30.019 INFO 53618 --- [ main] o.s.b.web.embedded.netty.NettyWebServer : Netty started on port(s): 8080 2020-06-30 22:02:30.025 INFO...
OK - to get it working (these are the current steps, obviously not how it'll be in the end): 1. Enable all security features in the native image build, otherwise...