Skip to main content

Compilation Error

4 replies [Last post]
wjp
Offline
Joined: 2010-01-15

New to JDNC.

Checked out the source (first time). But getting compilation error.

Compiling 48 source files to D:\jdnc\swingx\build\classes
D:\jdnc\swingx\src\java\org\jdesktop\swing\binding\DatePickerBinding.java:43: cannot find symbol
symbol : method getCalendar()
location: class org.jdesktop.swing.JXDatePicker
return picker.getCalendar();
D:\jdnc\swingx\src\java\org\jdesktop\swing\binding\DatePickerBinding.java:55: cannot find symbol
symbol : method setCalendar(java.util.Calendar)
location: class org.jdesktop.swing.JXDatePicker
picker.setCalendar((Calendar)value);

Looked at the source and there are no such method at JXDatePicker.java

Am I missing something?

- Winston

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
wjprakash
Offline
Joined: 2003-06-10

OK. It is my mistake. I've used JDK 1.5.x instead of JDK 1.4.x. Thanks to Ramesh for pointing this out.

- Winston

rameshgupta
Offline
Joined: 2004-06-04

> New to JDNC.
>
> Checked out the source (first time). But getting
> compilation error.
>

> - Winston

Seems like we both caught the problem at about the same time! I just checked in a patched up version of JXDatePicker that will make the compilation error go away. The person who owns this class is away at the moment, but I'm sure he'll fix it as soon as he gets this message. In the meantime, the rest of the JDNC project should still be usable.

Sorry for the confusion.

Ramesh

wjprakash
Offline
Joined: 2003-06-10

After your patch, I could compile the module jdnc/swing. Now I get another compilation error in module jdnc\jdnc_markup.

BTW, I haven't touched any of the code.

