java - OpenCV for Android : Illegal Forward Reference -
i using opencv
project , works fine except descriptorextractor.java
. gives me following error every day:
/opencv/src/org/opencv/features2d/descriptorextractor.java error:(26, 29) error: illegal forward reference error:(27, 29) error: illegal forward reference error:(28, 28) error: illegal forward reference error:(29, 30) error: illegal forward reference error:(30, 30) error: illegal forward reference error:(31, 30) error: illegal forward reference error:(32, 30) error: illegal forward reference
the file this:
public class descriptorextractor { public static final int sift = 1, surf = 2, orb = 3, brief = 4, brisk = 5, freak = 6, akaze = 7, opponent_sift = opponentextractor + sift, opponent_surf = opponentextractor + surf, opponent_orb = opponentextractor + orb, opponent_brief = opponentextractor + brief, opponent_brisk = opponentextractor + brisk, opponent_freak = opponentextractor + freak, opponent_akaze = opponentextractor + akaze; private static final int opponentextractor = 1000; protected final long nativeobj;
everyday moving decleration of opponentextractor
top of class , problem goes away. next day class reverts original. on top of class there comment
// // file auto-generated. please don't modify it! //
what should do? how prevent this?
update:
i using opencv android 3.0 , java 7.80
Comments
Post a Comment