[ 
http://issues.apache.org/jira/browse/BEEHIVE-413?page=comments#action_64009 ]
     
Kenneth Tam commented on BEEHIVE-413:
-------------------------------------

My first reactions upon initial analysis of what's going on here:

1) Note that diagnostics are _warnings_, all the relevant class files are 
produced.  Ie, WEB-INF/classes/shared/SharedFlow.class is built, and so is 
WEB-INF/classes/Controller.class (which is one that is emitting the "package 
shared does not exist" msgs.

This suggests to me that there's some kind of ordering problem in processing 
the source files.

2) It sounds like there's quite a, dare I say, "project model" associated with 
where to put pageflow code.  It seems to me we would be better served by 
keeping AptTask as generic as possible (aim it at a dir, and it builds the code 
underneath), without knowing things about WEB-INF and WEB-INF/src etc (ie, it 
should be project model agnostic).

More thoughts as I dig in..


> build failure resolving shared flow from jpf with a control
> -----------------------------------------------------------
>
>          Key: BEEHIVE-413
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-413
>      Project: Beehive
>         Type: Bug
>   Components: Controls
>     Versions: V1Beta
>     Reporter: Eddie O'Neil
>     Assignee: Kenneth Tam
>      Fix For: V1
>  Attachments: sfReproWeb.zip
>
> There seems to be a problem compiling a JPF with a public control bean field 
> that references a shared flow.  The build output is below.
> The control is declared as:
>     @Control
>     public pkg.HelloBean myHello;
> and if you switch the "public" to "private" the build works fine.
> Repro will be attached shortly.
>   
>       [apt] warning: Annotation types without processors: 
> [org.apache.beehive.netui.pageflow.annotat
> ions.Jpf.Catch]
>       [apt] 1 warning
>       [apt] 
> D:\dev\apache\beehive\trunk\netui\tmp\sfReproWeb\web\WEB-INF\.tmpbeansrc\Controller.java
> :22: package shared does not exist
>       [apt]     private shared.SharedFlow sharedFlow;
>       [apt]                   ^
>       [apt] 
> D:\dev\apache\beehive\trunk\netui\tmp\sfReproWeb\web\WEB-INF\.tmpbeansrc\Controller.java
> :15: package shared does not exist
>       [apt]         @Jpf.SharedFlowRef(name="shared", 
> type=shared.SharedFlow.class)
>       [apt]                                                      ^
>       [apt] Note: 
> D:\dev\apache\beehive\trunk\netui\tmp\sfReproWeb\web\WEB-INF\.tmpbeansrc\pkg\Hello
> Bean.java uses unchecked or unsafe operations.
>       [apt] Note: Recompile with -Xlint:unchecked for details.
>      [echo] Copy all .properties files
>      [echo] Copy all .xml files
>      [copy] Copying 1 file to 
> D:\dev\apache\beehive\trunk\netui\tmp\sfReproWeb\web\WEB-INF\classes

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to