Menu

#4 Patch for GNU Classpath 0.98 integration

open
nobody
None
5
2009-08-13
2009-08-13
Vlad Shahov
No

gnu.x11.Window.change_property() method is called from from classpath-0.98/gnu/java/awt/peer/x/XWindowPeer.java:138,
where data declarated as int[], and format == 32.
This caused runtime error in type cast, when int[] casted to byte[] inside the gnu.x11.Window.change_property() implementation.

Following to change_property() implementation logic (format == 8 : byte[], format == 16 : short[], format == 32 : byte[] again?) it seems to be escher error, not GNU Classpath 0.98.

This issued is reproduced for me on jamvm 1.5.3 + GNU Classpath 0.98 + Escher 0.3 both on i386 and armel.

To get escher-0.3 (or current svn trunk ) works on GNU Classpath 0.98 please apply patch from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41057

See the small patch attached that fix problem specified above.

Discussion

  • Vlad Shahov

    Vlad Shahov - 2009-08-13
     
  • Vlad Shahov

    Vlad Shahov - 2009-08-13
    • summary: Patch for Classpath-0.98 integration --> Patch for GNU Classpath 0.98 integration
     

Log in to post a comment.