Opened on 05/19/2016 at 10:46:05 AM

Closed on 05/30/2016 at 11:22:53 AM

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

Attachments (0)

Change History (2)

comment:1 Changed on 05/19/2016 at 12:33:06 PM by rjeschke

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

comment:2 Changed on 05/30/2016 at 11:22:53 AM by asmirnov

  • Resolution set to duplicate
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from asmirnov.
 
Note: See TracTickets for help on using tickets.