'java.lang.String' has no method

Keith <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
 From what I understand based on gcj e-mail and bug archives, I should 
not be seeing this error in 4.4.0,
so what am I doing wrong?

Keith

When I compile Reports.class (compiled with java 1.6.0_10) using gcj 
under MinGW
$ gcj -v
Using built-in specs.
Reading specs from c:/mingw/bin/../lib/gcc/mingw32/4.4.0/libgcj.spec
rename spec startfile to startfileorig
rename spec lib to liborig
Target: mingw32
Configured with: ../gcc-4.4.0/configure 
--enable-languages=c,ada,c++,fortran,jav
a,objc,obj-c++ --disable-sjlj-exceptions --enable-shared --enable-libgcj 
--enabl
e-libgomp --with-dwarf2 --disable-win32-registry 
--enable-libstdcxx-debug --enab
le-version-specific-runtime-libs --prefix=/mingw 
--with-gmp=/mingw/src/gmp/root
--with-mpfr=/mingw/src/mpfr/root --build=mingw32
Thread model: win32
gcc version 4.4.0 (GCC)

with the command:
gcj 
--classpath="/Croot/jprojects/pps/dist/lib/pps.jar:/Croot/jprojects/pps/dist/lib/pentium.jar:/Croot/jprojects/pps/dist/lib/org.eclipse.ui.workbench_3.5.0.I20090603-2000.jar:/Croot/jprojects/pps/dist/lib/org.eclipse.swt.win32.win32.x86_3.5.0.v3550b.jar:/Croot/jprojects/pps/dist/lib/org.eclipse.osgi_3.5.0.v20090520.jar:/Croot/jprojects/pps/dist/lib/org.eclipse.jface_3.5.0.I20090525-2000.jar:/Croot/jprojects/pps/dist/lib/org.eclipse.equinox.common_3.5.0.v20090520-1800.jar:/Croot/jprojects/pps/dist/lib/org.eclipse.core.runtime_3.5.0.v20090525.jar:/Croot/jprojects/pps/dist/lib/org.eclipse.core.commands_3.5.0.I20090525-2000.jar:/Croot/jprojects/pps/dist/lib/mail.jar:/Croot/jprojects/pps/dist/lib/jRegistryKey.jar:/Croot/jprojects/pps/dist/lib/ArciMathEval.jar:/Croot/jprojects/pps/dist/lib/activat
 ion.jar" 
-Os -c -o obj/com_performanceplanningsystem_site_Reports.o 
com/performanceplanningsystem/site/Reports.class

I get:

com/performanceplanningsystem/site/Reports.java:892: error: class 
'java.lang.String' has no method named 'format' matching signature 
'(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;'
com/performanceplanningsystem/site/Reports.java: In method 
'com.performanceplanningsystem.site.Reports.startPoint(com.performanceplanningsystem.site.SiteElement,com.performanceplanningsystem.site.SiteElement,java.util.ArrayList)':
com/performanceplanningsystem/site/Reports.java:1329: error: class 
'java.lang.String' has no method named 'format' matching signature 
'(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;'
com/performanceplanningsystem/site/Reports.java: In method 
'com.performanceplanningsystem.site.Reports.findShape(com.performanceplanningsystem.ui.PPS,java.util.Map)':
com/performanceplanningsystem/site/Reports.java:2129: error: class 
'java.lang.String' has no method named 'format' matching signature 
'(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;'
com/performanceplanningsystem/site/Reports.java: In method 
'com.performanceplanningsystem.site.Reports.greenReport(com.performanceplanningsystem.ui.PPS,java.util.Map)':
com/performanceplanningsystem/site/Reports.java:2519: error: class 
'java.lang.String' has no method named 'format' matching signature 
'(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;'

Code:
int reportCount = 0;
String nameString = "daily";
// resource is  {"report.filename.fmt", "report%1$d.txt"},
Line 829:
        String reportName = String.format(nameString + 
PPS.getPpsResources().getString("report.filename.fmt"), reportCount); 
//$NON-NLS-1$
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.