You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Gabriel Forro (JIRA)" <ji...@codehaus.org> on 2008/04/16 10:54:55 UTC

[jira] Created: (MCOMPILER-71) javac compilation error for package-info.java containing package annotation

javac compilation error for package-info.java containing package annotation
---------------------------------------------------------------------------

                 Key: MCOMPILER-71
                 URL: http://jira.codehaus.org/browse/MCOMPILER-71
             Project: Maven 2.x Compiler Plugin
          Issue Type: Bug
    Affects Versions: 2.0.2
         Environment: Windows XP SP2
JDK 1.5.0_15
            Reporter: Gabriel Forro
         Attachments: compile_error_2.0.2.log

The package-info.java files can not be compiled in Maven 2 if the 2.0.2 maven-compiler-plugin is used. package-info.java files can be compiled by earlier versions of the maven-compiler-plugin (I have tried 2.0 and 2.0.1). Newer snapshot versions does not work also and it fails in the same error (I have tried version 2.1-snapshot).

This problem can be caused by an unusual behavior of the javac from jdk 1.5. This behavior is as follows:
You can not use '/' file separator during compiling package-info.java (for instance "javac sk/forro/package-info.java"). You must use '\' separator (for instance "javac sk\forro\package-info.java"). If you use the '/' separator you get the the compilation error reported by this bug (package annotations should be in file package-info.java). This is javac 'feature' has been removed in jdk 6 and in jdk 6 you can use either '/' or '\' - it does not matter.

It looks like the maven-compiler-plugin or one of its components (I mean plexus-x artefacts used by maven-compiler-plugin) uses '/' instead of the '\' in the MS Windows environment.

I have attached a log file of an unsuccessful build (generated by mvn install -X)

A possible workaround to solve this problem temporarily:
The compilation successes if I use either an older version of maven-compiler-plugin or jdk 6 or do not use package-info.java files at all.

-- 
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-71) javac compilation error for package-info.java containing package annotation

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCOMPILER-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=209311#action_209311 ] 

John Casey edited comment on MCOMPILER-71 at 2/5/10 7:35 PM:
-------------------------------------------------------------

Okay, had to roll that change back. That wasn't the best way to go about things; it fails miserably.

FWIW, the failed commit is revId: 8627

http://fisheye.codehaus.org/browse/plexus/plexus-components/trunk/plexus-compiler/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java?r1=8626&r2=8627

      was (Author: jdcasey):
    Okay, had to roll that change back. That wasn't the best way to go about things; it fails miserably.

FWIW, the failed commit is revId: 8627
  
> javac compilation error for package-info.java containing package annotation
> ---------------------------------------------------------------------------
>
>                 Key: MCOMPILER-71
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-71
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP SP2
> JDK 1.5.0_15
>            Reporter: Gabriel Forro
>            Assignee: John Casey
>             Fix For: 2.2
>
>         Attachments: compile_error_2.0.2.log
>
>
> The package-info.java files can not be compiled in Maven 2 if the 2.0.2 maven-compiler-plugin is used. package-info.java files can be compiled by earlier versions of the maven-compiler-plugin (I have tried 2.0 and 2.0.1). Newer snapshot versions does not work also and it fails in the same error (I have tried version 2.1-snapshot).
> This problem can be caused by an unusual behavior of the javac from jdk 1.5. This behavior is as follows:
> You can not use '/' file separator during compiling package-info.java (for instance "javac sk/forro/package-info.java"). You must use '\' separator (for instance "javac sk\forro\package-info.java"). If you use the '/' separator you get the the compilation error reported by this bug (package annotations should be in file package-info.java). This is javac 'feature' has been removed in jdk 6 and in jdk 6 you can use either '/' or '\' - it does not matter.
> It looks like the maven-compiler-plugin or one of its components (I mean plexus-x artefacts used by maven-compiler-plugin) uses '/' instead of the '\' in the MS Windows environment.
> I have attached a log file of an unsuccessful build (generated by mvn install -X)
> A possible workaround to solve this problem temporarily:
> The compilation successes if I use either an older version of maven-compiler-plugin or jdk 6 or do not use package-info.java files at all.

-- 
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-71) javac compilation error for package-info.java containing package annotation

Posted by "Justin Edelson (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCOMPILER-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=182982#action_182982 ] 

Justin Edelson commented on MCOMPILER-71:
-----------------------------------------

package-info.java is *not* just for javadoc. 

> javac compilation error for package-info.java containing package annotation
> ---------------------------------------------------------------------------
>
>                 Key: MCOMPILER-71
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-71
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP SP2
> JDK 1.5.0_15
>            Reporter: Gabriel Forro
>         Attachments: compile_error_2.0.2.log
>
>
> The package-info.java files can not be compiled in Maven 2 if the 2.0.2 maven-compiler-plugin is used. package-info.java files can be compiled by earlier versions of the maven-compiler-plugin (I have tried 2.0 and 2.0.1). Newer snapshot versions does not work also and it fails in the same error (I have tried version 2.1-snapshot).
> This problem can be caused by an unusual behavior of the javac from jdk 1.5. This behavior is as follows:
> You can not use '/' file separator during compiling package-info.java (for instance "javac sk/forro/package-info.java"). You must use '\' separator (for instance "javac sk\forro\package-info.java"). If you use the '/' separator you get the the compilation error reported by this bug (package annotations should be in file package-info.java). This is javac 'feature' has been removed in jdk 6 and in jdk 6 you can use either '/' or '\' - it does not matter.
> It looks like the maven-compiler-plugin or one of its components (I mean plexus-x artefacts used by maven-compiler-plugin) uses '/' instead of the '\' in the MS Windows environment.
> I have attached a log file of an unsuccessful build (generated by mvn install -X)
> A possible workaround to solve this problem temporarily:
> The compilation successes if I use either an older version of maven-compiler-plugin or jdk 6 or do not use package-info.java files at all.

-- 
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-71) javac compilation error for package-info.java containing package annotation

Posted by "Rishabh Chandra (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCOMPILER-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=175200#action_175200 ] 

Rishabh Chandra commented on MCOMPILER-71:
------------------------------------------

I have faced this issue myself. I tried both 2.0 and 2.0.1 and they did not work.
Then i used the excludes and got the code to compile. As the package-info file is only for javadoc I just ignored it. This is the only solution i could get to work.
<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<fork>true</fork>
					<meminitial>128m</meminitial>
					<maxmem>512m</maxmem>
					<source>1.5</source>
					<target>1.5</target>
					<excludes>
						<exclude>**/package-info.java</exclude>
					</excludes>				
				</configuration>
			</plugin>

> javac compilation error for package-info.java containing package annotation
> ---------------------------------------------------------------------------
>
>                 Key: MCOMPILER-71
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-71
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP SP2
> JDK 1.5.0_15
>            Reporter: Gabriel Forro
>         Attachments: compile_error_2.0.2.log
>
>
> The package-info.java files can not be compiled in Maven 2 if the 2.0.2 maven-compiler-plugin is used. package-info.java files can be compiled by earlier versions of the maven-compiler-plugin (I have tried 2.0 and 2.0.1). Newer snapshot versions does not work also and it fails in the same error (I have tried version 2.1-snapshot).
> This problem can be caused by an unusual behavior of the javac from jdk 1.5. This behavior is as follows:
> You can not use '/' file separator during compiling package-info.java (for instance "javac sk/forro/package-info.java"). You must use '\' separator (for instance "javac sk\forro\package-info.java"). If you use the '/' separator you get the the compilation error reported by this bug (package annotations should be in file package-info.java). This is javac 'feature' has been removed in jdk 6 and in jdk 6 you can use either '/' or '\' - it does not matter.
> It looks like the maven-compiler-plugin or one of its components (I mean plexus-x artefacts used by maven-compiler-plugin) uses '/' instead of the '\' in the MS Windows environment.
> I have attached a log file of an unsuccessful build (generated by mvn install -X)
> A possible workaround to solve this problem temporarily:
> The compilation successes if I use either an older version of maven-compiler-plugin or jdk 6 or do not use package-info.java files at all.

-- 
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-71) javac compilation error for package-info.java containing package annotation

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MCOMPILER-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey updated MCOMPILER-71:
--------------------------------

    Fix Version/s: 2.2
         Assignee: John Casey

I think I've got the offending lines fixed in 2.2-SNAPSHOT (or rather, in plexus-compiler-javac-1.7: http://svn.codehaus.org/plexus/plexus-components/trunk/plexus-compiler/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java).

Can someone please take a look to make sure? Even better: if you have a test case, and can specify where it will fail (for instance, does it fail on linux?) that would be great to include.

> javac compilation error for package-info.java containing package annotation
> ---------------------------------------------------------------------------
>
>                 Key: MCOMPILER-71
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-71
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP SP2
> JDK 1.5.0_15
>            Reporter: Gabriel Forro
>            Assignee: John Casey
>             Fix For: 2.2
>
>         Attachments: compile_error_2.0.2.log
>
>
> The package-info.java files can not be compiled in Maven 2 if the 2.0.2 maven-compiler-plugin is used. package-info.java files can be compiled by earlier versions of the maven-compiler-plugin (I have tried 2.0 and 2.0.1). Newer snapshot versions does not work also and it fails in the same error (I have tried version 2.1-snapshot).
> This problem can be caused by an unusual behavior of the javac from jdk 1.5. This behavior is as follows:
> You can not use '/' file separator during compiling package-info.java (for instance "javac sk/forro/package-info.java"). You must use '\' separator (for instance "javac sk\forro\package-info.java"). If you use the '/' separator you get the the compilation error reported by this bug (package annotations should be in file package-info.java). This is javac 'feature' has been removed in jdk 6 and in jdk 6 you can use either '/' or '\' - it does not matter.
> It looks like the maven-compiler-plugin or one of its components (I mean plexus-x artefacts used by maven-compiler-plugin) uses '/' instead of the '\' in the MS Windows environment.
> I have attached a log file of an unsuccessful build (generated by mvn install -X)
> A possible workaround to solve this problem temporarily:
> The compilation successes if I use either an older version of maven-compiler-plugin or jdk 6 or do not use package-info.java files at all.

-- 
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-71) javac compilation error for package-info.java containing package annotation

Posted by "Stephen Connolly (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCOMPILER-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=189043#action_189043 ] 

Stephen Connolly commented on MCOMPILER-71:
-------------------------------------------

line 622 of the above diff is one of the offending lines

> javac compilation error for package-info.java containing package annotation
> ---------------------------------------------------------------------------
>
>                 Key: MCOMPILER-71
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-71
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP SP2
> JDK 1.5.0_15
>            Reporter: Gabriel Forro
>         Attachments: compile_error_2.0.2.log
>
>
> The package-info.java files can not be compiled in Maven 2 if the 2.0.2 maven-compiler-plugin is used. package-info.java files can be compiled by earlier versions of the maven-compiler-plugin (I have tried 2.0 and 2.0.1). Newer snapshot versions does not work also and it fails in the same error (I have tried version 2.1-snapshot).
> This problem can be caused by an unusual behavior of the javac from jdk 1.5. This behavior is as follows:
> You can not use '/' file separator during compiling package-info.java (for instance "javac sk/forro/package-info.java"). You must use '\' separator (for instance "javac sk\forro\package-info.java"). If you use the '/' separator you get the the compilation error reported by this bug (package annotations should be in file package-info.java). This is javac 'feature' has been removed in jdk 6 and in jdk 6 you can use either '/' or '\' - it does not matter.
> It looks like the maven-compiler-plugin or one of its components (I mean plexus-x artefacts used by maven-compiler-plugin) uses '/' instead of the '\' in the MS Windows environment.
> I have attached a log file of an unsuccessful build (generated by mvn install -X)
> A possible workaround to solve this problem temporarily:
> The compilation successes if I use either an older version of maven-compiler-plugin or jdk 6 or do not use package-info.java files at all.

-- 
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-71) javac compilation error for package-info.java containing package annotation

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCOMPILER-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=209311#action_209311 ] 

John Casey commented on MCOMPILER-71:
-------------------------------------

Okay, had to roll that change back. That wasn't the best way to go about things; it fails miserably.

> javac compilation error for package-info.java containing package annotation
> ---------------------------------------------------------------------------
>
>                 Key: MCOMPILER-71
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-71
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP SP2
> JDK 1.5.0_15
>            Reporter: Gabriel Forro
>            Assignee: John Casey
>             Fix For: 2.2
>
>         Attachments: compile_error_2.0.2.log
>
>
> The package-info.java files can not be compiled in Maven 2 if the 2.0.2 maven-compiler-plugin is used. package-info.java files can be compiled by earlier versions of the maven-compiler-plugin (I have tried 2.0 and 2.0.1). Newer snapshot versions does not work also and it fails in the same error (I have tried version 2.1-snapshot).
> This problem can be caused by an unusual behavior of the javac from jdk 1.5. This behavior is as follows:
> You can not use '/' file separator during compiling package-info.java (for instance "javac sk/forro/package-info.java"). You must use '\' separator (for instance "javac sk\forro\package-info.java"). If you use the '/' separator you get the the compilation error reported by this bug (package annotations should be in file package-info.java). This is javac 'feature' has been removed in jdk 6 and in jdk 6 you can use either '/' or '\' - it does not matter.
> It looks like the maven-compiler-plugin or one of its components (I mean plexus-x artefacts used by maven-compiler-plugin) uses '/' instead of the '\' in the MS Windows environment.
> I have attached a log file of an unsuccessful build (generated by mvn install -X)
> A possible workaround to solve this problem temporarily:
> The compilation successes if I use either an older version of maven-compiler-plugin or jdk 6 or do not use package-info.java files at all.

-- 
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-71) javac compilation error for package-info.java containing package annotation

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCOMPILER-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=209311#action_209311 ] 

John Casey edited comment on MCOMPILER-71 at 2/5/10 7:34 PM:
-------------------------------------------------------------

Okay, had to roll that change back. That wasn't the best way to go about things; it fails miserably.

FWIW, the failed commit is revId: 8627

      was (Author: jdcasey):
    Okay, had to roll that change back. That wasn't the best way to go about things; it fails miserably.
  
> javac compilation error for package-info.java containing package annotation
> ---------------------------------------------------------------------------
>
>                 Key: MCOMPILER-71
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-71
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP SP2
> JDK 1.5.0_15
>            Reporter: Gabriel Forro
>            Assignee: John Casey
>             Fix For: 2.2
>
>         Attachments: compile_error_2.0.2.log
>
>
> The package-info.java files can not be compiled in Maven 2 if the 2.0.2 maven-compiler-plugin is used. package-info.java files can be compiled by earlier versions of the maven-compiler-plugin (I have tried 2.0 and 2.0.1). Newer snapshot versions does not work also and it fails in the same error (I have tried version 2.1-snapshot).
> This problem can be caused by an unusual behavior of the javac from jdk 1.5. This behavior is as follows:
> You can not use '/' file separator during compiling package-info.java (for instance "javac sk/forro/package-info.java"). You must use '\' separator (for instance "javac sk\forro\package-info.java"). If you use the '/' separator you get the the compilation error reported by this bug (package annotations should be in file package-info.java). This is javac 'feature' has been removed in jdk 6 and in jdk 6 you can use either '/' or '\' - it does not matter.
> It looks like the maven-compiler-plugin or one of its components (I mean plexus-x artefacts used by maven-compiler-plugin) uses '/' instead of the '\' in the MS Windows environment.
> I have attached a log file of an unsuccessful build (generated by mvn install -X)
> A possible workaround to solve this problem temporarily:
> The compilation successes if I use either an older version of maven-compiler-plugin or jdk 6 or do not use package-info.java files at all.

-- 
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-71) javac compilation error for package-info.java containing package annotation

Posted by "Ivan Bogouchev (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCOMPILER-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=199749#action_199749 ] 

Ivan Bogouchev commented on MCOMPILER-71:
-----------------------------------------

We experience the same problem and it seems this is a bug in javac 1.5 : 

  http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6198196




