error constructing new Font instance from Ruby class inheriting from
Java::java.awt.Font in Java 1.5
----------------------------------------------------------------------------------------------------
Key: JRUBY-4451
URL: http://jira.codehaus.org/browse/JRUBY-4451
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.5
Environment: MacOS X 10.5.8
Reporter: Stephen Bannasch
Java 1.5
{code}
[jruby-git (master)]$ jruby --version
jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2010-01-10 9251724) (Java
HotSpot(TM) Client VM 1.5.0_22) [i386-java]
[jruby-git (master)]$ jruby -d -e ' class Font < Java::java.awt.Font; end; f =
Font.new("Lucida Grande", 0, 14)'
Exception `LoadError' at
/Users/stephen/dev/ruby/src/jruby-git/lib/ruby/1.8/Win32API.rb:2 - Win32API
only supported on win32
:1: Constructor invocation failed: tried to access method
java.awt.Font.<init>(Ljava/lang/String;IF)V from class
org.jruby.proxy.java.awt.Font$Proxy0 (ArgumentError)
{code}
Java 1.6
{code}
[jruby-git (master)]$ jruby --version
jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2010-01-10 9251724) (Java
HotSpot(TM) 64-Bit Server VM 1.6.0_17) [x86_64-java]
[jruby-git (master)]$ jruby -d -e ' class Font < Java::java.awt.Font; end; f =
Font.new("Lucida Grande", 0, 14)'
Exception `LoadError' at
/Users/stephen/dev/ruby/src/jruby-git/lib/ruby/1.8/Win32API.rb:2 - Win32API
only supported on win32
SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x10014b850, p =
0x10014b854, pEnd = 0x10014b858)
SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x100157210, p =
0x100157214, pEnd = 0x100157218)
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email