-
-
Notifications
You must be signed in to change notification settings - Fork 302
Open
Labels
Description
I am working on updating to the latest (0.5.0-SNAPSHOT). I'm hitting new build errors caused by false positives of asynchronous code in a synchronous method. One of the stack traces is below:
[ERROR] Method com.codename1.impl.html5.HTML5Implementation$14.onAnimationFrame(I)V is claimed to be synchronous, but it is has invocations of asynchronous methods:
calling com.codename1.impl.html5.HTML5Implementation$14.onAnimationFrame(I)V
calling java.util.AbstractList$1.next()Ljava/lang/Object;
calling java.util.Vector.get(I)Ljava/lang/Object;
calling java.util.Vector.elementAt(I)Ljava/lang/Object;
at com.codename1.impl.html5.HTML5Implementation$14.onAnimationFrame
The onAnimationFrame() method uses ArrayList, which internally uses List. It looks like it is marking List.get(int) as async because Vector implements that method.
If I set "stopOnErrors=false", then the build completes (with those warnings printed out), and the app works fine.
Test case: https://github.com/shannah/teavm-issue-248