[ 
https://issues.apache.org/jira/browse/BUILDR-641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13269231#comment-13269231
 ] 

Niklaus Giger commented on BUILDR-641:
--------------------------------------

These cases are surely rare. Therefore we should try to find a way to check 
whether compiling fails because of true errors or these rare cases. May be one 
could adapt an existing javaparser (e.g. http://code.google.com/p/javaparser/) 
just to return the main class in the file, while ignoring the rest?
                
> should allow java files without a class definition (e.g package-info.java)
> --------------------------------------------------------------------------
>
>                 Key: BUILDR-641
>                 URL: https://issues.apache.org/jira/browse/BUILDR-641
>             Project: Buildr
>          Issue Type: Bug
>          Components: Compilers
>    Affects Versions: 1.4.6
>            Reporter: Niklaus Giger
>
> A project with a project-info.java file consisting only of a line like 
> "package java.lang.applet;" will always get recompiled, as running javac will 
> not create a package-info.class file.
> See 
> http://docs.oracle.com/javase/6/docs/technotes/tools/solaris/javadoc.html#sourcefiles
> Rewording the title to 'should allow java files without a class definition', 
> as there are may be other (pathological) cases where a *.java file consists 
> only of comments.

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

        

Reply via email to