Proposal for CNI/JNI problems

Per Bothner per@bothner.com
Sat Apr 1 00:00:00 GMT 2000


Bernd Kreimeier <bk@lokigames.com> writes:
> I know that's the current proposal. Why is CNI-to-JNI C conversion
> out of the question?

You need to analyze CNI (i.e. C++) source code. You need to recognize
CNI field and method references, which are just C++ field/method
references. That implies a semantic analysis of the C++ code. The
logical tool is a compiler. The only C++ compiler we have available is
G++. It does not emit C source. Adding an option to emit C is a major
project. It is even worse if you want human-readable C.
What you can do is convert annotated-CNI to JNI C. That loses some
of the simplicity of CNI, but may be worth considering. However,
that is a quite different idea.
-- 
	--Per Bothner
per@bothner.com http://www.bothner.com/~per/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /