You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tim Meighen (JIRA)" <ji...@codehaus.org> on 2007/09/27 20:28:08 UTC
[jira] Created: (MCOMPILER-59) Compilation fails on warning
messages from javac (Java 6)
Compilation fails on warning messages from javac (Java 6)
---------------------------------------------------------
Key: MCOMPILER-59
URL: http://jira.codehaus.org/browse/MCOMPILER-59
Project: Maven 2.x Compiler Plugin
Issue Type: Bug
Affects Versions: 2.0.2
Environment: Mac OSX 10.4.10
Maven version: 2.0.7
Java version: 1.6.0-dp
OS name: "mac os x" version: "10.4.10" arch: "i386"
java version "1.6.0-dp"
Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
Reporter: Tim Meighen
Attachments: compiler-warning.tar.gz
The attached project fails due to an inability to parse the following warning messages from the Java compiler (Java 6)
[INFO] Compilation failure
could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
/Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
entity.deprecateMe();
^
could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
/Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
entity.deprecateMe();
^
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Issue Comment Edited: (MCOMPILER-59) Compilation fails on
warning messages from javac (Java 6)
Posted by "Christian Bach (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_118230 ]
thabach edited comment on MCOMPILER-59 at 12/30/07 1:34 PM:
-------------------------------------------------------------------
The project in the second attachment fails in similar fashion when built using Java 6 on Linux.
The problem is rooted in the compiler-plugin's dependency on plexus-compiler-javac which, in its current version 1.5.3, is not capable of parsing Java 6 warning and/or error messages properly.
was (Author: thabach):
The project in the second attachment fails in similar fashion when built using Java 6 on Linux.
The problem is rooted in the plexus-compiler plugin which, in its current version 1.5.3, is not capable of parsing Java 6 warning and/or error messages properly.
> Compilation fails on warning messages from javac (Java 6)
> ---------------------------------------------------------
>
> Key: MCOMPILER-59
> URL: http://jira.codehaus.org/browse/MCOMPILER-59
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Environment: Mac OSX 10.4.10
> Maven version: 2.0.7
> Java version: 1.6.0-dp
> OS name: "mac os x" version: "10.4.10" arch: "i386"
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
> Reporter: Tim Meighen
> Attachments: compiler-warning.tar.gz, warning.tar.gz
>
>
> The attached project fails due to an inability to parse the following warning messages from the Java compiler (Java 6)
> [INFO] Compilation failure
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MCOMPILER-59) Compilation fails on warning
messages from javac (Java 6)
Posted by "Christian Bach (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_118230 ]
Christian Bach commented on MCOMPILER-59:
-----------------------------------------
The project in the second attachment fails in similar fashion when built using Java 6 on Linux.
The problem is rooted in the plexus-compiler plugin which, in its current version 1.5.3, is not capable of parsing Java 6 warning and/or error messages properly.
> Compilation fails on warning messages from javac (Java 6)
> ---------------------------------------------------------
>
> Key: MCOMPILER-59
> URL: http://jira.codehaus.org/browse/MCOMPILER-59
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Environment: Mac OSX 10.4.10
> Maven version: 2.0.7
> Java version: 1.6.0-dp
> OS name: "mac os x" version: "10.4.10" arch: "i386"
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
> Reporter: Tim Meighen
> Attachments: compiler-warning.tar.gz, warning.tar.gz
>
>
> The attached project fails due to an inability to parse the following warning messages from the Java compiler (Java 6)
> [INFO] Compilation failure
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (MCOMPILER-59) Compilation fails on warning messages
from javac (Java 6)
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-59?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey closed MCOMPILER-59.
-------------------------------
Assignee: John Casey
Resolution: Fixed
Fix Version/s: 2.1
Applied patch for PLXCOMP-87 from Christian Bach, and all is well. Tested against the attached warning.tar.gz...
> Compilation fails on warning messages from javac (Java 6)
> ---------------------------------------------------------
>
> Key: MCOMPILER-59
> URL: http://jira.codehaus.org/browse/MCOMPILER-59
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Environment: Mac OSX 10.4.10
> Maven version: 2.0.7
> Java version: 1.6.0-dp
> OS name: "mac os x" version: "10.4.10" arch: "i386"
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
> Reporter: Tim Meighen
> Assignee: John Casey
> Fix For: 2.1
>
> Attachments: compiler-warning.tar.gz, warning.tar.gz
>
>
> The attached project fails due to an inability to parse the following warning messages from the Java compiler (Java 6)
> [INFO] Compilation failure
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MCOMPILER-59) Compilation fails on warning
messages from javac (Java 6)
Posted by "Mike Calmus (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170845#action_170845 ]
Mike Calmus commented on MCOMPILER-59:
--------------------------------------
Should this be working now in Maven 2.1.0? I'm still getting fatal errors when I have verbose compilation turned on.
> Compilation fails on warning messages from javac (Java 6)
> ---------------------------------------------------------
>
> Key: MCOMPILER-59
> URL: http://jira.codehaus.org/browse/MCOMPILER-59
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Environment: Mac OSX 10.4.10
> Maven version: 2.0.7
> Java version: 1.6.0-dp
> OS name: "mac os x" version: "10.4.10" arch: "i386"
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
> Reporter: Tim Meighen
> Assignee: John Casey
> Fix For: 2.1
>
> Attachments: compiler-warning.tar.gz, warning.tar.gz
>
>
> The attached project fails due to an inability to parse the following warning messages from the Java compiler (Java 6)
> [INFO] Compilation failure
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MCOMPILER-59) Compilation fails on warning
messages from javac (Java 6)
Posted by "Ricardo Borillo (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=175603#action_175603 ]
Ricardo Borillo commented on MCOMPILER-59:
------------------------------------------
Hi all,
Any news on this?? I'm still getting the same errors on 2.1.0 too ... Any workaround??
Thanks
> Compilation fails on warning messages from javac (Java 6)
> ---------------------------------------------------------
>
> Key: MCOMPILER-59
> URL: http://jira.codehaus.org/browse/MCOMPILER-59
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Environment: Mac OSX 10.4.10
> Maven version: 2.0.7
> Java version: 1.6.0-dp
> OS name: "mac os x" version: "10.4.10" arch: "i386"
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
> Reporter: Tim Meighen
> Assignee: John Casey
> Fix For: 2.1
>
> Attachments: compiler-warning.tar.gz, warning.tar.gz
>
>
> The attached project fails due to an inability to parse the following warning messages from the Java compiler (Java 6)
> [INFO] Compilation failure
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MCOMPILER-59) Compilation fails on warning
messages from javac (Java 6)
Posted by "Ben Tatham (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_120941 ]
Ben Tatham commented on MCOMPILER-59:
-------------------------------------
I have the same problem on this warning:
C:\work\.....java:176: warning: sun.misc.Cleaner is Sun proprietary API and may be removed in a future release
sun.misc.Cleaner cleaner = (sun.misc.Cleaner) getCleanerMethod
^
If I turn off verbose on the compiler-plugin, it passes the build. With verbose=true, the build gets a Compilation Failure.
> Compilation fails on warning messages from javac (Java 6)
> ---------------------------------------------------------
>
> Key: MCOMPILER-59
> URL: http://jira.codehaus.org/browse/MCOMPILER-59
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Environment: Mac OSX 10.4.10
> Maven version: 2.0.7
> Java version: 1.6.0-dp
> OS name: "mac os x" version: "10.4.10" arch: "i386"
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
> Reporter: Tim Meighen
> Attachments: compiler-warning.tar.gz, warning.tar.gz
>
>
> The attached project fails due to an inability to parse the following warning messages from the Java compiler (Java 6)
> [INFO] Compilation failure
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Reopened: (MCOMPILER-59) Compilation fails on warning
messages from javac (Java 6)
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-59?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey reopened MCOMPILER-59:
---------------------------------
Need to look into NPE caused by move to 1.6-SNAPSHOT for plexus compiler stuff, and also whether the fix for this NPE is actually going to fix the problem...some indications I'm getting right now say no.
> Compilation fails on warning messages from javac (Java 6)
> ---------------------------------------------------------
>
> Key: MCOMPILER-59
> URL: http://jira.codehaus.org/browse/MCOMPILER-59
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Environment: Mac OSX 10.4.10
> Maven version: 2.0.7
> Java version: 1.6.0-dp
> OS name: "mac os x" version: "10.4.10" arch: "i386"
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
> Reporter: Tim Meighen
> Assignee: John Casey
> Fix For: 2.1
>
> Attachments: compiler-warning.tar.gz, warning.tar.gz
>
>
> The attached project fails due to an inability to parse the following warning messages from the Java compiler (Java 6)
> [INFO] Compilation failure
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MCOMPILER-59) Compilation fails on warning
messages from javac (Java 6)
Posted by "Jean-Marc Borer (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=178170#action_178170 ]
Jean-Marc Borer commented on MCOMPILER-59:
------------------------------------------
I confirm that the problem still exists with 2.1.0. Turning off the "verbose" mode for the external compiler solves the problem. That's the workaround (for me at least).
> Compilation fails on warning messages from javac (Java 6)
> ---------------------------------------------------------
>
> Key: MCOMPILER-59
> URL: http://jira.codehaus.org/browse/MCOMPILER-59
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Environment: Mac OSX 10.4.10
> Maven version: 2.0.7
> Java version: 1.6.0-dp
> OS name: "mac os x" version: "10.4.10" arch: "i386"
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
> Reporter: Tim Meighen
> Assignee: John Casey
> Fix For: 2.1
>
> Attachments: compiler-warning.tar.gz, warning.tar.gz
>
>
> The attached project fails due to an inability to parse the following warning messages from the Java compiler (Java 6)
> [INFO] Compilation failure
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MCOMPILER-59) Compilation fails on warning
messages from javac (Java 6)
Posted by "Jonathan Johnson (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=178267#action_178267 ]
Jonathan Johnson commented on MCOMPILER-59:
-------------------------------------------
My build is now breaking too after adding the SwingSet2.jar to one of my maven modules. This happens under Windows and Linux.
Apache Maven 2.1.0 (r755702; 2009-03-18 15:10:27-0400)
Java version: 1.6.0_12
Java home: /usr/java/jdk1.6.0_12/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.18-92.1.18.el5" arch: "i386" Family: "unix"
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
could not parse error message: DemoModule.java(:DemoModule.java):214: warning: [deprecation] show() in java.awt.Window has been deprecated
frame.show();
^
could not parse error message: SwingSet2.java(:SwingSet2.java):748: warning: [deprecation] show() in java.awt.Window has been deprecated
f.show();
^
could not parse error message: SwingSet2.java(:SwingSet2.java):1316: warning: [deprecation] show() in java.awt.Dialog has been deprecated
aboutBox.show();
> Compilation fails on warning messages from javac (Java 6)
> ---------------------------------------------------------
>
> Key: MCOMPILER-59
> URL: http://jira.codehaus.org/browse/MCOMPILER-59
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Environment: Mac OSX 10.4.10
> Maven version: 2.0.7
> Java version: 1.6.0-dp
> OS name: "mac os x" version: "10.4.10" arch: "i386"
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
> Reporter: Tim Meighen
> Assignee: John Casey
> Fix For: 2.1
>
> Attachments: compiler-warning.tar.gz, warning.tar.gz
>
>
> The attached project fails due to an inability to parse the following warning messages from the Java compiler (Java 6)
> [INFO] Compilation failure
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Issue Comment Edited: (MCOMPILER-59) Compilation fails on
warning messages from javac (Java 6)
Posted by "Christian Bach (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_118230 ]
thabach edited comment on MCOMPILER-59 at 1/1/08 4:23 AM:
-----------------------------------------------------------------
The project in the second attachment fails in similar fashion when built using Java 6 on Linux.
The problem is rooted in the compiler-plugin's dependency on plexus-compiler-javac which, in its current version 1.5.3, is not capable of parsing Java 6 warning and/or error messages properly.
see also here: http://jira.codehaus.org/browse/PLXCOMP-87
was (Author: thabach):
The project in the second attachment fails in similar fashion when built using Java 6 on Linux.
The problem is rooted in the compiler-plugin's dependency on plexus-compiler-javac which, in its current version 1.5.3, is not capable of parsing Java 6 warning and/or error messages properly.
> Compilation fails on warning messages from javac (Java 6)
> ---------------------------------------------------------
>
> Key: MCOMPILER-59
> URL: http://jira.codehaus.org/browse/MCOMPILER-59
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Environment: Mac OSX 10.4.10
> Maven version: 2.0.7
> Java version: 1.6.0-dp
> OS name: "mac os x" version: "10.4.10" arch: "i386"
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
> Reporter: Tim Meighen
> Attachments: compiler-warning.tar.gz, warning.tar.gz
>
>
> The attached project fails due to an inability to parse the following warning messages from the Java compiler (Java 6)
> [INFO] Compilation failure
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (MCOMPILER-59) Compilation fails on warning messages
from javac (Java 6)
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-59?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey closed MCOMPILER-59.
-------------------------------
Resolution: Fixed
added some more defensive code to the call to log information about the sources being compiled...for instance, if JavacCompiler is constructed without an accompanying call to enableLogging(..) because of some incompatibility with the AbstractLogEnabled/LogEnabled class/interface (like if it were loaded from the wrong classloader for some reason), then it should make sure the logger is not null before using it.
Also, I adjusted the version for plexus-utils back to 1.0.4, and marked the plexus-container-default version to scope == test, since maven will provide its own.
> Compilation fails on warning messages from javac (Java 6)
> ---------------------------------------------------------
>
> Key: MCOMPILER-59
> URL: http://jira.codehaus.org/browse/MCOMPILER-59
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Environment: Mac OSX 10.4.10
> Maven version: 2.0.7
> Java version: 1.6.0-dp
> OS name: "mac os x" version: "10.4.10" arch: "i386"
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
> Reporter: Tim Meighen
> Assignee: John Casey
> Fix For: 2.1
>
> Attachments: compiler-warning.tar.gz, warning.tar.gz
>
>
> The attached project fails due to an inability to parse the following warning messages from the Java compiler (Java 6)
> [INFO] Compilation failure
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MCOMPILER-59) Compilation fails on warning
messages from javac (Java 6)
Posted by "Christian Bach (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MCOMPILER-59?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Bach updated MCOMPILER-59:
------------------------------------
Attachment: warning.tar.gz
> Compilation fails on warning messages from javac (Java 6)
> ---------------------------------------------------------
>
> Key: MCOMPILER-59
> URL: http://jira.codehaus.org/browse/MCOMPILER-59
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Environment: Mac OSX 10.4.10
> Maven version: 2.0.7
> Java version: 1.6.0-dp
> OS name: "mac os x" version: "10.4.10" arch: "i386"
> java version "1.6.0-dp"
> Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
> Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
> Reporter: Tim Meighen
> Attachments: compiler-warning.tar.gz, warning.tar.gz
>
>
> The attached project fails due to an inability to parse the following warning messages from the Java compiler (Java 6)
> [INFO] Compilation failure
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
> could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
> /Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
> entity.deprecateMe();
> ^
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira