ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: CVS_HEAD doesnt build for me (jikes?)
Date Tue, 07 Sep 2004 10:22:29 GMT
Peter Reilly wrote:
> It is not saiding that exactly.
> For some reason (a bug in jikes?) it wants the name to be qualified.
> This is not the case for javac.
> The Creator does not need to be static - although it could be.

I made it static and the complaint went away. Noting seems to have broken...

> 
> You could try the following patch:
> 
> Index: src/main/org/apache/tools/ant/IntrospectionHelper.java
> ===================================================================
> RCS file: 
> /home/cvs/ant/src/main/org/apache/tools/ant/IntrospectionHelper.java,v
> retrieving revision 1.86
> diff -u -3 -p -r1.86 IntrospectionHelper.java
> --- src/main/org/apache/tools/ant/IntrospectionHelper.java      23 Aug 
> 2004 13:42:19 -0000    1.86
> +++ src/main/org/apache/tools/ant/IntrospectionHelper.java      7 Sep 
> 2004 09:19:37 -0000
> @@ -1203,7 +1203,7 @@ public final class IntrospectionHelper i
>      * The class is final as it has a private constructor.
>      */
>     public static final class Creator {
> -        private NestedCreator nestedCreator;
> +        private IntrospectionHelper.NestedCreator nestedCreator;
>         private Object parent;
>         private Project project;
>         private Object nestedObject;
> @@ -1224,7 +1224,7 @@ public final class IntrospectionHelper i
>          * @param nestedCreator the nested creator object to use
>          */
>         private Creator(
> -            Project project, Object parent, NestedCreator nestedCreator) {
> +            Project project, Object parent, 
> IntrospectionHelper.NestedCreator nestedCreator) {
>             this.project = project;
>             this.parent = parent;
>             this.nestedCreator = nestedCreator;
> 
> 
> Steve Loughran wrote:
> 
>> build:
>> [javac.preset] Compiling 1 source file to 
>> /home/slo/Java/Apache/ant/build/classes
>>
>> [javac.preset] Found 2 semantic errors compiling 
>> "/home/slo/Java/Apache/ant/src/main/org/apache/tools/ant/IntrospectionHelper.java":

>>
>>
>> [javac.preset]   1206.         private NestedCreator nestedCreator;
>> [javac.preset]                         ^-----------^
>>
>> BUILD FAILED
>> /home/slo/Java/Apache/ant/build.xml:1293: The following error occurred 
>> while executing this line:
>> /home/slo/Java/Apache/ant/build.xml:631: Compile failed; see the 
>> compiler error output for details.
>> [javac.preset] *** Semantic Error: The static type 
>> "org.apache.tools.ant.IntrospectionHelper$Creator" must use a 
>> qualified name to access the non-static member type 
>> "org.apache.tools.ant.IntrospectionHelper$NestedCreator" of the 
>> enclosing type "org.apache.tools.ant.IntrospectionHelper".
>>
>> Total time: 8 seconds
>>
>>
>> [javac.preset]   1227.             Project project, Object parent, 
>> NestedCreator nestedCreator) {
>> [javac.preset] ^-----------^
>> [javac.preset] *** Semantic Error: The static type 
>> "org.apache.tools.ant.IntrospectionHelper$Creator" must use a 
>> qualified name to access the non-static member type 
>> "org.apache.tools.ant.IntrospectionHelper$NestedCreator" of the 
>> enclosing type "org.apache.tools.ant.IntrospectionHelper".
>>
>> -------------------------
>>
>> I think it means that nested creator should be static.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>> For additional commands, e-mail: dev-help@ant.apache.org
>>
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 


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


Mime
View raw message