You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Ittay Dror (JIRA)" <ji...@apache.org> on 2008/11/03 13:47:44 UTC

[jira] Created: (BUILDR-195) unnecessary compile if java class name doesn't match a file name

unnecessary compile if java class name doesn't match a file name
----------------------------------------------------------------

                 Key: BUILDR-195
                 URL: https://issues.apache.org/jira/browse/BUILDR-195
             Project: Buildr
          Issue Type: Bug
          Components: Compilers
    Affects Versions: 1.3.2
            Reporter: Ittay Dror
             Fix For: 1.3.4


A legacy code I was building with Buildr had this use case: A file named 'Foo.java' contained a class named 'Bar'. This caused constant recompilation because Foo.class was never created. 

(somewhat related: if a class has an inner class, will the compiler always touch the .class file of the outer class?)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-195) unnecessary compile if java class name doesn't match a file name

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12884600#action_12884600 ] 

Antoine Toulme commented on BUILDR-195:
---------------------------------------

How can you have a file Foo.java that doesn't compile into a file named Foo.class ? Can you attach a sample project please ?

> unnecessary compile if java class name doesn't match a file name
> ----------------------------------------------------------------
>
>                 Key: BUILDR-195
>                 URL: https://issues.apache.org/jira/browse/BUILDR-195
>             Project: Buildr
>          Issue Type: Bug
>          Components: Compilers
>    Affects Versions: 1.3.2
>            Reporter: Ittay Dror
>             Fix For: Wish List
>
>
> A legacy code I was building with Buildr had this use case: A file named 'Foo.java' contained a class named 'Bar'. This caused constant recompilation because Foo.class was never created. 
> (somewhat related: if a class has an inner class, will the compiler always touch the .class file of the outer class?)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-195) unnecessary compile if java class name doesn't match a file name

Posted by "Ittay Dror (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644708#action_12644708 ] 

Ittay Dror commented on BUILDR-195:
-----------------------------------

Even if this issue is not fixed, can you please add a check, after compiling, that the expected class files were created and if not issue a warning? I had to put print debugs to find the problematic file.

> unnecessary compile if java class name doesn't match a file name
> ----------------------------------------------------------------
>
>                 Key: BUILDR-195
>                 URL: https://issues.apache.org/jira/browse/BUILDR-195
>             Project: Buildr
>          Issue Type: Bug
>          Components: Compilers
>    Affects Versions: 1.3.2
>            Reporter: Ittay Dror
>             Fix For: 1.3.4
>
>
> A legacy code I was building with Buildr had this use case: A file named 'Foo.java' contained a class named 'Bar'. This caused constant recompilation because Foo.class was never created. 
> (somewhat related: if a class has an inner class, will the compiler always touch the .class file of the outer class?)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-195) unnecessary compile if java class name doesn't match a file name

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Toulme updated BUILDR-195:
----------------------------------

    Fix Version/s: Wish List

> unnecessary compile if java class name doesn't match a file name
> ----------------------------------------------------------------
>
>                 Key: BUILDR-195
>                 URL: https://issues.apache.org/jira/browse/BUILDR-195
>             Project: Buildr
>          Issue Type: Bug
>          Components: Compilers
>    Affects Versions: 1.3.2
>            Reporter: Ittay Dror
>             Fix For: Wish List
>
>
> A legacy code I was building with Buildr had this use case: A file named 'Foo.java' contained a class named 'Bar'. This caused constant recompilation because Foo.class was never created. 
> (somewhat related: if a class has an inner class, will the compiler always touch the .class file of the outer class?)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.