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 |
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 |
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 |
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 > |
Free forum by Nabble | Edit this page |