You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2019/03/27 09:59:05 UTC

[Bug 63289] New: org.apache.poi.hpsf.Util poi-4.0.1

https://bz.apache.org/bugzilla/show_bug.cgi?id=63289

            Bug ID: 63289
           Summary: org.apache.poi.hpsf.Util poi-4.0.1
           Product: POI
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HPSF
          Assignee: dev@poi.apache.org
          Reporter: snag@opentext.com
  Target Milestone: ---

Is org.apache.poi.hpsf.Util class been deprecated in poi-4.0.1 ?

I could not find the relevant information in deprecated class listed. hence
raising this query. We were using toString(Throwable t) of Util class of
org.apache.poi.hpsf package.

However after upgrading poi to 4.0.1 I am not finding the class.

Could you please let us know ?

Regards,
Sushmita

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Re: [Bug 63289] New: org.apache.poi.hpsf.Util poi-4.0.1

Posted by "pj.fanning" <fa...@yahoo.com>.
What version are you upgrading from? That org.apache.poi.hpsf.Util class no
longer exists.
I went back nearly 2 years in code history and find no sign of such a class.



--
Sent from: http://apache-poi.1045710.n5.nabble.com/POI-Dev-f2312866.html

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


[Bug 63289] org.apache.poi.hpsf.Util poi-4.0.1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63289

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX
                 OS|                            |All

--- Comment #1 from Dominik Stadler <do...@gmx.at> ---
This was actually changed back in May 2017 via r1795123:

#52117 - Invalid "last printed" summary field value - added helper method to
identify undefined dates HPSF: fixed uid listing in Section.toString() HPSF:
moved timestamp based "utility" methods to Filetime class HPSF: preserve
original datastream for unchanged property sets  


The toString() seems to have been removed, it's probably best if you simply
copy this method to your code-base as there is no Apache POI specific code
contained in that method anyway.

public static String toString(final Throwable t)
    {
        final StringWriter sw = new StringWriter();
        final PrintWriter pw = new PrintWriter(sw);
        t.printStackTrace(pw);
        pw.close();
        try
        {
            sw.close();
            return sw.toString();
        }
        catch (IOException e)
        {
            final StringBuffer b = new StringBuffer(t.getMessage());
            b.append("\n");
            b.append("Could not create a stacktrace. Reason: ");
            b.append(e.getMessage());
            return b.toString();
        }
    }

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org