You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "John Ferguson Smart (JIRA)" <ji...@codehaus.org> on 2005/11/21 10:21:06 UTC

[jira] Created: (MPCHECKSTYLE-46) Checkstyle report fails on classes with JDK 1.5 syntax

Checkstyle report fails on classes with JDK 1.5 syntax
------------------------------------------------------

         Key: MPCHECKSTYLE-46
         URL: http://jira.codehaus.org/browse/MPCHECKSTYLE-46
     Project: maven-checkstyle-plugin
        Type: Bug
 Environment: Linux Mandrake 10.1, JDK 1.5
    Reporter: John Ferguson Smart
    Priority: Minor
 Attachments: pom.xml

The checkstyle report plugin fails to recognise JDK 1.5 syntax

To reproduce: 
1) Add a class with a JDK1.5 syntax and run mvn site

    ...
    public List findHotelsInCountry(Country country) {
        List hotelsFound = new ArrayList();
        
        for(Hotel hotel : hotels) {
            if (hotel.getCountry().equals(country)) {
                hotelsFound.add(hotel);
            }
        }
        
        return hotelsFound;
    }

In the checkstyle report, you get:

com/javaworld/hotels/model/HotelModel.java
Violation	Message	Line
error	Got an exception - expecting EOF, found '}'	0

2) Replace the JDK 1.5 list syntax by a JDK1.4 iterator and rerun mvn site :

com/javaworld/hotels/model/HotelModel.java
Violation	Message	Line
error	Line has trailing spaces.	23
error	Line has trailing spaces.	28
error	Line has trailing spaces.	37
error	Line has trailing spaces.	42
error	'3' is a magic number.	42
error	Line has trailing spaces.	44
...

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-1641) Checkstyle report fails on classes with JDK 1.5 syntax

Posted by "Edwin Punzalan (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1641?page=all ]
     
Edwin Punzalan closed MNG-1641:
-------------------------------

     Assign To: Edwin Punzalan
    Resolution: Fixed

Fixed by MNG-1749 patch.

> Checkstyle report fails on classes with JDK 1.5 syntax
> ------------------------------------------------------
>
>          Key: MNG-1641
>          URL: http://jira.codehaus.org/browse/MNG-1641
>      Project: Maven 2
>         Type: Bug

>   Components: maven-checkstyle-plugin
>  Environment: Linux Mandrake 10.1, JDK 1.5
>     Reporter: John Ferguson Smart
>     Assignee: Edwin Punzalan
>     Priority: Minor
>  Attachments: pom.xml
>
>
> The checkstyle report plugin fails to recognise JDK 1.5 syntax
> To reproduce: 
> 1) Add a class with a JDK1.5 syntax and run mvn site
>     ...
>     public List findHotelsInCountry(Country country) {
>         List hotelsFound = new ArrayList();
>         
>         for(Hotel hotel : hotels) {
>             if (hotel.getCountry().equals(country)) {
>                 hotelsFound.add(hotel);
>             }
>         }
>         
>         return hotelsFound;
>     }
> In the checkstyle report, you get:
> com/javaworld/hotels/model/HotelModel.java
> Violation	Message	Line
> error	Got an exception - expecting EOF, found '}'	0
> 2) Replace the JDK 1.5 list syntax by a JDK1.4 iterator and rerun mvn site :
> com/javaworld/hotels/model/HotelModel.java
> Violation	Message	Line
> error	Line has trailing spaces.	23
> error	Line has trailing spaces.	28
> error	Line has trailing spaces.	37
> error	Line has trailing spaces.	42
> error	'3' is a magic number.	42
> error	Line has trailing spaces.	44
> ...

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1641) Checkstyle report fails on classes with JDK 1.5 syntax

Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1641?page=comments#action_51679 ] 

Arnaud Heritier commented on MNG-1641:
--------------------------------------

sorry I didn't see that brett moved the issue.