> javac compilation error for package-info.java containing package annotation
> ---------------------------------------------------------------------------
>
>                 Key: MCOMPILER-71
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-71
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP SP2
> JDK 1.5.0_15
>            Reporter: Gabriel Forro
>         Attachments: compile_error_2.0.2.log
>
>
> The package-info.java files can not be compiled in Maven 2 if the 2.0.2 maven-compiler-plugin is used. package-info.java files can be compiled by earlier versions of the maven-compiler-plugin (I have tried 2.0 and 2.0.1). Newer snapshot versions does not work also and it fails in the same error (I have tried version 2.1-snapshot).
> This problem can be caused by an unusual behavior of the javac from jdk 1.5. This behavior is as follows:
> You can not use '/' file separator during compiling package-info.java (for instance "javac sk/forro/package-info.java"). You must use '\' separator (for instance "javac sk\forro\package-info.java"). If you use the '/' separator you get the the compilation error reported by this bug (package annotations should be in file package-info.java). This is javac 'feature' has been removed in jdk 6 and in jdk 6 you can use either '/' or '\' - it does not matter.
> It looks like the maven-compiler-plugin or one of its components (I mean plexus-x artefacts used by maven-compiler-plugin) uses '/' instead of the '\' in the MS Windows environment.
> I have attached a log file of an unsuccessful build (generated by mvn install -X)
> A possible workaround to solve this problem temporarily:
> The compilation successes if I use either an older version of maven-compiler-plugin or jdk 6 or do not use package-info.java files at all.

-- 
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] (MCOMPILER-71) javac compilation error for package-info.java containing package annotation

Posted by "Luca De Petrillo (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCOMPILER-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=288233#comment-288233 ] 

Luca De Petrillo commented on MCOMPILER-71:
-------------------------------------------

FYI: Using jdk 1.5.0_22, package-info.java files are compiled correctly.

I don't know exactly from what jdk version it started working, but I tried also with jdk 1.5.0_16 and seems to not works.
                
> javac compilation error for package-info.java containing package annotation
> ---------------------------------------------------------------------------
>
>                 Key: MCOMPILER-71
>                 URL: https://jira.codehaus.org/browse/MCOMPILER-71
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP SP2
> JDK 1.5.0_15
>            Reporter: Gabriel Forro
>            Assignee: John Casey
>             Fix For: 2.4
>
>         Attachments: compile_error_2.0.2.log
>
>
> The package-info.java files can not be compiled in Maven 2 if the 2.0.2 maven-compiler-plugin is used. package-info.java files can be compiled by earlier versions of the maven-compiler-plugin (I have tried 2.0 and 2.0.1). Newer snapshot versions does not work also and it fails in the same error (I have tried version 2.1-snapshot).
> This problem can be caused by an unusual behavior of the javac from jdk 1.5. This behavior is as follows:
> You can not use '/' file separator during compiling package-info.java (for instance "javac sk/forro/package-info.java"). You must use '\' separator (for instance "javac sk\forro\package-info.java"). If you use the '/' separator you get the the compilation error reported by this bug (package annotations should be in file package-info.java). This is javac 'feature' has been removed in jdk 6 and in jdk 6 you can use either '/' or '\' - it does not matter.
> It looks like the maven-compiler-plugin or one of its components (I mean plexus-x artefacts used by maven-compiler-plugin) uses '/' instead of the '\' in the MS Windows environment.
> I have attached a log file of an unsuccessful build (generated by mvn install -X)
> A possible workaround to solve this problem temporarily:
> The compilation successes if I use either an older version of maven-compiler-plugin or jdk 6 or do not use package-info.java files at all.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MCOMPILER-71) javac compilation error for package-info.java containing package annotation

Posted by "Milos Kleint (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MCOMPILER-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Milos Kleint updated MCOMPILER-71:
----------------------------------

    Fix Version/s:     (was: 2.2)
                   2.3

> javac compilation error for package-info.java containing package annotation
> ---------------------------------------------------------------------------
>
>                 Key: MCOMPILER-71
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-71
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP SP2
> JDK 1.5.0_15
>            Reporter: Gabriel Forro
>            Assignee: John Casey
>             Fix For: 2.3
>
>         Attachments: compile_error_2.0.2.log
>
>
> The package-info.java files can not be compiled in Maven 2 if the 2.0.2 maven-compiler-plugin is used. package-info.java files can be compiled by earlier versions of the maven-compiler-plugin (I have tried 2.0 and 2.0.1). Newer snapshot versions does not work also and it fails in the same error (I have tried version 2.1-snapshot).
> This problem can be caused by an unusual behavior of the javac from jdk 1.5. This behavior is as follows:
> You can not use '/' file separator during compiling package-info.java (for instance "javac sk/forro/package-info.java"). You must use '\' separator (for instance "javac sk\forro\package-info.java"). If you use the '/' separator you get the the compilation error reported by this bug (package annotations should be in file package-info.java). This is javac 'feature' has been removed in jdk 6 and in jdk 6 you can use either '/' or '\' - it does not matter.
> It looks like the maven-compiler-plugin or one of its components (I mean plexus-x artefacts used by maven-compiler-plugin) uses '/' instead of the '\' in the MS Windows environment.
> I have attached a log file of an unsuccessful build (generated by mvn install -X)
> A possible workaround to solve this problem temporarily:
> The compilation successes if I use either an older version of maven-compiler-plugin or jdk 6 or do not use package-info.java files at all.

