bardsoftware / ganttproject

Official GanttProject repository.
http://ganttproject.biz
GNU General Public License v3.0
860 stars 301 forks source link

Current cvs version does not compile with ant: Casts are missing #146

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
getValue() as used in the file
ganttproject/impex/msproject/ExporterToMsProjectFile.java
returns an object - but at two lines a string is expected.  Therefore a cast to 
String is missing to compile it:
...

    private EnumerationOption myFileFormatOption = new DefaultEnumerationOption("impex.msproject.fileformat", FILE_FORMAT_IDS) {
        public void commit() {
            super.commit();
            ExporterToMsProjectFile.this.myFileFormat = (java.lang.String)getValue();
        }
    };
...

    public void commit() {
        super.commit();
        setSelectedLocale((java.lang.String)getValue());
    }
...

Original issue reported on code.google.com by floma...@gmail.com on 17 Sep 2010 at 11:42

GoogleCodeExporter commented 9 years ago
Compilation with ant got fixed a long time ago!

Original comment by maarten....@gmail.com on 16 Apr 2011 at 1:07

GoogleCodeExporter commented 9 years ago

Original comment by dbarashev on 22 Sep 2014 at 12:22