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:
Code:
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:
Code:
class PropertySet extends TreeNode
{
//...
PropertySetDescriptor getDescriptor()
{
return _descriptor;
}
PropertySetDescriptor saveDescriptor()
{
return _descriptor.clone();
}
private PropertySetDescriptor _descriptor;
//...
}