> Checkstyle report fails on classes with JDK 1.5 syntax
> ------------------------------------------------------
>
>          Key: MNG-1641
>          URL: http://jira.codehaus.org/browse/MNG-1641
>      Project: Maven 2
>         Type: Bug
>   Components: maven-checkstyle-plugin
>  Environment: Linux Mandrake 10.1, JDK 1.5
>     Reporter: John Ferguson Smart
>     Priority: Minor
>  Attachments: pom.xml
>
>
> The checkstyle report plugin fails to recognise JDK 1.5 syntax
> To reproduce: 
> 1) Add a class with a JDK1.5 syntax and run mvn site
>     ...
>     public List findHotelsInCountry(Country country) {
>         List hotelsFound = new ArrayList();
>         
>         for(Hotel hotel : hotels) {
>             if (hotel.getCountry().equals(country)) {
>                 hotelsFound.add(hotel);
>             }
>         }
>         
>         return hotelsFound;
>     }
> In the checkstyle report, you get:
> com/javaworld/hotels/model/HotelModel.java
> Violation	Message	Line
> error	Got an exception - expecting EOF, found '}'	0
> 2) Replace the JDK 1.5 list syntax by a JDK1.4 iterator and rerun mvn site :
> com/javaworld/hotels/model/HotelModel.java
> Violation	Message	Line
> error	Line has trailing spaces.	23
> error	Line has trailing spaces.	28
> error	Line has trailing spaces.	37
> error	Line has trailing spaces.	42
> error	'3' is a magic number.	42
> error	Line has trailing spaces.	44
> ...

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1641) Checkstyle report fails on classes with JDK 1.5 syntax

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1641?page=all ]

Carlos Sanchez updated MNG-1641:
--------------------------------

    Component: maven-checkstyle-plugin

> Checkstyle report fails on classes with JDK 1.5 syntax
> ------------------------------------------------------
>
>          Key: MNG-1641
>          URL: http://jira.codehaus.org/browse/MNG-1641
>      Project: Maven 2
>         Type: Bug
>   Components: maven-checkstyle-plugin
>  Environment: Linux Mandrake 10.1, JDK 1.5
>     Reporter: John Ferguson Smart
>     Priority: Minor
>  Attachments: pom.xml
>
>
> The checkstyle report plugin fails to recognise JDK 1.5 syntax
> To reproduce: 
> 1) Add a class with a JDK1.5 syntax and run mvn site
>     ...
>     public List findHotelsInCountry(Country country) {
>         List hotelsFound = new ArrayList();
>         
>         for(Hotel hotel : hotels) {
>             if (hotel.getCountry().equals(country)) {
>                 hotelsFound.add(hotel);
>             }
>         }
>         
>         return hotelsFound;
>     }
> In the checkstyle report, you get:
> com/javaworld/hotels/model/HotelModel.java
> Violation	Message	Line
> error	Got an exception - expecting EOF, found '}'	0
> 2) Replace the JDK 1.5 list syntax by a JDK1.4 iterator and rerun mvn site :
> com/javaworld/hotels/model/HotelModel.java
> Violation	Message	Line
> error	Line has trailing spaces.	23
> error	Line has trailing spaces.	28
> error	Line has trailing spaces.	37
> error	Line has trailing spaces.	42
> error	'3' is a magic number.	42
> error	Line has trailing spaces.	44
> ...

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1641) Checkstyle report fails on classes with JDK 1.5 syntax

Posted by "Jose Peleteiro (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1641?page=comments#action_52781 ] 

Jose Peleteiro commented on MNG-1641:
-------------------------------------

Please, update this plugin to CheckStyle 4.0 (released version). (And release this plugin as well).

> Checkstyle report fails on classes with JDK 1.5 syntax
> ------------------------------------------------------
>
>          Key: MNG-1641
>          URL: http://jira.codehaus.org/browse/MNG-1641
>      Project: Maven 2
>         Type: Bug
>   Components: maven-checkstyle-plugin
>  Environment: Linux Mandrake 10.1, JDK 1.5
>     Reporter: John Ferguson Smart
>     Priority: Minor
>  Attachments: pom.xml
>
>
> The checkstyle report plugin fails to recognise JDK 1.5 syntax
> To reproduce: 
> 1) Add a class with a JDK1.5 syntax and run mvn site
>     ...
>     public List findHotelsInCountry(Country country) {
>         List hotelsFound = new ArrayList();
>         
>         for(Hotel hotel : hotels) {
>             if (hotel.getCountry().equals(country)) {
>                 hotelsFound.add(hotel);
>             }
>         }
>         
>         return hotelsFound;
>     }
> In the checkstyle report, you get:
> com/javaworld/hotels/model/HotelModel.java
> Violation	Message	Line
> error	Got an exception - expecting EOF, found '}'	0
> 2) Replace the JDK 1.5 list syntax by a JDK1.4 iterator and rerun mvn site :
> com/javaworld/hotels/model/HotelModel.java
> Violation	Message	Line
> error	Line has trailing spaces.	23
> error	Line has trailing spaces.	28
> error	Line has trailing spaces.	37
> error	Line has trailing spaces.	42
> error	'3' is a magic number.	42
> error	Line has trailing spaces.	44
> ...

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1641) Checkstyle report fails on classes with JDK 1.5 syntax

Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1641?page=comments#action_51678 ] 

