re PR awt/28666 (IllegalAccessError in gtk peers)

PR classpath/28666:
	* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.c
	(Java_gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice_nativeGetDisplayModes):
	Create a 'short' array.

From-SVN: r116044
This commit is contained in:
Tom Tromey 2006-08-09 19:00:54 +00:00 committed by Tom Tromey
parent 2d8ba2c76b
commit 1506961e11
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2006-08-09 Tom Tromey <tromey@redhat.com>
PR classpath/28666:
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.c
(Java_gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice_nativeGetDisplayModes):
Create a 'short' array.
2006-08-07 Tom Tromey <tromey@redhat.com>
PR libgcj/28609:

View File

@ -248,8 +248,8 @@ Java_gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice_nativeGetDisplayModes
/* Retrieves refresh rate information. */
rates = XRRConfigRates(config, i, &nrates);
/* Create a Java int array and put them in. */
shortArray = (*env)->NewIntArray(env, nrates);
/* Create a Java short array and put them in. */
shortArray = (*env)->NewShortArray(env, nrates);
(*env)->SetShortArrayRegion(env, shortArray, 0, nrates, (jshort *) rates);
/* Create a GdkScreenGraphicsDevice.X11DisplayMode instance. */