You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by MY POI <vr...@yahoo.co.in> on 2009/05/22 07:50:48 UTC

Deprecated method


hi

using 3.5 beta version

while using the following code sheet.addMergedRegion( new
Region(0,(short)1,0,(short)2));   

throws below exception

java.lang.NoSuchMethodError:
org.apache.poi.hssf.usermodel.HSSFSheet.addMergedRegion(Lorg/apache/poi/hssf/util/Region;)

The sources are saying addMergedRegion is deprecated by calling Region.

we already developed lot of modules by addMergedRegion by passing Region.

So, changes in all, make little complicated. Any other suggestions please
without changing the code ?


thanks


-- 
View this message in context: http://www.nabble.com/Deprecated-method-tp23664799p23664799.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: Deprecated method

Posted by Josh Micich <jo...@gmail.com>.
NoSuchMethodError has nothing to do with @deprecated.

There has been another change besides the deprecation. You have some
code compiled to call:
 org.apache.poi.hssf.usermodel.HSSFSheet.addMergedRegion(Lorg/apache/poi/hssf/util/Region;)
but the method signature has changed to:
 org.apache.poi.hssf.usermodel.HSSFSheet.addMergedRegion(Lorg/apache/poi/ss/util/Region;)

This is a source-compatible change.  All you need to do is recompile
the source code.

However, you should address the deprecation problem soon because the
old method will not be supported much longer.  The new method is
addMergedRegion(CellRangeAddress).

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org