This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

compile error


Martin Aliger writes:
 > Hi list,
 > 
 > GCJ 3.2 do _not_ compile this correctly:
 > 
 > -----
 > package org.apache.poi.poifs.dev;
 > 
 > public class POIFSViewer
 > {
 > 
 >     public static void main()//final String args[])
 >     {
 >     }
 > }
 > -----
 > 
 > package directive misleads compiler somehow.
 > 
 > when compile into binary, it complains about missing class$ identifier
 > when compile into .class (-C) it compiles OK, but resulting code could not be run with gij (really strange errors even if I copy .class file info ./org/apache/poi/poifs/dev/ directory)

Please show use *exactly* the commands that you use to compile this
file and the resulting compiler output.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]