Comments (9)
This looks like a bug in the JVM target itself and you would need to report it directly at https://github.com/HaxeFoundation/haxe/issues. Does it work with the Java target?
from haxe-concurrent.
The java target is deprecated and my project can't compile with it.
from haxe-concurrent.
This is the issue that I opened on the haxe project.
from haxe-concurrent.
@acarioni can you give me a code example where the compilation fails. I am somehow not able to reproduce it.
The following compiles fine for me when using the jvm target.
import hx.concurrent.executor.Executor;
class Test {
static final executor = Executor.create(2);
public static function main() {
executor.submit(function() {
trace("hi");
}, FIXED_RATE(100));
}
}
from haxe-concurrent.
I tried hard to reproduce the issue by means of a simple example but unfortunately I wasn’t able. However I can reproduce it systematically when I compile my open source project.
In order to compile my project, you need to install a few tools (like Ant), but I can assist you if you need help.
You can find some other details in the issue thread on the haxe project.
from haxe-concurrent.
If you locally modify the ThreadPool.hx file and replace the occurrences of (function() {
with (function():Void {
, does it then work?
from haxe-concurrent.
I replaced the (only) occurrence of Threads.spawn(function() {
with Threads.spawn(function(): Void {
but I have the same error (I use hx.concurrent 5.1.3).
from haxe-concurrent.
Ok, then I am out of ideas. I hoped by adding the return type explicitly it may help the Haxe compiler to generate code that is compatible with the java Runnable interface. Then we have to wait that the upstream issue you reported gets resolved directly by the haxe team
from haxe-concurrent.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If the issue is still valid, please add a respective comment to prevent this issue from being closed automatically. Thank you for your contributions.
from haxe-concurrent.
Related Issues (17)
- Right way to set the threads flag HOT 4
- Hashlink CG thread issue HOT 2
- Investigating Possible Memory Leak with Executor HOT 3
- How to ensure event is fired only Once! HOT 8
- haxe-concurrent doesn't work in android HOT 3
- Concurrent Map HOT 1
- "Virtual functions are pure" build error with RLock (HXCPP) HOT 4
- CPP abstract class error when building with Lime HOT 5
- Line ending issue in LICENSE.txt again HOT 1
- logs on startup HOT 4
- Thread Pool Spin Lock HOT 4
- Specific code fails to port to HTML5, Flash HOT 3
- Error with latest Heapsio(hashlink target) and Haxe 4.0.0-rc2 HOT 1
- Package naming issue. HOT 2
- Example ? HOT 2
- Python 3.7 support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haxe-concurrent.