Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

X2J making more problems on J17 #1382

Closed
Tracked by #1982
cdietrich opened this issue Sep 14, 2022 · 3 comments
Closed
Tracked by #1982

X2J making more problems on J17 #1382

cdietrich opened this issue Sep 14, 2022 · 3 comments
Milestone

Comments

@cdietrich
Copy link
Member

protected def provideCustomEnvironment(ASTParser parser) {
val String[] cpEntries = classpathScanner.getSystemClasspath()
parser.setEnvironment(cpEntries, null, null, true)
}

in ASTParserFactory makes problems on modular paths with latest platform

Failed to init Classpath for jar file /java.base
java.nio.file.NoSuchFileException: /java.base
    at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
    at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
    at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
    at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
    at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:148)
    at java.base/java.nio.file.Files.readAttributes(Files.java:1851)
    at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1264)
    at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:709)
    at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:243)
    at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:172)
    at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:186)
    at org.eclipse.jdt.internal.compiler.batch.ClasspathJar.initialize(ClasspathJar.java:204)
    at org.eclipse.jdt.internal.compiler.batch.FileSystem.<init>(FileSystem.java:235)
    at org.eclipse.jdt.internal.compiler.batch.FileSystem.<init>(FileSystem.java:285)
    at org.eclipse.jdt.core.dom.NameEnvironmentWithProgress.<init>(NameEnvironmentWithProgress.java:36)
    at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:771)
    at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1245)
    at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
    at org.eclipse.xtend.core.javaconverter.ASTParserFactory$ASTParserWrapper.createAST(ASTParserFactory.java:34)
@cdietrich
Copy link
Member Author

cdietrich commented Sep 14, 2022

@szarnekow any idea?
can/should we teach classpathscanner to provide a proper path?

cdietrich added a commit to eclipse/xtext-extras that referenced this issue Sep 14, 2022
@cdietrich cdietrich added this to the Release_2.29 milestone Sep 14, 2022
cdietrich added a commit to eclipse/xtext-extras that referenced this issue Sep 15, 2022
cdietrich added a commit to eclipse/xtext-extras that referenced this issue Sep 21, 2022
cdietrich added a commit to eclipse/xtext-extras that referenced this issue Sep 28, 2022
cdietrich added a commit to eclipse/xtext-extras that referenced this issue Oct 1, 2022
cdietrich added a commit to eclipse/xtext-extras that referenced this issue Oct 3, 2022
cdietrich added a commit to eclipse/xtext-extras that referenced this issue Oct 4, 2022
cdietrich added a commit to eclipse/xtext-extras that referenced this issue Oct 7, 2022
cdietrich added a commit to eclipse/xtext-extras that referenced this issue Oct 10, 2022
@cdietrich cdietrich modified the milestones: Release_2.29, Release_2.30 Nov 11, 2022
@cdietrich
Copy link
Member Author

move to 2.30, likely wont fix

@cdietrich cdietrich modified the milestones: Release_2.30, Release_2.29 Nov 12, 2022
@cdietrich
Copy link
Member Author

wont fix

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant