You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by ac...@apache.org on 2007/03/02 03:53:07 UTC

svn commit: r513604 - /jakarta/poi/trunk/src/java/org/apache/poi/hssf/record/formula/AreaNPtg.java

Author: acoliver
Date: Thu Mar  1 18:53:06 2007
New Revision: 513604

URL: http://svn.apache.org/viewvc?view=rev&rev=513604
Log:
Allow user defined named ranges.  Calling super doesn't seem to break anything and throwing the 
exception prevents writing rationale files with user defined named ranges...  Open to discussion
if anyone knows why we're being so fickle here...

Modified:
    jakarta/poi/trunk/src/java/org/apache/poi/hssf/record/formula/AreaNPtg.java

Modified: jakarta/poi/trunk/src/java/org/apache/poi/hssf/record/formula/AreaNPtg.java
URL: http://svn.apache.org/viewvc/jakarta/poi/trunk/src/java/org/apache/poi/hssf/record/formula/AreaNPtg.java?view=diff&rev=513604&r1=513603&r2=513604
==============================================================================
--- jakarta/poi/trunk/src/java/org/apache/poi/hssf/record/formula/AreaNPtg.java (original)
+++ jakarta/poi/trunk/src/java/org/apache/poi/hssf/record/formula/AreaNPtg.java Thu Mar  1 18:53:06 2007
@@ -51,7 +51,10 @@
   }
 
   public void writeBytes(byte [] array, int offset) {
-    throw new RuntimeException("Coding Error: This method should never be called. This ptg should be converted");
+    super.writeBytes(array,offset);
+    //this should be a warning...there doesn't seem to be any rationale to throwing an exception here...
+    //this excpeiton appears to break user defined named ranges...
+    //throw new RuntimeException("Coding Error: This method should never be called. This ptg should be converted");
   }
 
   public String getAreaPtgName() {



---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/