-- 
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-71) javac compilation error for package-info.java containing package annotation

Posted by "Stephen Connolly (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCOMPILER-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=189042#action_189042 ] 

Stephen Connolly commented on MCOMPILER-71:
-------------------------------------------

At least when fork is true, this issue was introduced in r5396 of plexus

http://fisheye.codehaus.org/browse/plexus/plexus-components/trunk/plexus-compiler/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java?r1=5395&r2=5396

> javac compilation error for package-info.java containing package annotation
> ---------------------------------------------------------------------------
>
>                 Key: MCOMPILER-71
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-71
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP SP2
> JDK 1.5.0_15
>            Reporter: Gabriel Forro
>         Attachments: compile_error_2.0.2.log
>
>
> The package-info.java files can not be compiled in Maven 2 if the 2.0.2 maven-compiler-plugin is used. package-info.java files can be compiled by earlier versions of the maven-compiler-plugin (I have tried 2.0 and 2.0.1). Newer snapshot versions does not work also and it fails in the same error (I have tried version 2.1-snapshot).
> This problem can be caused by an unusual behavior of the javac from jdk 1.5. This behavior is as follows:
> You can not use '/' file separator during compiling package-info.java (for instance "javac sk/forro/package-info.java"). You must use '\' separator (for instance "javac sk\forro\package-info.java"). If you use the '/' separator you get the the compilation error reported by this bug (package annotations should be in file package-info.java). This is javac 'feature' has been removed in jdk 6 and in jdk 6 you can use either '/' or '\' - it does not matter.
> It looks like the maven-compiler-plugin or one of its components (I mean plexus-x artefacts used by maven-compiler-plugin) uses '/' instead of the '\' in the MS Windows environment.
> I have attached a log file of an unsuccessful build (generated by mvn install -X)
> A possible workaround to solve this problem temporarily:
> The compilation successes if I use either an older version of maven-compiler-plugin or jdk 6 or do not use package-info.java files at all.

-- 
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] (MCOMPILER-71) javac compilation error for package-info.java containing package annotation

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MCOMPILER-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy updated MCOMPILER-71:
----------------------------------

    Fix Version/s:     (was: 2.4)
                   backlog
    
> javac compilation error for package-info.java containing package annotation
> ---------------------------------------------------------------------------
>
>                 Key: MCOMPILER-71
>                 URL: https://jira.codehaus.org/browse/MCOMPILER-71
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows XP SP2
> JDK 1.5.0_15
>            Reporter: Gabriel Forro
>            Assignee: John Casey
>             Fix For: backlog
>
>         Attachments: compile_error_2.0.2.log
>
>
> The package-info.java files can not be compiled in Maven 2 if the 2.0.2 maven-compiler-plugin is used. package-info.java files can be compiled by earlier versions of the maven-compiler-plugin (I have tried 2.0 and 2.0.1). Newer snapshot versions does not work also and it fails in the same error (I have tried version 2.1-snapshot).
> This problem can be caused by an unusual behavior of the javac from jdk 1.5. This behavior is as follows:
> You can not use '/' file separator during compiling package-info.java (for instance "javac sk/forro/package-info.java"). You must use '\' separator (for instance "javac sk\forro\package-info.java"). If you use the '/' separator you get the the compilation error reported by this bug (package annotations should be in file package-info.java). This is javac 'feature' has been removed in jdk 6 and in jdk 6 you can use either '/' or '\' - it does not matter.
> It looks like the maven-compiler-plugin or one of its components (I mean plexus-x artefacts used by maven-compiler-plugin) uses '/' instead of the '\' in the MS Windows environment.
> I have attached a log file of an unsuccessful build (generated by mvn install -X)
> A possible workaround to solve this problem temporarily:
> The compilation successes if I use either an older version of maven-compiler-plugin or jdk 6 or do not use package-info.java files at all.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira