CodenameOne icon indicating copy to clipboard operation
CodenameOne copied to clipboard

Add support for more Java 8 features - streams and 310

Open codenameone opened this issue 9 years ago • 12 comments

https://github.com/aNNiMON/Lightweight-Stream-API https://github.com/ThreeTen/threetenbp/

Both would allow better API's for date/time and streams and should integrate nicely with the retrolambda support.

codenameone avatar May 07 '16 07:05 codenameone

Stream support was already implemented here: https://github.com/diamonddevgroup/CN1-Stream

shai-almog avatar May 07 '21 06:05 shai-almog

Hello ! Can I contribute to this project ?

avibhawnani avatar Jan 13 '22 18:01 avibhawnani

Hi, sure. Stream support was already implemented but 310 is still missing.

shai-almog avatar Jan 13 '22 19:01 shai-almog

hi @shai-almog , can you give some more insight about the issue

ddninja avatar Oct 07 '22 16:10 ddninja

This project: https://github.com/ThreeTen/threetenbp/ Is a port of the newish Java date and time API that works with Java 5 era VMs. Technically, under the surface that's really what we have here. We need to get this to compile with the VM features supported by Codename One. That means forking the project and getting it to compile with bootclasspath set to our CLDC11 project.

I tried this a while back and there are a few compilation errors. These aren't trivial since they refer to some classes deep within the VM. Those would need to be implemented within the library fork. You would then need to publish the library on maven central so people can include it in CN1 projects.

As a bonus write a blog post about that effort for the Codename One blog.

shai-almog avatar Oct 08 '22 00:10 shai-almog

Hi there.

Is this issue still available? I would like to work on it!

sardorjumamuratov avatar Nov 14 '23 16:11 sardorjumamuratov

@sardorjumamuratov yes.

shai-almog avatar Nov 15 '23 13:11 shai-almog

I am a beginner. Could you please explain it a little bit?

sardorjumamuratov avatar Nov 16 '23 16:11 sardorjumamuratov

If you're a beginner to Codename One that isn't a problem. But if you're a beginner to Java this might be a bit challenging. Generally it means creating a library based on the projects above. Most of the work is done in these projects but since they use some functionality that isn't supported by Codename One, the work would be to fix the fork so it will compile and build.

shai-almog avatar Nov 18 '23 04:11 shai-almog

Hey @shai-almog and Team, I want to contribute to your project 👨‍💻 . can i get insight of this task

Avant-GardeAMG avatar Jan 27 '24 21:01 Avant-GardeAMG

Hi, I explained this above here: https://github.com/codenameone/CodenameOne/issues/1763#issuecomment-1272178557

shai-almog avatar Jan 28 '24 05:01 shai-almog

Hi, I explained this above here: #1763 (comment)

Sure, i will check. Thanks

Avant-GardeAMG avatar Jan 28 '24 14:01 Avant-GardeAMG