Arnaud Heritier commented on MNG-1641:
--------------------------------------

THis bug is for maven 2 ?

> Checkstyle report fails on classes with JDK 1.5 syntax
> ------------------------------------------------------
>
>          Key: MNG-1641
>          URL: http://jira.codehaus.org/browse/MNG-1641
>      Project: Maven 2
>         Type: Bug
>   Components: maven-checkstyle-plugin
>  Environment: Linux Mandrake 10.1, JDK 1.5
>     Reporter: John Ferguson Smart
>     Priority: Minor
>  Attachments: pom.xml
>
>
> The checkstyle report plugin fails to recognise JDK 1.5 syntax
> To reproduce: 
> 1) Add a class with a JDK1.5 syntax and run mvn site
>     ...
>     public List findHotelsInCountry(Country country) {
>         List hotelsFound = new ArrayList();
>         
>         for(Hotel hotel : hotels) {
>             if (hotel.getCountry().equals(country)) {
>                 hotelsFound.add(hotel);
>             }
>         }
>         
>         return hotelsFound;
>     }
> In the checkstyle report, you get:
> com/javaworld/hotels/model/HotelModel.java
> Violation	Message	Line
> error	Got an exception - expecting EOF, found '}'	0
> 2) Replace the JDK 1.5 list syntax by a JDK1.4 iterator and rerun mvn site :
> com/javaworld/hotels/model/HotelModel.java
> Violation	Message	Line
> error	Line has trailing spaces.	23
> error	Line has trailing spaces.	28
> error	Line has trailing spaces.	37
> error	Line has trailing spaces.	42
> error	'3' is a magic number.	42
> error	Line has trailing spaces.	44
> ...

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1641) Checkstyle report fails on classes with JDK 1.5 syntax

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1641?page=comments#action_51566 ] 

Carlos Sanchez commented on MNG-1641:
-------------------------------------

The plugin needs checkstyle 4.0, which currently is in beta, to use 1.5 new language syntax.
I think the plugin won't be released with that support until 4.0 goes final. They may release a beta though.

> Checkstyle report fails on classes with JDK 1.5 syntax
> ------------------------------------------------------
>
>          Key: MNG-1641
>          URL: http://jira.codehaus.org/browse/MNG-1641
>      Project: Maven 2
>         Type: Bug
>   Components: maven-checkstyle-plugin
>  Environment: Linux Mandrake 10.1, JDK 1.5
>     Reporter: John Ferguson Smart
>     Priority: Minor
>  Attachments: pom.xml
>
>
> The checkstyle report plugin fails to recognise JDK 1.5 syntax
> To reproduce: 
> 1) Add a class with a JDK1.5 syntax and run mvn site
>     ...
>     public List findHotelsInCountry(Country country) {
>         List hotelsFound = new ArrayList();
>         
>         for(Hotel hotel : hotels) {
>             if (hotel.getCountry().equals(country)) {
>                 hotelsFound.add(hotel);
>             }
>         }
>         
>         return hotelsFound;
>     }
> In the checkstyle report, you get:
> com/javaworld/hotels/model/HotelModel.java
> Violation	Message	Line
> error	Got an exception - expecting EOF, found '}'	0
> 2) Replace the JDK 1.5 list syntax by a JDK1.4 iterator and rerun mvn site :
> com/javaworld/hotels/model/HotelModel.java
> Violation	Message	Line
> error	Line has trailing spaces.	23
> error	Line has trailing spaces.	28
> error	Line has trailing spaces.	37
> error	Line has trailing spaces.	42
> error	'3' is a magic number.	42
> error	Line has trailing spaces.	44
> ...

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org