Bug 37521 - TableColLength throws misleading exception; s/PercentageBaseContext/PercentBaseContext/
Summary: TableColLength throws misleading exception; s/PercentageBaseContext/PercentBa...
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: fo tree (show other bugs)
Version: all
Hardware: Other other
: P2 trivial
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-16 03:20 UTC by Matthew Daniel
Modified: 2012-04-01 06:31 UTC (History)
0 users



Attachments
Corrects (a type-o?) the Exception thrown from getValue (824 bytes, patch)
2005-11-16 03:21 UTC, Matthew Daniel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Daniel 2005-11-16 03:20:33 UTC
Note how the very kind getValue():double tells that the method is deprecated,
but does so such that `grep -rl PercentageBaseContext src` only yields
TableColLength. If TableColLength is modified using the attached patch, the grep
is at least a lot more accurate (even if no further toward solving what's wrong
with RTFHandler).

startColumn: Must call getValue with PercentageBaseContext
java.lang.UnsupportedOperationException: Must call getValue with
PercentageBaseContext
	at org.apache.fop.fo.properties.TableColLength.getValue(TableColLength.java:94)
	at org.apache.fop.render.rtf.RTFHandler.startColumn(RTFHandler.java:490)
	at org.apache.fop.render.rtf.RTFHandler.invokeDeferredEvent(RTFHandler.java:1315)
	at org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1342)
	at org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1364)
	at org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1400)
	at org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1400)
	at org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1358)
	at org.apache.fop.render.rtf.RTFHandler.endPageSequence(RTFHandler.java:208)
	at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:156)
	at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:307)
Comment 1 Matthew Daniel 2005-11-16 03:21:35 UTC
Created attachment 16976 [details]
Corrects (a type-o?) the Exception thrown from getValue
Comment 2 Jeremias Maerki 2005-11-24 16:18:54 UTC
Patch applied. Thanks!
http://svn.apache.org/viewcvs?rev=348751&view=rev
Comment 3 Glenn Adams 2012-04-01 06:31:24 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed