poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55904] [PATCH] Cell getHyperlink returns null when the link is drag copied in excel
Date Sat, 12 Mar 2016 21:11:51 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=55904

Dominik Stadler <dominik.stadler@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Cell getHyperlink returns   |[PATCH] Cell getHyperlink
                   |null when the link is drag  |returns null when the link
                   |copied in excel             |is drag copied in excel
           Keywords|                            |PatchAvailable
             Status|NEW                         |NEEDINFO

--- Comment #6 from Dominik Stadler <dominik.stadler@gmx.at> ---
I get failures when I try to run the unit-tests with the patch applied, can you
take a look?


java.lang.NumberFormatException: For input string: "3:D4"

    at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:580)
    at java.lang.Integer.parseInt(Integer.java:615)
    at org.apache.poi.ss.util.CellReference.<init>(CellReference.java:123)
    at
org.apache.poi.xssf.usermodel.XSSFHyperlink.buildCellReference(XSSFHyperlink.java:266)
    at
org.apache.poi.xssf.usermodel.XSSFHyperlink.getFirstRow(XSSFHyperlink.java:298)
    at
org.apache.poi.xssf.usermodel.TestXSSFHyperlink.testGetHyperlink(TestXSSFHyperlink.java:329)

And 

org.junit.ComparisonFailure: 
Expected :B3:D4
Actual   :B3

    at org.junit.Assert.assertEquals(Assert.java:115)
    at org.junit.Assert.assertEquals(Assert.java:144)
    at
org.apache.poi.xssf.usermodel.TestXSSFHyperlink.doChecks(TestXSSFHyperlink.java:441)
    at
org.apache.poi.xssf.usermodel.TestXSSFHyperlink.testCreateMuliCellHyperlink4(TestXSSFHyperlink.java:429)


and

java.lang.AssertionError: Atteso hyperlink in (2,1)

    at org.junit.Assert.fail(Assert.java:88)
    at org.junit.Assert.assertTrue(Assert.java:41)
    at org.junit.Assert.assertNotNull(Assert.java:712)
    at
org.apache.poi.xssf.usermodel.TestXSSFHyperlink.doChecks(TestXSSFHyperlink.java:439)
    at
org.apache.poi.xssf.usermodel.TestXSSFHyperlink.testCreateMuliCellHyperlink1(TestXSSFHyperlink.java:399)

-- 
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


Mime
View raw message