On Tue, 2 Apr 2024 19:13:15 GMT, Coleen Phillimore wrote:
> At one point long ago, I was trying to understand why we have
> PreserveAllAnnotations and couldn't come up with a reason. For a class file
> reconstitutor, restoring the invisible annotations to the classfile and then
> feeding it ba
On Thu, 28 Mar 2024 22:12:49 GMT, Alex Menkov wrote:
> PreserveAllAnnotations option causes class file parser to preserve
> RuntimeInvisibleAnnotations so VM considers them as RuntimeVisibleAnnotations.
> For class retransformation JvmtiClassFileReconstituter restores all
> annotations as Runti
On Thu, 28 Mar 2024 22:12:49 GMT, Alex Menkov wrote:
> PreserveAllAnnotations option causes class file parser to preserve
> RuntimeInvisibleAnnotations so VM considers them as RuntimeVisibleAnnotations.
> For class retransformation JvmtiClassFileReconstituter restores all
> annotations as Runti
On Thu, 28 Mar 2024 22:12:49 GMT, Alex Menkov wrote:
> PreserveAllAnnotations option causes class file parser to preserve
> RuntimeInvisibleAnnotations so VM considers them as RuntimeVisibleAnnotations.
> For class retransformation JvmtiClassFileReconstituter restores all
> annotations as Runti
On Fri, 29 Mar 2024 07:08:58 GMT, Serguei Spitsyn wrote:
> > Correct solution would be to store additional information about
> > RuntimeInvisibleAnnotations and restore them exactly as they were in the
> > original class (this should be done for all annotations:
> > RuntimeInvisibleAnnotations
On Thu, 28 Mar 2024 22:12:49 GMT, Alex Menkov wrote:
> Correct solution would be to store additional information about
> RuntimeInvisibleAnnotations and restore them exactly as they were in the
> original class (this should be done for all annotations:
> RuntimeInvisibleAnnotations/RuntimeInvi
PreserveAllAnnotations option causes class file parser to preserve
RuntimeInvisibleAnnotations so VM considers them as RuntimeVisibleAnnotations.
For class retransformation JvmtiClassFileReconstituter restores all annotations
as RuntimeVisibleAnnotations attributes.
This can cause problem is the