Hi Josh, I'm currently working on some REST API stuff, so my head's right in this space.
I'm happy to take a look at this is if you send over a failing test. Jim On 17 Jun 2011, at 21:34, Josh Adell wrote: > I am using the Dijkstra path finding algorithm. I have several > relationships set up through the REST interface with a cost property > called "distance". Unfortunately, it seems like I can't make the > property a round number like 2.0, either through REST calls or through > the webadmin panel. It always seems to cast my value to an integer. > > When I try to find my path, I get the following exception thrown: > "java.lang.Integer cannot be cast to java.lang.Double" > > The exception is thrown on line 38 of the DoubleEvaluator: > "org.neo4j.graphalgo.impl.util.DoubleEvaluator.getCost(DoubleEvaluator.java:38)" > > I don't know Java very well, and I don't have an environment set up to > work on large Java projects, so I can't submit a patch. I think the > fix might be to change that line to: > - return (Double) relationship.getProperty( costpropertyName ); > + return (Double) relationship.getProperty( costpropertyName ).doubleValue(); > > Should I file a bug as well as posting this to the list? > > Thanks, > Josh Adell > _______________________________________________ > Neo4j mailing list > [email protected] > https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

