-
25 Oct 2011 11:57 PM #1
[GXT 2.2.5] Compilation issue with jdk 1.5
[GXT 2.2.5] Compilation issue with jdk 1.5
Hi
I try to compile https://code.extjs.com/svn/gxt/releases/2.2 with sun jdk1.5.0_22.
I have 2 errors:
compile:
[mkdir] Created dir: D:\java\workspace\dev\gxt-2.2\build\bin
[javac] Compiling 599 source files to D:\java\workspace\dev\gxt-2.2\build\bin
[javac] D:\java\workspace\dev\gxt-2.2\build\source\user\src\com\extjs\gxt\ui\client\widget\layout\ToolBarLayout.java:142: java.lang.Object cannot be dereferenced
[javac] item.setText(sb.getData("gxt-menutext").toString());
[javac] ^
[javac] D:\java\workspace\dev\gxt-2.2\build\source\user\src\com\extjs\gxt\ui\client\widget\layout\ToolBarLayout.java:165: java.lang.Object cannot be dereferenced
[javac] item.setText(b.getData("gxt-menutext").toString());
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 2 errors
Can you replace
item.setText(sb.getData("gxt-menutext").toString())
by
item.setText(((Object)sb.getData("gxt-menutext")).toString())
in file user\src\com\extjs\gxt\ui\client\widget\layout\ToolBarLayout.java
thank you
-
2 Nov 2011 12:06 PM #2
Without looking at your specific problem, this link might be of interest to you...
http://java.dzone.com/articles/jvm-5-new-ie-6
In summary, it basically says you can still compile to java 1.5 style code, but it doesn't mean you have to use a Java5 JDK, or Java5 JVM. Java6 has been out for a wee while
and has had a bug fix or two over time.. along with some serious performance improvements. Though this is of course assuming your not bound to having to use an ancient JDK.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote