JRuby using unreleased version of jcodings.jar, prevents usage of jvyamlb in 
same app.
--------------------------------------------------------------------------------------

                 Key: JRUBY-4185
                 URL: http://jira.codehaus.org/browse/JRUBY-4185
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.4.0RC3
            Reporter: bob mcwhirter
            Assignee: Thomas E Enebo


With the change from jvyamlb to Yecht for YAML parsing, jruby.jar no longer 
providers YAML-handling that's easy to use from the Java side of applications.

Attempting to include jvyamlb in my own application results in a linkage error:

{noformat}
Caused by: java.lang.NoSuchMethodError: 
org.jcodings.unicode.UnicodeEncoding.<init>(Ljava/lang/String;II[I[[I)V
        at 
org.jcodings.specific.BaseUTF8Encoding.<init>(BaseUTF8Encoding.java:33)
        at 
org.jcodings.specific.NonStrictUTF8Encoding.<init>(NonStrictUTF8Encoding.java:25)
        at 
org.jcodings.specific.NonStrictUTF8Encoding.<clinit>(NonStrictUTF8Encoding.java:52)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at org.jcodings.Encoding.load(Encoding.java:474)
        at org.jruby.util.KCode.getEncoding(KCode.java:95)
        at org.jruby.parser.DefaultRubyParser.parse(DefaultRubyParser.java:3875)
        at org.jruby.parser.Parser.parse(Parser.java:106)
        at org.jruby.Ruby.parseFile(Ruby.java:2126)
        at org.jruby.Ruby.parseFile(Ruby.java:2130)
        at org.jruby.Ruby.loadFile(Ruby.java:2419)
        at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:64)
        at 
org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:629)
{noformat}

Simply linking against the jcodings.jar from JRuby's build_lib/ suffices to 
make things operational.

My preferred solution, as a begruding Maven user, would be

- Release a version of jcodings.jar used by JRuby 1.4 into the maven 
repositories
- Rev jvyamlb to use the latest release of jcodings.jar

This will allow me to use a version of jvyamlb which shares the same version 
dependency on jcodings.jar that jruby itself expects.

-- 
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


Reply via email to