Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manifold-ext 2024.1.37 cannot complile with jdk1.8 #645

Open
ayida opened this issue Nov 25, 2024 · 5 comments
Open

manifold-ext 2024.1.37 cannot complile with jdk1.8 #645

ayida opened this issue Nov 25, 2024 · 5 comments

Comments

@ayida
Copy link

ayida commented Nov 25, 2024

jdk version : 1.8.0_431
manifold version :2024.1.37
springboot version : 2.7.14

old version is 2024.1.36, work well ,when i upgrade manifold to 2024.1.37 , maven compile with these error:

编译器 (1.8.0_431) 中出现异常错误。如果在 Bug Database (http://bugs.java.com) 中没有找到该错误, 请通过 Java Bug 报告页 (http://bugreport.java.com) 建立该 Java 编译器 Bug。请在报告中附上您的程序和以下诊断信息。谢谢。 java.lang.IllegalStateException at com.sun.tools.javac.util.Context.checkState(Context.java:225) at com.sun.tools.javac.util.Context.get(Context.java:146) at com.sun.tools.javac.comp.Annotate.instance(Annotate.java:56) at manifold.internal.javac.ManifoldJavaFileManager.hackToFixJava8Issue(ManifoldJavaFileManager.java:292) at manifold.internal.javac.ManifoldJavaFileManager.list(ManifoldJavaFileManager.java:275) at javax.tools.ForwardingJavaFileManager.list(ForwardingJavaFileManager.java:76) at manifold.internal.javac.JavacFileManagerBridge.list(JavacFileManagerBridge.java:72) at manifold.internal.javac.ManifoldJavaFileManager.list(ManifoldJavaFileManager.java:221) at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2809) at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:2446) at com.sun.tools.javac.jvm.ClassReader.access$000(ClassReader.java:76) at com.sun.tools.javac.jvm.ClassReader$1.complete(ClassReader.java:240) at com.sun.tools.javac.code.Symbol.complete(Symbol.java:574) at com.sun.tools.javac.code.Symbol$PackageSymbol.flags(Symbol.java:863) at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3347) at manifold.internal.javac.ManAttr_8.visitSelect(ManAttr_8.java:152) at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:576) at com.sun.tools.javac.comp.Attr.attribImportQualifier(Attr.java:410) at com.sun.tools.javac.comp.MemberEnter.visitImport(MemberEnter.java:544) at com.sun.tools.javac.tree.JCTree$JCImport.accept(JCTree.java:571) at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:437) at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:449) at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:528) at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:518) at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:437) at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:1038) at com.sun.tools.javac.code.Symbol.complete(Symbol.java:574) at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1037) at com.sun.tools.javac.comp.Enter.complete(Enter.java:493) at com.sun.tools.javac.comp.Enter.main(Enter.java:471) at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:982) at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.enterTrees(JavacProcessingEnvironment.java:1015) at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.<init>(JavacProcessingEnvironment.java:902) at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.next(JavacProcessingEnvironment.java:921) at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1187) at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170) at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856) at com.sun.tools.javac.main.Main.compile(Main.java:523) at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129) at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138) at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:126) at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:174) at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:1134) at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:187) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:126) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:328) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:316) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:174) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000(MojoExecutor.java:75) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run(MojoExecutor.java:162) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute(DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:159) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:903) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:280) at org.apache.maven.cli.MavenCli.main(MavenCli.java:203) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:255) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:201) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:361) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:314) at org.codehaus.classworlds.Launcher.main(Launcher.java:41)

does jdk8 no longer supported in versions after 2024.1.36

@rsmckinney
Copy link
Member

Manifold always builds with JDK 8. Are you running mvn clean compile... from the command line?

@ayida
Copy link
Author

ayida commented Nov 28, 2024

Manifold always builds with JDK 8. Are you running mvn clean compile... from the command line?

yes , everything is normal after the version downgrade, and idea Manifold plugin always remind me to upgrade

@ayida
Copy link
Author

ayida commented Nov 28, 2024

pom.xml :

<properties>
    <manifold.version>2024.1.37</manifold.version>
</properties>


<dependencies>
    <dependency>
        <groupId>systems.manifold</groupId>
        <artifactId>manifold-ext</artifactId>
        <version>${manifold.version}</version>
    </dependency>
</dependencies>


<build>
    <plugins>
        <!-- Manifold Compiler Plugin -->
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.8.1</version>
            <configuration>
                <source>1.8</source>
                <target>1.8</target>
                <annotationProcessorPaths>
                    <path>
                        <groupId>systems.manifold</groupId>
                        <artifactId>manifold-ext</artifactId>
                        <version>${manifold.version}</version>
                    </path>
                    <path>
                        <groupId>org.projectlombok</groupId>
                        <artifactId>lombok</artifactId>
                        <version>${lombok.version}</version>
                    </path>
                </annotationProcessorPaths>
                <compilerArgs>
                    <arg>-Xplugin:Manifold</arg>
                </compilerArgs>
            </configuration>
        </plugin>
    </plugins>
</build>

@rsmckinney
Copy link
Member

I think I understand what could be happening. A fix candidate is on the way, probably available in next week's release.

rsmckinney added a commit that referenced this issue Dec 14, 2024
- revise fix for #627, use reflection to enable compiling manifold itself with jdk 11+ only for building Xxx_11.java11+ source files
@rsmckinney
Copy link
Member

Fix available with release 2024.1.43

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

No branches or pull requests

2 participants