bytedeco/javacpp

Problem with vector of nested class

Open

#494 aperta il 3 giu 2021

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)Java (620 fork)batch import
enhancementhelp wantedquestion

Metriche repository

Star
 (4279 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Here's a demo

#include <vector>
class Out {
    public:
        class Inner {
            public:
        };
};
        infoMap.put(new Info("std::vector<Out::Inner>").pointerTypes("InnerVector").define());

Here is InnerVector.java generated

@Name("std::vector<Out::Inner>") @Properties(inherit = ...)
public class InnerVector extends Pointer {
    static { Loader.load(); }
    /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
    public InnerVector(Pointer p) { super(p); }
    public InnerVector(Inner value) { this(1); put(0, value); }
    public InnerVector(Inner ... array) { this(array.length); put(array); }

Inner in generated code should be changed to Out.Inner Error messages

cannot find symbol
[ERROR]   symbol:   class Inner

Guida contributor