Revision 680910 not able to build due to java compile error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Revision 680910 not able to build due to java compile error

Paul Robinson-15
When running ant run-install the compile is falling over with the
following error:

classes:
  [javac15] Compiling 28 source files to
/data/u01/openbiz/apache-base/ofbiz/applications/accounting/build/classes
  [javac15]
/data/u01/openbiz/apache-base/ofbiz/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java:1773:
internal error; cannot instantiate
<V,V1,V2,V3>toMap(java.lang.String,V1,java.lang.String,V2,java.lang.String,V3)
at org.ofbiz.base.util.UtilMisc to
(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,double)
  [javac15]                 input = UtilMisc.toMap("invoiceId",
invoiceId, "invoiceItemTypeId", invoiceItemTypeId, "quantity", quantity);
  [javac15]                                       ^
  [javac15] Note: Some input files use unchecked or unsafe operations.
  [javac15] Note: Recompile with -Xlint:unchecked for details.
  [javac15] 1 error

Any help would be appreciated, I am not a java guy so I can't fix myself.

Cheers,
Paul
Reply | Threaded
Open this post in threaded view
|

Re: Revision 680910 not able to build due to java compile error

Jacopo Cappellato-3
It works for me.
Please try:

ant clean
ant

and it should work.

Jacopo

On Jul 30, 2008, at 6:39 AM, Paul Robinson wrote:

> When running ant run-install the compile is falling over with the  
> following error:
>
> classes:
> [javac15] Compiling 28 source files to /data/u01/openbiz/apache-base/
> ofbiz/applications/accounting/build/classes
> [javac15] /data/u01/openbiz/apache-base/ofbiz/applications/
> accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java:
> 1773: internal error; cannot instantiate  
> <
> V
> ,V1
> ,V2
> ,V3
> >toMap(java.lang.String,V1,java.lang.String,V2,java.lang.String,V3)  
> at org.ofbiz.base.util.UtilMisc to  
> (java
> .lang
> .String
> ,java
> .lang
> .String,java.lang.String,java.lang.String,java.lang.String,double)
> [javac15]                 input = UtilMisc.toMap("invoiceId",  
> invoiceId, "invoiceItemTypeId", invoiceItemTypeId, "quantity",  
> quantity);
> [javac15]                                       ^
> [javac15] Note: Some input files use unchecked or unsafe operations.
> [javac15] Note: Recompile with -Xlint:unchecked for details.
> [javac15] 1 error
>
> Any help would be appreciated, I am not a java guy so I can't fix  
> myself.
>
> Cheers,
> Paul


smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Revision 680910 not able to build due to java compile error

hans_bakker
In reply to this post by Paul Robinson-15
this error is only showing in java 1.6: fixed in revision 681096.

On Wed, 2008-07-30 at 12:39 +0800, Paul Robinson wrote:

> When running ant run-install the compile is falling over with the
> following error:
>
> classes:
>   [javac15] Compiling 28 source files to
> /data/u01/openbiz/apache-base/ofbiz/applications/accounting/build/classes
>   [javac15]
> /data/u01/openbiz/apache-base/ofbiz/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java:1773:
> internal error; cannot instantiate
> <V,V1,V2,V3>toMap(java.lang.String,V1,java.lang.String,V2,java.lang.String,V3)
> at org.ofbiz.base.util.UtilMisc to
> (java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,double)
>   [javac15]                 input = UtilMisc.toMap("invoiceId",
> invoiceId, "invoiceItemTypeId", invoiceItemTypeId, "quantity", quantity);
>   [javac15]                                       ^
>   [javac15] Note: Some input files use unchecked or unsafe operations.
>   [javac15] Note: Recompile with -Xlint:unchecked for details.
>   [javac15] 1 error
>
> Any help would be appreciated, I am not a java guy so I can't fix myself.
>
> Cheers,
> Paul

Reply | Threaded
Open this post in threaded view
|

Re: Revision 680910 not able to build due to java compile error

Jacques Le Roux
Administrator
Thanks Hans,

Forget my message please.

Jacques

From: "Hans Bakker" <[hidden email]>

> this error is only showing in java 1.6: fixed in revision 681096.
>
> On Wed, 2008-07-30 at 12:39 +0800, Paul Robinson wrote:
>> When running ant run-install the compile is falling over with the
>> following error:
>>
>> classes:
>>   [javac15] Compiling 28 source files to
>> /data/u01/openbiz/apache-base/ofbiz/applications/accounting/build/classes
>>   [javac15]
>> /data/u01/openbiz/apache-base/ofbiz/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java:1773:
>> internal error; cannot instantiate
>> <V,V1,V2,V3>toMap(java.lang.String,V1,java.lang.String,V2,java.lang.String,V3)
>> at org.ofbiz.base.util.UtilMisc to
>> (java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,double)
>>   [javac15]                 input = UtilMisc.toMap("invoiceId",
>> invoiceId, "invoiceItemTypeId", invoiceItemTypeId, "quantity", quantity);
>>   [javac15]                                       ^
>>   [javac15] Note: Some input files use unchecked or unsafe operations.
>>   [javac15] Note: Recompile with -Xlint:unchecked for details.
>>   [javac15] 1 error
>>
>> Any help would be appreciated, I am not a java guy so I can't fix myself.
>>
>> Cheers,
>> Paul
>