javacpp icon indicating copy to clipboard operation
javacpp copied to clipboard

Generator add @NoException annotation to function argument whose class is annotated @NoException manually leading to compiling error

Open egolearner opened this issue 3 years ago • 2 comments

I try to add per-class NoException annotation instead of per-function

infoMap.put(new Info("namespace::Someclass").annotations("@NoException"));

got the following errors

annotation type not applicable to this kind of declaration

the generated code looks like this

public native int do(@NoException @SharedPtr Someclass variable);

See mailing list thread for details: https://groups.google.com/g/javacpp-project/c/zzGRu019BoA

egolearner avatar May 31 '21 15:05 egolearner

Do you still need something like this even with issue #484 fixed?

saudet avatar Jun 01 '21 13:06 saudet

Now NoException in top class works for me. I do not need this for now.

Maybe it has something to do with commit e5495a2a974b16ea68bf590160fc649d61ad0915 ?

egolearner avatar Jun 02 '21 06:06 egolearner