-compile:
[javac] Compiling 71 source files to D:\jdnc\jdnc_markup\build\classes
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\ActionEle
ment.java:31: org.jdesktop.jdnc.markup.elem.ActionElement is not abstract and do
es not override abstract method setIdAttributeNode(org.w3c.dom.Attr,boolean) in
org.w3c.dom.Element
[javac] public class ActionElement
[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\ActionPan
elElement.java:36: org.jdesktop.jdnc.markup.elem.ActionPanelElement is not abstr
act and does not override abstract method setIdAttributeNode(org.w3c.dom.Attr,bo
olean) in org.w3c.dom.Element
[javac] public class ActionPanelElement extends ElementProxy {
[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\Highlight
erElement.java:24: org.jdesktop.jdnc.markup.elem.HighlighterElement is not abstr
act and does not override abstract method setIdAttributeNode(org.w3c.dom.Attr,bo
olean) in org.w3c.dom.Element
[javac] public class HighlighterElement extends ElementProxy {
[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\AppElemen
t.java:32: org.jdesktop.jdnc.markup.elem.AppElement is not abstract and does not
override abstract method setIdAttributeNode(org.w3c.dom.Attr,boolean) in org.w3
c.dom.Element
[javac] public class AppElement extends ElementProxy {
[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\Component
Element.java:34: org.jdesktop.jdnc.markup.elem.ComponentElement is not abstract
and does not override abstract method setIdAttributeNode(org.w3c.dom.Attr,boolea
n) in org.w3c.dom.Element
[javac] public class ComponentElement extends ElementProxy {
[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\DataEleme
nt.java:41: org.jdesktop.jdnc.markup.elem.DataElement is not abstract and does n
ot override abstract method setIdAttributeNode(org.w3c.dom.Attr,boolean) in org.
w3c.dom.Element
[javac] public class DataElement extends ElementProxy {
[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\DataField
Element.java:39: org.jdesktop.jdnc.markup.elem.DataFieldElement is not abstract
and does not override abstract method setIdAttributeNode(org.w3c.dom.Attr,boolea
n) in org.w3c.dom.Element
[javac] public class DataFieldElement extends ElementProxy {
[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\DataField
EnumerationElement.java:30: org.jdesktop.jdnc.markup.elem.DataFieldEnumerationEl
ement is not abstract and does not override abstract method setIdAttributeNode(o
rg.w3c.dom.Attr,boolean) in org.w3c.dom.Element
[javac] public class DataFieldEnumerationElement extends ElementProxy {
[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\DataField
EnumerationValueElement.java:37: org.jdesktop.jdnc.markup.elem.DataFieldEnumerat
ionValueElement is not abstract and does not override abstract method setIdAttri
buteNode(org.w3c.dom.Attr,boolean) in org.w3c.dom.Element
[javac] public class DataFieldEnumerationValueElement extends ElementProxy {

[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\DefaultEl
ement.java:18: org.jdesktop.jdnc.markup.elem.DefaultElement is not abstract and
does not override abstract method setIdAttributeNode(org.w3c.dom.Attr,boolean) i
n org.w3c.dom.Element
[javac] public class DefaultElement extends ElementProxy {
[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\Enumerati
onValuesElement.java:27: org.jdesktop.jdnc.markup.elem.EnumerationValuesElement
is not abstract and does not override abstract method setIdAttributeNode(org.w3c
.dom.Attr,boolean) in org.w3c.dom.Element
[javac] public class EnumerationValuesElement extends ElementProxy {
[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\FilterEle
ment.java:31: org.jdesktop.jdnc.markup.elem.FilterElement is not abstract and do
es not override abstract method setIdAttributeNode(org.w3c.dom.Attr,boolean) in
org.w3c.dom.Element
[javac] public class FilterElement extends ElementProxy {
[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\FontEleme
nt.java:29: org.jdesktop.jdnc.markup.elem.FontElement is not abstract and does n
ot override abstract method setIdAttributeNode(org.w3c.dom.Attr,boolean) in org.
w3c.dom.Element
[javac] public class FontElement extends ElementProxy {
[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\FormDataE
lement.java:39: org.jdesktop.jdnc.markup.elem.FormDataElement is not abstract an
d does not override abstract method setIdAttributeNode(org.w3c.dom.Attr,boolean)
in org.w3c.dom.Element
[javac] public class FormDataElement extends ElementProxy {
[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\Hierarchi
calDataElement.java:30: org.jdesktop.jdnc.markup.elem.HierarchicalDataElement is
not abstract and does not override abstract method setIdAttributeNode(org.w3c.d
om.Attr,boolean) in org.w3c.dom.Element
[javac] public class HierarchicalDataElement extends ElementProxy {
[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\MenuBarEl
ement.java:27: org.jdesktop.jdnc.markup.elem.MenuBarElement is not abstract and
does not override abstract method setIdAttributeNode(org.w3c.dom.Attr,boolean) i
n org.w3c.dom.Element
[javac] public class MenuBarElement extends ElementProxy {
[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\MenuEleme
nt.java:37: org.jdesktop.jdnc.markup.elem.MenuElement is not abstract and does n
ot override abstract method setIdAttributeNode(org.w3c.dom.Attr,boolean) in org.
w3c.dom.Element
[javac] public class MenuElement extends ElementProxy {
[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\TableColu
mnElement.java:43: org.jdesktop.jdnc.markup.elem.TableColumnElement is not abstr
act and does not override abstract method setIdAttributeNode(org.w3c.dom.Attr,bo
olean) in org.w3c.dom.Element
[javac] public class TableColumnElement extends ElementProxy {
[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\TableColu
mnHeaderElement.java:29: org.jdesktop.jdnc.markup.elem.TableColumnHeaderElement
is not abstract and does not override abstract method setIdAttributeNode(org.w3c
.dom.Attr,boolean) in org.w3c.dom.Element
[javac] public class TableColumnHeaderElement extends ElementProxy {
[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\TableColu
mnsElement.java:33: org.jdesktop.jdnc.markup.elem.TableColumnsElement is not abs
tract and does not override abstract method setIdAttributeNode(org.w3c.dom.Attr,
boolean) in org.w3c.dom.Element
[javac] public class TableColumnsElement extends ElementProxy {
[javac] ^
[javac] D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\elem\TableHead
erElement.java:29: org.jdesktop.jdnc.markup.elem.TableHeaderElement is not abstr
act and does not override abstract method setIdAttributeNode(org.w3c.dom.Attr,bo
olean) in org.w3c.dom.Element
[javac] public class TableHeaderElement extends ElementProxy {
[javac] ^
[javac] 21 errors

BUILD FAILED
D:\jdnc\make\build.xml:65: The following error occurred while executing this lin
e:
D:\jdnc\jdnc_markup\make\build.xml:-1: Compile failed; see the compiler error ou
tput for details.

Total time: 3 minutes 50 seconds

rameshgupta
Offline
Joined: 2004-06-04

> Now I get another compilation error in
> module jdnc\jdnc_markup.
>
> BTW, I haven't touched any of the code.
>
> [snip]
> D:\jdnc\jdnc_markup\src\java\org\jdesktop\jdnc\markup\
> elem\ActionElement.java:31:
> org.jdesktop.jdnc.markup.elem.ActionElement is not
> abstract and does not override abstract method
> setIdAttributeNode(org.w3c.dom.Attr,boolean) in
> org.w3c.dom.Element
> [snip]

Winston,

The new "errors" you are reporting are actually a result of JAXP using DOM Level 3 interfaces in J2SE 5.0. This is unfortunate because it forces our developers to choose between 1.4.x and 5.0, as the additions and changes to the JAXP api are not backwards compatible and there does not seem to be a good way around this. If you build JDNC with 1.4.x, things should build and run just fine. Most of our developers are not ready to jump to 5.0 yet, it seems.

Ramesh