Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Support native hints on application class for native tests #1572

Closed
sdeleuze opened this issue Apr 6, 2022 · 0 comments
Closed

Support native hints on application class for native tests #1572

sdeleuze opened this issue Apr 6, 2022 · 0 comments
Assignees
Labels
type: compatibility Native image compatibility issue
Milestone

Comments

@sdeleuze
Copy link
Contributor

sdeleuze commented Apr 6, 2022

Currenlty broken in session-without-security sample with:

    ClassSource [className = 'com.example.demo.DemoApplicationTests', filePosition = null]
    => java.lang.IllegalArgumentException: Could not find class [org.springframework.nativex.hint.TypeHint]
       org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:334)
       org.springframework.core.type.classreading.MergedAnnotationReadingVisitor.visitAnnotation(MergedAnnotationReadingVisitor.java:116)
       org.springframework.core.type.classreading.MergedAnnotationReadingVisitor.access$000(MergedAnnotationReadingVisitor.java:43)
       org.springframework.core.type.classreading.MergedAnnotationReadingVisitor$ArrayVisitor.visitAnnotation(MergedAnnotationReadingVisitor.java:175)
       org.springframework.asm.ClassReader.readElementValue(ClassReader.java:3093)
       [...]
     Caused by: java.lang.ClassNotFoundException: org.springframework.nativex.hint.TypeHint
       java.lang.Class.forName(DynamicHub.java:1338)
       org.springframework.util.ClassUtils.forName(ClassUtils.java:284)
       org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:324)
       [...]

@sdeleuze sdeleuze added the type: compatibility Native image compatibility issue label Apr 6, 2022
@sdeleuze sdeleuze added this to the 0.11.4 milestone Apr 6, 2022
@sdeleuze sdeleuze self-assigned this Apr 6, 2022
@sdeleuze sdeleuze changed the title Support native hints annotation on application class for native tests Support native hints on application class for native tests Apr 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: compatibility Native image compatibility issue
Development

No branches or pull requests

1 participant