FML icon indicating copy to clipboard operation
FML copied to clipboard

ASM 4.1 library is incompatible with Java 8

Open ajfite opened this issue 10 years ago • 13 comments

Updating the library to 5.0.1 fixes compatibility issues.

ajfite avatar Mar 24 '14 20:03 ajfite

It can READ files compiled to TARGET Java8, It does Nothing for Compatibility with the Java8 JRE. However, we need to setup the distribution of this file, it's ore then just editing the json files. The end users have to have some where to get these files.

LexManos avatar Mar 30 '14 03:03 LexManos

My only reason for the request is that MCPC+ downstream doesn't run properly with Java 8 on the 4.1 version of the library, but does with the 5.0.1 (Specifically the bukkit plugins). They wont fix it until it gets changed in Forge, so here I am!

ajfite avatar Apr 03 '14 03:04 ajfite

Does the ASM lib API change between 4.1 and 5? if it doesnt, MCPC can easily just replace the dependency in their system.

AbrarSyed avatar Apr 03 '14 03:04 AbrarSyed

I'll eventually get some setup going, trying to convince Mojang to throw it up on there CDN. But pushing things out like that JUST editing the text file, it's the servers that host it as well.

LexManos avatar Apr 03 '14 05:04 LexManos

@AbrarSyed They closed my issue with them and told me that FML had to update the library before they would.

@LexManos I was under the impression that the loader downloaded its libraries from the Maven Repo servers, no idea it was the Mojang CDN doing it, good to know.

I don't really consider this an essential issue, it would just be nice to play around with the new Java 8 features in my self-developed plugins.

Edit: I'm a derp and deleted my comment, I apologize for the double emails.

ajfite avatar Apr 03 '14 06:04 ajfite

It uses our servers, or the Mojang servers depending on what we tell it. Not maven central.

LexManos avatar Apr 03 '14 06:04 LexManos

That makes sense, wouldn't want to put unnecessary load on Maven Central

On Wed, Apr 2, 2014 at 11:59 PM, LexManos [email protected] wrote:

It uses our servers, or the Mojang servers depending on what we tell it. Not maven central.

— Reply to this email directly or view it on GitHubhttps://github.com/MinecraftForge/FML/issues/394#issuecomment-39418584 .

ajfite avatar Apr 03 '14 16:04 ajfite

When is the update for 1.6, I expected !

quantumsheep avatar Apr 12 '14 09:04 quantumsheep

just going to point out that 5.0.1 is on mojangs cdn https://github.com/Mojang/LegacyLauncher/blob/master/build.gradle#L18

clienthax avatar Jun 23 '14 17:06 clienthax

to see this issue in forge
install java 8 install forge put https://dl.dropboxusercontent.com/u/98665796/modid-1.0.jar in the mods folder. the source is in the jar What you should see is 4 mods loaded but only 3 if you look in the console ClassReader is throwing an IllegalArgumentException

heni123321 avatar Jun 27 '14 13:06 heni123321

Yes, you should NOT be building your mods for java8, all mods should target java6. Else you alienate ~95% of the minecraft users. And no ASM 5 is NOT on the Mojang CDN, if you notice, I was the one that made that commit you are linking. I don't have access to upload to mojang's CDN. On top of this, ASM 5 is NOT compatible with ASM4, which means that if we updated it'd break all coremods. We may do this, but in 1.8 as 1.7 should keep a lot of things similiar and working.

LexManos avatar Jun 28 '14 01:06 LexManos

Should this be closed, with FML updating to ASM 5?

yuuka-miya avatar Aug 17 '14 01:08 yuuka-miya

The 5.x uptake is not complete yet I'll close it when it is done.

LexManos avatar Aug 17 '14 07:08 LexManos