classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] RFC: GdkGraphics fix


From: Tom Tromey
Subject: Re: [cp-patches] RFC: GdkGraphics fix
Date: Fri, 25 Nov 2005 12:23:16 -0700

>>>>> "Lillian" == Lillian Angel <address@hidden> writes:

Lillian> drawString(AttributedCharacterIterator...) iterates through the
Lillian> characters and stores the non-newline chars in an array. Here Roman
Lillian> suggested that I make some changes and pass the char[] to the native
Lillian> drawString function because allocating a new String is not ideal.

Lillian> I tried doing this, but that native function calls getStringUTFChars
Lillian> (which requires a jstring). Removing the call to getStringUTFChars
Lillian> obviously does not work... 

Just FYI -- JNI has a separate entry point for getting a C 'jchar *'
given a java 'char[]'.

Tom





reply via email to

[Prev in Thread] Current Thread [Next in Thread]