Skip to content

Commit

Permalink
Fix SpaceScanner to use latest ASM API version to enable successful d…
Browse files Browse the repository at this point in the history
…iscovery of components compiled with newer Java versions

Signed-off-by: Benjamin Bentmann <bentmann@sonatype.com>
  • Loading branch information
bentmann authored and mcculls committed Aug 3, 2022
1 parent f338084 commit 4790d3e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public static String jvmDescriptor( final Class<? extends Annotation> clazz )
*/
private static org.eclipse.sisu.space.asm.ClassVisitor adapt( final ClassVisitor _cv )
{
return null == _cv ? null : new org.eclipse.sisu.space.asm.ClassVisitor( Opcodes.ASM6 )
return null == _cv ? null : new org.eclipse.sisu.space.asm.ClassVisitor( Opcodes.ASM9 )
{
@Override
public void visit( final int version, final int access, final String name, final String signature,
Expand All @@ -154,7 +154,7 @@ public org.eclipse.sisu.space.asm.AnnotationVisitor visitAnnotation( final Strin
final boolean visible )
{
final AnnotationVisitor _av = _cv.visitAnnotation( desc );
return null == _av ? null : new org.eclipse.sisu.space.asm.AnnotationVisitor( Opcodes.ASM6 )
return null == _av ? null : new org.eclipse.sisu.space.asm.AnnotationVisitor( Opcodes.ASM9 )
{
{
_av.enterAnnotation();
Expand Down

0 comments on commit 4790d3e

Please sign in to comment.