Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » XMLResource.OPTION_USE_DEPRECATED_METHODS option in EMF Book
XMLResource.OPTION_USE_DEPRECATED_METHODS option in EMF Book [message #431710] Wed, 22 July 2009 13:39 Go to next message
Mariot Chauvin is currently offline Mariot ChauvinFriend
Messages: 174
Registered: July 2009
Senior Member
Hi,

I think I found a small error in the page 495 of EMF Book second
edition. It concerns XMLResource.OPTION_USE_DEPRECATED_METHODS.
The documentation says that default is true, and that we could turn this
option to false to improve deserialization performance. But in the 495
page there is a resource factory implementation example with recommended
options for perfomance, where XMLResource.OPTION_USE_DEPRECATED_METHODS
is set to true.

So is it a mistake or did I miss something ?

BTW the book is great and helpful :)

Best Regards,

Mariot
Re: XMLResource.OPTION_USE_DEPRECATED_METHODS option in EMF Book [message #431745 is a reply to message #431710] Thu, 23 July 2009 15:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Mariot,

Yes, that doesn't sound quite right. I've CC'd Dave...


Mariot Chauvin wrote:
> Hi,
>
> I think I found a small error in the page 495 of EMF Book second
> edition. It concerns XMLResource.OPTION_USE_DEPRECATED_METHODS.
> The documentation says that default is true, and that we could turn
> this option to false to improve deserialization performance. But in
> the 495 page there is a resource factory implementation example with
> recommended options for perfomance, where
> XMLResource.OPTION_USE_DEPRECATED_METHODS is set to true.
>
> So is it a mistake or did I miss something ?
>
> BTW the book is great and helpful :)
>
> Best Regards,
>
> Mariot


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: XMLResource.OPTION_USE_DEPRECATED_METHODS option in EMF Book [message #431818 is a reply to message #431745] Mon, 27 July 2009 18:53 Go to previous message
David Steinberg is currently offline David SteinbergFriend
Messages: 489
Registered: July 2009
Senior Member
Hi Mariot,

Yup, that is an error in the example. It's one of three known errors so
far:

Page 467 (Section 15.3.1). The second paragraph following the output
fragment (beginning with "Notice that we waited") should be deleted
entirely.

Page 495 (Section 15.5). In the example code, the value of
OPTION_USE_DEPRECATED_METHODS should be Boolean.FALSE. Loading
performance is improved by disabling deprecated methods (they're enabled
by default).

Page 561 (Section 18.3). The value in the second row, last column of
Table 18.2 should be "2007-01-01".

Unfortunately, there have been delays with the publisher getting the
Errata posted on the book's Web site. In the mean time, I decided to put
it up on the Eclipse wiki:

http://wiki.eclipse.org/EMF_Book_Errata

Please feel free to add to the list there if you see any other problems.

Thanks,
Dave


Ed Merks wrote:
> Mariot,
>
> Yes, that doesn't sound quite right. I've CC'd Dave...
>
>
> Mariot Chauvin wrote:
>> Hi,
>>
>> I think I found a small error in the page 495 of EMF Book second
>> edition. It concerns XMLResource.OPTION_USE_DEPRECATED_METHODS.
>> The documentation says that default is true, and that we could turn
>> this option to false to improve deserialization performance. But in
>> the 495 page there is a resource factory implementation example with
>> recommended options for perfomance, where
>> XMLResource.OPTION_USE_DEPRECATED_METHODS is set to true.
>>
>> So is it a mistake or did I miss something ?
>>
>> BTW the book is great and helpful :)
>>
>> Best Regards,
>>
>> Mariot
Previous Topic:generating code while refering to a runtime instance of a model
Next Topic:[CDO] FactoryNotFoundException: Factory not found: org.eclipse.net4j.serverProtocols[cdo]
Goto Forum:
  


Current Time: Fri Apr 19 23:23:37 GMT 2024

Powered by FUDForum. Page generated in 0.02921 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top