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

negora updated NETBEANS-6027:
-----------------------------
    Summary: IDE freezes when using Maven + "Xlint:strictfp"  (was: IDE freezes 
when using Maven + "Xlint:all")

> IDE freezes when using Maven + "Xlint:strictfp"
> -----------------------------------------------
>
>                 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 edit any Java source file, 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}
> By removing one by one, I've found which one causes the freeze: {{strictfp}} .



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

---------------------------------------------------------------------
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

Reply via email to