Eclipse shows syntax errors when opening jni_part.cpp of Android samples (Bug #2569)


Added by Andrey Pavlenko over 12 years ago. Updated about 12 years ago.


Status:Done Start date:
Priority:Normal Due date:
Assignee:Andrey Pavlenko % Done:

0%

Category:android
Target version:2.4.3.1
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

When opening `OpenCV4Android SDK` samples containing JNI part (e.g. `Tutorial 3 and 4`) Eclipse CDT editor shows syntax errors in `jni_part.cpp` code and refuses to run these samples.
BTW, in reality the samples are OK and run without problems until their sources are open in the CDT editor!


Associated revisions

Revision b19f6728
Added by Andrey Pavlenko over 12 years ago

(#2569) simplifying code to avoid Eclipse CDT editor confusion, removing warnings and typos in comments

History

Updated by Andrey Pavlenko over 12 years ago

Actually this is an Eclipse CDT bug: if we simplify code a bit (i.e. split one complex line into two simpler) the problems disappear.
We'll simplify the samples JNI code to workaround this issue.

Updated by Andrey Pavlenko over 12 years ago

  • Status changed from Open to Done

Updated by Andrey Kamaev about 12 years ago

  • Target version changed from 2.4.4 to 2.4.3.1

Also available in: Atom PDF