Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

can you build a va_list in a native method?

843829Sep 26 2002 — edited Oct 1 2002
I'm trying to write to a printf like method that our company uses for logging. There are two versions - one with open ended arguments (...) and one with a va_list.

Is there anyway to do this with JNI going from Java to C? Is it possible to build a va_list? Worse comes to worst I'll just make a few versions of the native methods that take 1 string, 2 strings, 3 strings, etc, but I'd like to find a slicker way of doing it.

Any help is appreciated.

Thanks!
Mike
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 29 2002
Added on Sep 26 2002
4 comments
533 views