Tasks in TaskSeries must have unique description!?!

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
lalelale
Posts: 1
Joined: Wed Dec 22, 2010 6:08 pm
antibot: No, of course not.

Tasks in TaskSeries must have unique description!?!

Post by lalelale » Wed Dec 22, 2010 6:20 pm

I got this strange behavior when creating a gantt chart: although I added several tasks in the TaskSeries, the chart displayed only one. Then I noticed that the problem was that the task descriptions were the same; with unique task descriptions, all tasks are displayed.

Is this a bug? I don't find this behavior mentioned anywhere.

Thanks! :-)

skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Re: Tasks in TaskSeries must have unique description!?!

Post by skunk » Wed Dec 22, 2010 7:07 pm

Dunno about a bug. add(...) does not check that the descriptions are unique, but the presence of methods like this

Code: Select all

public Task get(java.lang.String description)
in TaskSeries suggest that some parts of the code expect the descriptions to be unique.

Locked