Opened 3 years ago

Closed 3 years ago

#4051 closed defect (duplicate)

JsValue 'isNumber' method is not registered

Reported by: asmirnov Assignee: asmirnov
Priority: P3 Milestone:
Module: Libadblockplus-Android Keywords:
Cc: rjeschke Blocked By:
Blocking: Platform: Android
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

Description

while writing android tests for jni library (#4031) similar to https://hg.adblockplus.org/libadblockplus/file/tip/test/JsEngine.cpp#l55 i'm getting an exception:

org.adblockplus.libadblockplus.tests.JsEngineTest:.......
Error in testValueCreation:
java.lang.UnsatisfiedLinkError: No implementation found for boolean org.adblockplus.libadblockplus.JsValue.isNumber(long) (tried Java_org_adblockplus_libadblockplus_JsValue_isNumber and Java_org_adblockplus_libadblockplus_JsValue_isNumber__J)
	at org.adblockplus.libadblockplus.JsValue.isNumber(Native Method)
	at org.adblockplus.libadblockplus.JsValue.isNumber(JsValue.java:62)
	at org.adblockplus.libadblockplus.tests.JsEngineTest.testValueCreation(JsEngineTest.java:70)
	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
	at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
	at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1873)

Looking into JniJsValue i can see the method is not registered.

Change History (2)

comment:1 Changed 3 years ago by rjeschke

  • Component changed from Adblock-Browser-for-Android to Libadblockplus-Android

comment:2 Changed 3 years ago by asmirnov

  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.