[rawtypes] found raw type: IAxis
jchart2d is a real-time charting library written in java.
Brought to you by:
achimwestermann
Hi,
Great library - thank you for sharing it!
However,
IAxis axisX = staticChart.getAxisX();
at http://www.coderanch.com/how-to/java/JChart2DDemo generates the following warning:
warning: [rawtypes] found raw type: IAxis
IAxis axisX = staticChart.getAxisX();
^
missing type arguments for generic class IAxis<T>
where T is a type-variable:
T extends IAxisScalePolicy declared in interface IAxis
Please, what is the correct type declaration?
(I also tried IAxis<iaxisscalepolicy> without success.)</iaxisscalepolicy>
Many thanks and best regards,
Simon
Anonymous
Hi Simon,
the source you refer to is some totally outdated example. Even if jchart2d has been in a long hiatus for now.
Try stick to the examples within the original source: http://sourceforge.net/p/jchart2d/code/ci/master/tree/src/info/monitorenter/gui/chart/demos/AdvancedDynamicChart.java
However I don't know which version of the library you use.
kind regards,
Achim
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Hi Achim,
Thanks for your quick reply! With an added type indication < ? > like in
or like in your source, I then not only get a compilation warning but even the following compilation error:
Kind regards,
Simon
Hi Simon,
yes that's weak. I should have some time from December 10th on to fix the issue. Unfortunately not sooner.
thx for reporting.
cheers,
Achim