Menu

#29 CommonUtils.createVariable does not handle NativeJavaObjects

Backlog
closed
None
5
2025-10-09
2010-05-15
No

When using the script processor w/ javascript it returns a NativeJavaObject.
Then the processor attempts to convert that object to a Variable, but defaults to NodeVariable(value).

Patch:
} else if ( value instanceof NativeJavaObject ) {
NativeJavaObject njo = (NativeJavaObject) value;
Object object = njo.unwrap();
return new NodeVariable(object);
}

Discussion

  • Piotr Dyraga

    Piotr Dyraga - 2012-11-15
    • milestone: --> Backlog
     
  • Robert Bala

    Robert Bala - 2025-10-09
    • status: open --> accepted
    • assigned_to: Robert Bala
     
  • Robert Bala

    Robert Bala - 2025-10-09
    • status: accepted --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB