Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using JNF (Was: Calling Java from native code)



Paul J. Lucas wrote:

After some more probing, I noticed JNFAutoreleasePool.h that has the declarations:

JNF_EXPORT JNFAutoreleasePoolToken *JNFNativeMethodEnter();
JNF_EXPORT void JNFNativeMethodExit(JNFAutoreleasePoolToken *token);

where JNF_EXPORT is defined in JNFJNI.h as:

#define JNF_EXPORT extern

This is wrong when compiling using a C++ compiler.

It would have to be an Objective-C++ compiler, since JNF requires Objective-C. Compiling with just a C++ compiler would fail.



File a bug?

Sounds like it to me. At the very least, it's a documentation bug: failing to say whether it's Objective-C++ friendly or not.


  -- GG

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.