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 2009/03/31 16:41:14 UTC

DO NOT REPLY [Bug 46945] New: Eclipse won't comple BiffViewer

https://issues.apache.org/bugzilla/show_bug.cgi?id=46945

           Summary: Eclipse won't comple BiffViewer
           Product: POI
           Version: 3.5-dev
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: axel.roeslein@googlemail.com


Eclipse complains about 70 ambiguous types and refuses to compile BiffViewer.

$ svn status -v src/java/org/apache/poi/hssf/dev/BiffViewer.java
           760389   722401 josh        
src/java/org/apache/poi/hssf/dev/BiffViewer.java

example error message

line #111
The type AreaFormatRecord is ambiguous

suggested solutions by Eclipse:
either explicetely import 'org.apache.poi.hssf.record.AreaFormatRecord'
or 'org.apache.poi.hssf.record.chart.AreaFormatRecord'

I fear that taking the Eclipse warning off results in unreliable execution.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 46945] Eclipse won't comple BiffViewer

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


David Fisher <df...@jmlafferty.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |WORKSFORME




--- Comment #3 from David Fisher <df...@jmlafferty.com>  2009-03-31 08:49:23 PST ---
Try taking out this:

path="src/contrib/poi-ruby/poi-2.0-final-20040126.jar"

That is another copy of poi. A very old one.

If Ruby support is important for you we should start a discussion on the poi
dev email list. As it looks like the Ruby contribution we have is missing
necessary glue.

Regards,
Dave

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 46945] Eclipse won't comple BiffViewer

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


Axel Rose <ax...@googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |




--- Comment #2 from Axel Rose <ax...@googlemail.com>  2009-03-31 08:26:35 PST ---
I cannot get around this.

POI is the only project open in Eclipse.
My .classpath looks like this:

<classpath>
        <classpathentry kind="src" path="build/ooxml-xsds/srcgen"/>
        <classpathentry kind="src" path="src/contrib/poi-ruby/java"/>
        <classpathentry kind="src" path="src/contrib/src"/>
        <classpathentry kind="src" path="src/examples/src"/>
        <classpathentry kind="src" path="src/java"/>
        <classpathentry kind="src" path="src/ooxml/interfaces-jdk15"/>
        <classpathentry kind="src" path="src/ooxml/java"/>
        <classpathentry kind="src" path="src/ooxml/testcases"/>
        <classpathentry kind="src" path="src/scratchpad/examples/src"/>
        <classpathentry kind="src" path="src/scratchpad/src"/>
        <classpathentry kind="src" path="src/scratchpad/testcases"/>
        <classpathentry kind="src" path="src/testcases"/>
        <classpathentry kind="lib" path="lib/commons-logging-1.1.jar"/>
        <classpathentry kind="lib" path="lib/junit-3.8.1.jar"/>
        <classpathentry kind="lib" path="lib/log4j-1.2.13.jar"/>
        <classpathentry kind="lib" path="ooxml-lib/dom4j-1.6.1.jar"/>
        <classpathentry kind="lib"
path="ooxml-lib/geronimo-stax-api_1.0_spec-1.0.jar"/>
        <classpathentry kind="lib" path="ooxml-lib/jsr173_1.0_api.jar"/>
        <classpathentry kind="lib" path="ooxml-lib/ooxml-schemas-1.0.jar"/>
        <classpathentry kind="lib" path="ooxml-lib/ooxml-schemas.jar"/>
        <classpathentry kind="lib" path="ooxml-lib/openxml4j-1.0-beta.jar"/>
        <classpathentry kind="lib" path="ooxml-lib/xmlbeans-2.3.0.jar"/>
        <classpathentry kind="lib"
path="src/contrib/poi-ruby/poi-2.0-final-20040126.jar"/>
        <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
        <classpathentry kind="output" path="src/java"/>
</classpath>


This is what Eclipse sets up when importing a fresh svn tree.

OTOH I agree with Eclipse about the error.
BiffViewer uses
import org.apache.poi.hssf.record.*;

and references the type "AreaFormatRecord"

So I guess the import must be more explicit. AreaFormatRecord can be used
from anywhere within org.apache.poi.hssf.record, currently two places.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 46945] Eclipse won't comple BiffViewer

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


Nick Burch <ni...@torchbox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




--- Comment #1 from Nick Burch <ni...@torchbox.com>  2009-03-31 07:45:26 PST ---
Eclipse compiles all of poi just fine for me

I suspect you've got two versions of poi on your eclipse path or something like
that, and it's getting confused between the old and new versions. You'll need
to just have one, consistent copy of poi

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 46945] Eclipse won't comple BiffViewer

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


Axel Rose <ax...@googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WORKSFORME                  |REMIND




--- Comment #4 from Axel Rose <ax...@googlemail.com>  2009-03-31 09:27:11 PST ---
Thanks, resolved by removing the jar used by poi-ruby

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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