[ https://issues.apache.org/jira/browse/NETBEANS-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16771218#comment-16771218 ]
Geertjan Wielenga edited comment on NETBEANS-2135 at 2/18/19 4:48 PM: ---------------------------------------------------------------------- Been looking into this, something about the POM, that's for sure. It should work, just not sure why. When I use the latest builds of Apache NetBeans 11 with JDK 12 rc, and create a new Maven project, with this POM and a module-info.java, everything is fine. Maybe try to set the below up yourself and confirm (in 10 is also fine with JDK 11 is also fine, then put 11 below where I have 12) and I'll continue to investigate. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.mycompany</groupId> <artifactId>Test123</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> </plugin> </plugins> </build> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>12</maven.compiler.source> <maven.compiler.target>12</maven.compiler.target> </properties> </project> was (Author: geertjanwielenga): Been looking into this, something about the POM, that's for sure. It should work, just not sure why. When I use the latest builds of Apache NetBeans 11 with JDK 12 rc, and create a new Maven project, with this POM and a module-info.java, everything is fine. Maybe try to set the below up yourself and confirm (in 10 is also fine with JDK 11 is also fine, then put 11 below where I have 12) and I'll continue to investigate. {{<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.mycompany</groupId> <artifactId>Test123</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> </plugin> </plugins> </build> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>12</maven.compiler.source> <maven.compiler.target>12</maven.compiler.target> </properties> </project>}} > False positive error messages > ----------------------------- > > Key: NETBEANS-2135 > URL: https://issues.apache.org/jira/browse/NETBEANS-2135 > Project: NetBeans > Issue Type: Bug > Affects Versions: 10.0 > Environment: Apache NetBeans IDE 10.0 (Build > incubator-netbeans-release-380-on-20181217) > OpenJDK Runtime Environment 11.0.2+7 > Reporter: Björn Raupach > Priority: Major > > I am experiencing false positive parser error messages in the Java editor > when working on a Java Maven project. > I can check out the project, compile it and run alle Unit tests, but the > editor lists many errors. > * modules are not supported in -source 8 (use -source 9 or higher to enable > modules) > * package X does not exist > * cannot access java.lang Fatal Error: Unable to find java.lang in classpath > or bootclasspath > * cannot find symbol > It is easy to reproduce. Just check out the GitHub project ThreeTen-Extra and > open the directory with NetBeans. > Here is the link to the original GitHub issue: > https://github.com/ThreeTen/threeten-extra/issues/124 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists