Questions tagged [jep-396]

396: Strongly Encapsulate JDK Internals by Default

Strongly encapsulate all internal elements of the JDK by default, except for critical internal APIs such as sun.misc.Unsafe. Allow end users to choose the relaxed strong encapsulation that has been the default since JDK 9.

See https://openjdk.java.net/jeps/396.

4 questions
5
votes
1 answer

Instrument Java 17 with AspectJ

When I try to run an AspectJ instrumentation with Java 17, I always get errors like the following: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at…
David Georg Reichelt
  • 963
  • 1
  • 15
  • 36
3
votes
2 answers

InaccessibleObjectException when trying to create CGLIB Spring proxy

Feb 02, 2022 12:58:03 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@71318ec4: startup date [Wed Feb 02 12:58:03 IST 2022]; root of…
1
vote
2 answers

What is causing Spring not to be able to load the configuration class when using AnnotationConfigApplicationContext?

I've run across this issue recently and after searching the stackoverflow site, couldn't find a working solution. The error I'm getting is that Spring is having issue loading the configuration class. I'm using annotations and a Spring class to…
aomer3
  • 33
  • 5
0
votes
1 answer

Is it possible to include classes to be weaved by their annotations on aop.xml?

I'm developing some aspects which are expected to load-time weave classes with @AnAnnotation. I created aop.xml as follows
avenue68
  • 43
  • 7