See the attached fo file. No resolved Knuth element is generated for the border-after set on the block. It is when removing the forced break. Looks like SpaceResolver is doing something wrong somewhere. Opening a bug as I don't have time to look at this right now.
Created attachment 21166 [details] FO file showing the problem. The border-after isn't rendered as well.
Created attachment 21167 [details] Another example. This time the border is painted fine but the element list is still incorrect
I'm working on this one. Actually, the resolved Knuth elements for border-after were generated, but later removed again because of a missing trailing auxiliary box for the break-after case. That part was easy, but now I'm looking at a little more complex cases and realize there's a somewhat bigger problem with the way forced break handling is done. While debugging I stumbled over Bug #40230 (illegal page production after a break-after with no content following) which is somewhat related to this issue. I'll try to find a way to handle both issues at once.
Should be fixed by: http://svn.apache.org/viewvc?rev=598558&view=rev
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed