unsigned values values should be stuffed into Java signed values like Java does
-------------------------------------------------------------------------------

                 Key: JRUBY-4056
                 URL: http://jira.codehaus.org/browse/JRUBY-4056
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.4.0RC1
            Reporter: Thomas E Enebo
             Fix For: JRuby 1.4


This is idomatic code.  I use this in image_voodoo more or less:

{noformat}
       byte reverse[] = new byte[256];
       for (int j=0; j<200; j++){
               reverse[j]=(byte)(256-j);
       }
       ByteLookupTable blut=new ByteLookupTable(0, reverse);
{noformat}

In image_voodoo it looks like:

{noformat}
 NEGATIVE_OP = LookupOp.new(ByteLookupTable.new(0,
(0...254).to_a.reverse.to_java(:byte)), nil)
{noformat}

However this breaks in 1.4.0RC1

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