PDA

View Full Version : [2.0 Trunk] cant compile



takayser
3 Apr 2009, 3:18 AM
Since a longer time the 2.0 trunk code cannot be compiled because of the following generics issue.


[javac] com.extjs.gxt/custom/chart/src/com/extjs/gxt/charts/client/model/ChartModel.java:227: java.lang.Object cannot be dereferenced
[javac] return get("is_decimal_separator_comma").equals("1");
[javac] ^
[javac] com.extjs.gxt/custom/chart/src/com/extjs/gxt/charts/client/model/ChartModel.java:245: java.lang.Object cannot be dereferenced
[javac] return get("is_fixed_num_decimals_forced").equals("1");
[javac] ^
[javac] com.extjs.gxt/custom/chart/src/com/extjs/gxt/charts/client/model/ChartModel.java:254: java.lang.Object cannot be dereferenced
[javac] return get("is_thousand_separator_disabled").equals("1");
[javac] ^
[javac] Note: com.extjs.gxt/user/src/com/extjs/gxt/ui/client/Style.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 3 errors

I know, code is not released, even so would be nice if you fix that. (seems only to need a cast to String or Object)

sven
3 Apr 2009, 4:30 AM
This looks like a java 5 issue. You can use java6 for now. I just tested it again and it works quite well.

darrellmeyer
6 Apr 2009, 1:27 PM
Fixed in SVN.