You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by tv...@apache.org on 2009/05/06 16:21:55 UTC
svn commit: r772272 - in /incubator/pivot/trunk: build.xml
wtk/src/pivot/wtkx/Bindable.java
Author: tvolkert
Date: Wed May 6 14:21:52 2009
New Revision: 772272
URL: http://svn.apache.org/viewvc?rev=772272&view=rev
Log:
Added defaulting of bind id in Bindable#bind(); turned off annotation processing during build until changes are made to the processor
Modified:
incubator/pivot/trunk/build.xml
incubator/pivot/trunk/wtk/src/pivot/wtkx/Bindable.java
Modified: incubator/pivot/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/build.xml?rev=772272&r1=772271&r2=772272&view=diff
==============================================================================
--- incubator/pivot/trunk/build.xml (original)
+++ incubator/pivot/trunk/build.xml Wed May 6 14:21:52 2009
@@ -480,7 +480,7 @@
target="${compiler.target}"
encoding="${compiler.encoding}"
failonerror="true">
- <compilerarg line="-Xlint -processor pivot.wtkx.BindProcessor"/>
+ <!-- <compilerarg line="-Xlint -processor pivot.wtkx.BindProcessor"/> -->
<classpath>
<pathelement location="core/${folder.bin}"/>
<pathelement location="web/${folder.bin}"/>
@@ -540,7 +540,7 @@
target="${compiler.target}"
encoding="${compiler.encoding}"
failonerror="true">
- <compilerarg line="-Xlint -processor pivot.wtkx.BindProcessor"/>
+ <!-- <compilerarg line="-Xlint -processor pivot.wtkx.BindProcessor"/> -->
<classpath>
<pathelement location="core/${folder.bin}"/>
<pathelement location="web/${folder.bin}"/>
Modified: incubator/pivot/trunk/wtk/src/pivot/wtkx/Bindable.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtkx/Bindable.java?rev=772272&r1=772271&r2=772272&view=diff
==============================================================================
--- incubator/pivot/trunk/wtk/src/pivot/wtkx/Bindable.java (original)
+++ incubator/pivot/trunk/wtk/src/pivot/wtkx/Bindable.java Wed May 6 14:21:52 2009
@@ -119,6 +119,10 @@
}
String id = bindAnnotation.id();
+ if ("\0".equals(id)) {
+ id = field.getName();
+ }
+
Object value = wtkxSerializer.getObjectByName(id);
if (value == null) {
throw new BindException("\"" + id + "\" does not exist.");