Hi,

On Tue, Jan 19, 2010 at 1:45 PM, Johannes Koch
<[email protected]> wrote:
> Jukka Zitting schrieb:
>> I'm not a big fan of the COSObjectable mechanism as it breaks the
>> layers of abstraction.
>>
>> Is there some other way we could achieve the same functionality?
>
> What is the functionality you want to achieve?

I was referring to your request about PDFBox objects giving access to
the underlying dictionary. Could we rather solve such cases with more
task-specific methods that wouldn't expose the object internals?

An example of the problem such direct access causes are the various
memorized values we've recently added to avoid the performance hit of
repeatedly looking things up from the underlying directory maps. The
correctness of such code depends on the dictionary not being modified
by external code.

Ideally I'd like to see us getting rid of even the COSObjectable
interface for the same reason.

BR,

Jukka Zitting

Reply via email to