Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] Java9 Beta Branch

> The latest patch should be able to handle b 149 and later (untested)

"untested" – that's why it is not yet uploaded to the Marketplace (P-repo). Please test it and work with Sravan to get it added to the Marketplace. Also, please update the requirements in the Marketplace description (Manoj, he has edit rights there).

Thanks,
Dani



From:        "Sasikanth B Ammanamanchi" <sasikanth.bharadwaj@xxxxxxxxxx>
To:        "Eclipse JDT Core developers list." <jdt-core-dev@xxxxxxxxxxx>
Date:        17.01.2017 06:37
Subject:        Re: [jdt-core-dev] Java9 Beta Branch
Sent by:        jdt-core-dev-bounces@xxxxxxxxxxx




Yes, the class file format changed for module-info and we noted this with b149 and adjusted accordingly.
The latest patch should be able to handle b 149 and later (untested)
Did you install the latest patch from the market place? And all earlier versions of jdk9 need to be removed from the
installed JREs as well.

Regards
Sasikanth

-----jdt-core-dev-bounces@xxxxxxxxxxxwrote: -----
To: jdt-core-dev@xxxxxxxxxxx
From: Stephan Herrmann
Sent by:
jdt-core-dev-bounces@xxxxxxxxxxx
Date: 01/17/2017 06:04AM
Subject: Re: [jdt-core-dev] Java9 Beta Branch

Mh, the original exception appears to be AIOOBE trying to retrieve the class name
from module-info.class. Has the class file format for module-info change?


Closest I could find at a quick scan:
 
http://mail.openjdk.java.net/pipermail/jigsaw-dev/2016-December/010383.html

Here Remi is only reacting to a class file change, but indeed he mentions
  "setting the class name to null instead of 'module-info'"
Mh, he says NPE, I see AIOOBE <shrug>

What's the origin of that change? I don't know.
Stephan


On 01/16/2017 11:33 PM, Tom Schindl wrote:
> Hi,
>
> What is the recommanded JDK9 build to give the Java9 support a try? I
> gave b152 a shot but too me it looks like JDT is unable to process the
> classfile because I see many many Exceptions like this
>
>> org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
>> at org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader.<init>(ClassFileReader.java:449)
>> at org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader.<init>(ClassFileReader.java:178)
>> at org.eclipse.jdt.internal.core.builder.ClasspathJrt.acceptModule(ClasspathJrt.java:173)
>> at org.eclipse.jdt.internal.core.builder.ClasspathJrt$2.visitModule(ClasspathJrt.java:152)
>> at org.eclipse.jdt.internal.core.builder.ClasspathJrt$2.visitModule(ClasspathJrt.java:1)
>> at org.eclipse.jdt.internal.compiler.util.JrtFileSystem$1.preVisitDirectory(JRTUtil.java:343)
>> at org.eclipse.jdt.internal.compiler.util.JrtFileSystem$1.preVisitDirectory(JRTUtil.java:1)
>> at java.base/java.nio.file.Files.walkFileTree(Files.java:2702)
>> at java.base/java.nio.file.Files.walkFileTree(Files.java:2767)
>> at org.eclipse.jdt.internal.compiler.util.JrtFileSystem.walkModuleImage(JRTUtil.java:331)
>> at org.eclipse.jdt.internal.compiler.util.JRTUtil.walkModuleImage(JRTUtil.java:147)
>> at org.eclipse.jdt.internal.core.builder.ClasspathJrt.loadModules(ClasspathJrt.java:132)
>> at org.eclipse.jdt.internal.core.builder.ClasspathJrt.<init>(ClasspathJrt.java:74)
>> at org.eclipse.jdt.internal.core.builder.ClasspathLocation.forLibrary(ClasspathLocation.java:60)
>> at org.eclipse.jdt.internal.core.builder.ClasspathLocation.forLibrary(ClasspathLocation.java:66)
>> at org.eclipse.jdt.internal.core.builder.NameEnvironment.computeClasspathLocations(NameEnvironment.java:233)
>> at org.eclipse.jdt.internal.core.builder.NameEnvironment.<init>(NameEnvironment.java:56)
>> at org.eclipse.jdt.internal.core.builder.JavaBuilder.initializeBuilder(JavaBuilder.java:604)
>> at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:169)
>> at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>> at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
>> at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
>> at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>> at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
>> at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)
>> at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)
>> at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:142)
>> at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:232)
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
>
> and a simple HelloWorld class does not compile :-(
>
> Tom
>

_______________________________________________
jdt-core-dev mailing list

jdt-core-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

https://dev.eclipse.org/mailman/listinfo/jdt-core-dev

_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jdt-core-dev



Back to the top