You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Dat Ho (JIRA)" <ji...@apache.org> on 2018/09/20 08:01:00 UTC

[jira] [Closed] (NETBEANS-1236) Compile on save deletes generated class files

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

Dat Ho closed NETBEANS-1236.
----------------------------
    Resolution: Won't Fix

Problem occured because of Lombok. The newest version of Lombok already fixed that.

> Compile on save deletes generated class files
> ---------------------------------------------
>
>                 Key: NETBEANS-1236
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1236
>             Project: NetBeans
>          Issue Type: Bug
>          Components: java - Compiler
>    Affects Versions: 8.2, 9.0
>         Environment: Netbeans 8.2, JDK 1.8.181 64bit, Windows 10.1607, Payara 4.1
>            Reporter: Dat Ho
>            Priority: Major
>             Fix For: Next
>
>
> Project configuration:
> We have a JavaEE-project, which contains 2 other projects, which are EJB and WAR. The EJB project builds a JAR file, the WAR project needs this EJB project and builds a WAR file. At the end the JavaEE-project will build an EAR file, which will be used to deploy to Payara server.
> All projects: compile on save activated, deploy on save deactivated
> Problem:
> The main issue is that after deploying if I changed a java file in Netbeans and saved, the class file, which is generated before, will be deleted.
> This issue was found while I am trying to test JRebel.
> After checking with JRebel developer, we found out that the generated class file in the build folder will always be deleted if any change was made in the corresponding java file.
> And here is the log from Netbeans, after I made a change in ServerStatusTask.java:
> {code:java}
> WARNING [org.netbeans.modules.glassfish.tooling]: Error processing component "project  <ear, web, ejb, webservices>  "
> WARNING [null]: Last record repeated again.
> WARNING [glassfish-eecommon]: Deployment plan not supported in GlassfishConfiguration.save()
> WARNING [null]: Last record repeated again.
> INFO [glassfish]: GlassFish configuration file D:\payara41\glassfish\domains\domain1\config\domain.xml was modified, updating server configuration.
> WARNING [glassfish-eecommon]: Deployment plan not supported in GlassfishConfiguration.save()
> INFO [org.netbeans.spi.project.support.ant.GlobFileBuiltQuery]: modified: GFBQ.StatusImpl[D:\project\project\project-war\src\java\package\path\ServerStatusTask.java@d3c23f7a:6c19826c -> D:\project\project\project-war\build\web\WEB-INF\classes\package\path\ServerStatusTask.class]
> INFO [org.netbeans.spi.project.support.ant.GlobFileBuiltQuery]: isBuilt: false from GFBQ.StatusImpl[D:\project\project\project-war\src\java\package\path\ServerStatusTask.java@d3c23f7a:6c19826c -> D:\project\project\project-war\build\web\WEB-INF\classes\package\path\ServerStatusTask.class]
> INFO [org.netbeans.spi.project.support.ant.GlobFileBuiltQuery]: out of date (target: 1.536.661.430.396 vs. source: 1.536.661.538.817): GFBQ.StatusImpl[D:\project\project\project-war\src\java\package\path\ServerStatusTask.java@d3c23f7a:6c19826c -> D:\project\project\project-war\build\web\WEB-INF\classes\package\path\ServerStatusTask.class]
> INFO [org.netbeans.spi.project.support.ant.GlobFileBuiltQuery]: isBuilt: false from GFBQ.StatusImpl[D:\project\project\project-war\src\java\package\path\ServerStatusTask.java@d3c23f7a:6c19826c -> D:\project\project\project-war\build\web\WEB-INF\classes\package\path\ServerStatusTask.class]
> INFO [org.netbeans.spi.project.support.ant.GlobFileBuiltQuery]: out of date (target: 1.536.661.430.396 vs. source: 1.536.661.538.817): GFBQ.StatusImpl[D:\project\project\project-war\src\java\package\path\ServerStatusTask.java@d3c23f7a:6c19826c -> D:\project\project\project-war\build\web\WEB-INF\classes\package\path\ServerStatusTask.class]
> INFO [org.netbeans.spi.project.support.ant.GlobFileBuiltQuery]: isBuilt: false from GFBQ.StatusImpl[D:\project\project\project-war\src\java\package\path\ServerStatusTask.java@d3c23f7a:6c19826c -> D:\project\project\project-war\build\web\WEB-INF\classes\package\path\ServerStatusTask.class]
> WARNING [org.netbeans.modules.glassfish.tooling]: Error processing component "project  <ear, web, ejb, webservices>  "
> WARNING [glassfish-eecommon]: Deployment plan not supported in GlassfishConfiguration.save()
> WARNING [null]: Last record repeated 2 more times.
> INFO [org.netbeans.modules.j2ee.deployment.impl.TargetServer]: Cannot incrementally deploy to more than one target
> INFO [org.netbeans.spi.project.support.ant.GlobFileBuiltQuery]: Found target for D:\project\project\project-war\src\java\package\path\ServerStatusTask.java: D:\project\project\project-war\build\web\WEB-INF\classes\package\path\ServerStatusTask.class
> INFO [org.netbeans.spi.project.support.ant.GlobFileBuiltQuery]: out of date (target: 0 vs. source: 1.536.661.538.817): GFBQ.StatusImpl[D:\project\project\project-war\src\java\package\path\ServerStatusTask.java@d3c23f7a:6c19826c -> D:\project\project\project-war\build\web\WEB-INF\classes\package\path\ServerStatusTask.class]
> INFO [org.netbeans.spi.project.support.ant.GlobFileBuiltQuery]: isBuilt: false from GFBQ.StatusImpl[D:\project\project\project-war\src\java\package\path\ServerStatusTask.java@d3c23f7a:6c19826c -> D:\project\project\project-war\build\web\WEB-INF\classes\package\path\ServerStatusTask.class]
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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