You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "negora (Jira)" <ji...@apache.org> on 2021/09/20 12:06:00 UTC

[jira] [Updated] (NETBEANS-6027) Frozen IDE when using Maven + "Xlint:all"

     [ https://issues.apache.org/jira/browse/NETBEANS-6027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

negora updated NETBEANS-6027:
-----------------------------
    Summary: Frozen IDE when using Maven + "Xlint:all"  (was: Frozen IDE when using Maven + "Xlint:all" + text blocks)

> Frozen IDE when using Maven + "Xlint:all"
> -----------------------------------------
>
>                 Key: NETBEANS-6027
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-6027
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 12.4, 12.5
>         Environment: These are the versions of my software:
>  * OS: Debian GNU/Linux 10.10 (Buster).
>  * Java platform:
> {noformat}
>   openjdk version "17" 2021-09-14
>   OpenJDK Runtime Environment (build 17+35-2724)
>   OpenJDK 64-Bit Server VM (build 17+35-2724, mixed mode, sharing)
> {noformat}
> The JDK build has been downloaded directly from java.net.
> I've also tested the IDE with JDK 16, using a build downloaded from Adoptium. But the result has been the same.
>            Reporter: negora
>            Priority: Major
>         Attachments: 01-before-writing-text-block.png, 02-after-writing-text-block.png
>
>
> Hello:
> I'm developing a Java project using Maven. If I write this configuration in the {{pom.xml}} file:
> {code:java}
> <plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-compiler-plugin</artifactId>
>   <version>3.8.1</version>
>   <configuration>
>     <release>17</release>
>     <compilerArgs>
>       <arg>-Xlint:all</arg>
>     </compilerArgs>
>    <showWarnings>true</showWarnings>
>  </configuration>
> </plugin>{code}
> And then, I write this text block in a Java source file and save it:
> {code:java}
> String sample = """
>                 """;{code}
> The IDE freezes completely. I've to kill the process.
> However, if I replace the "-Xlint:all" argument with this equivalent value:
> {code:java}
> <plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-compiler-plugin</artifactId>
>   <version>3.8.1</version>
>   <configuration>
>     <release>17</release>
>     <compilerArgs>
>       <arg>-Xlint:cast,classfile,deprecation,
>         dep-ann,divzero,empty,fallthrough,finally,options,
>         overrides,path,processing,rawtypes,static,
>         try,unchecked,varargs</arg>
>     </compilerArgs>
>    <showWarnings>true</showWarnings>
>  </configuration>
> </plugin>{code}
> It works well. 
> It also works well if I remove the compiler arguments all together.
> There is a visual defect that indicates me whether the IDE is going to freeze or not before saving the file: The code that is after the text block partially loses its highlighting and becomes white. Please, check the attached screenshots.
> h4. UPDATE #1.
> I've continued making tests, and I've realized that the value {{all}} in {{-Xlint:all}} is equivalent to more values than I thought:
> {noformat}
> auxiliaryclass
> cast
> classfile
> deprecation
> dep-ann
> divzero
> empty
> exports
> fallthrough
> finally
> missing-explicit-ctor
> module
> opens
> options
> overloads
> overrides
> path
> processing
> rawtypes
> removal
> requires-automatic
> requires-transitive-automatic
> serial
> static
> strictfp
> synchronization
> text-blocks
> try
> unchecked
> varargs
> preview
> {noformat}
> Removing one by one, I think that I've find which is the guilty one: {{strictfp}} .



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists