Archived

This forum has been archived. Please start a new discussion on GitHub.

IceJ 3.1.0 Problem

When I compile IceJ 3.1.0 (Java5) in Eclipse, it complains as follows:
The method put(String, PropertySetDescriptor) in the type Map<String,PropertySetDescriptor> is not applicable for the arguments (String, Object) Node.java IceJ-3.1.0/src/IceGridGUI/Application line 617 August 17, 2006 4:16:39 PM 51463


I check the code in IceGridGUI.Application.PropertySet.java:
import javax.swing.JTree;
import javax.swing.tree.DefaultTreeCellRenderer;

import IceGrid.*;
import IceGridGUI.*;

class PropertySet extends TreeNode
{
    //...
    Object getDescriptor()
    {
	return _descriptor;
    }
    
    Object saveDescriptor()
    {
	return _descriptor.clone();
    }

    private PropertySetDescriptor _descriptor;	
    
    //...
    
}

It is strange. Why does it look like this:
class PropertySet extends TreeNode
{
    //...
    PropertySetDescriptor getDescriptor()
    {
	return _descriptor;
    }
    
    PropertySetDescriptor saveDescriptor()
    {
	return _descriptor.clone();
    }

    private PropertySetDescriptor _descriptor;	
    
    //...
    
}

Comments

  • matthew
    matthew NL, Canada
    You cannot compile the IceGrid GUI with Java 5. If you look at the build.xml file that accompanies the distribution it skips the build of the GUI if you are using java5.
  • Oh... Thank you!