Retrieve “id” field values via VisualVM OQL query

后端 未结 1 1036
感动是毒
感动是毒 2021-01-07 12:39

Getting obj.id with an OQL query in Java VisualVM (1.8.0_45) returns JavaScript object id (a long value) instead of the value of the Java field. In other words

相关标签:
1条回答
  • 2021-01-07 12:57

    Currently there is no way to access Java object id field. This is a bug in OQL.
    You can use the following workaround:

    obj["wrapped-object"].getValueOfField("id")
    
    0 讨论(0)
提交回复
热议问题