You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by Jeremias Maerki <de...@jeremias-maerki.ch> on 2009/01/18 19:12:45 UTC

Re: svn commit: r735325 - in /incubator/pdfbox/trunk/src/main: java/org/apache/pdfbox/pdmodel/font/ resources/Resources/

Same here: String.container() is a Java 1.5 method. See FontManager.java.

On 17.01.2009 19:49:41 lehmi wrote:
> Author: lehmi
> Date: Sat Jan 17 10:49:41 2009
> New Revision: 735325
> 
> URL: http://svn.apache.org/viewvc?rev=735325&view=rev
> Log:
> PDFBOX-302: improved font-handling
> 
> Added:
>     incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font/FontManager.java   (with props)
>     incubator/pdfbox/trunk/src/main/resources/Resources/FontMapping.properties   (with props)
> Modified:
>     incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java
>     incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java
> 
<snip/>



Jeremias Maerki


Re: svn commit: r735325 - in /incubator/pdfbox/trunk/src/main: java/org/apache/pdfbox/pdmodel/font/ resources/Resources/

Posted by Andreas Lehmkühler <an...@lehmi.de>.
Obviously it wasn't sufficient to set the java compliance level in
eclipse to 1.4. I've done some more configurations to prevent this kind
of problems in the future.

Sorry for the the inconvenience

Jeremias Maerki schrieb:
> Same here: String.container() is a Java 1.5 method. See FontManager.java.
> 
> On 17.01.2009 19:49:41 lehmi wrote:
>> Author: lehmi
>> Date: Sat Jan 17 10:49:41 2009
>> New Revision: 735325
>>
>> URL: http://svn.apache.org/viewvc?rev=735325&view=rev
>> Log:
>> PDFBOX-302: improved font-handling
>>
>> Added:
>>     incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font/FontManager.java   (with props)
>>     incubator/pdfbox/trunk/src/main/resources/Resources/FontMapping.properties   (with props)
>> Modified:
>>     incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java
>>     incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java
>>
> <snip/>
> 
> 
> 
> Jeremias Maerki
> 
> 


-- 
Auf der Verpackung stand "benötigt Windows 9x/2000/XP oder BESSER", also
habe ich Linux installiert.

Re: svn commit: r735325 - in /incubator/pdfbox/trunk/src/main: java/org/apache/pdfbox/pdmodel/font/ resources/Resources/

Posted by Brian Carrier <ca...@digital-evidence.org>.
On Jan 18, 2009, at 5:12 PM, Jukka Zitting wrote:

> Hi,
>
> On Sun, Jan 18, 2009 at 7:17 PM, Jeremias Maerki <dev@jeremias- 
> maerki.ch> wrote:
>> I wonder: would it be possible to configure Hudson so it compiles  
>> PDFBox
>> with Java 1.4? That would catch things like that sooner.
>
> Done.
>
> I had to set the build to use Java 5 back when it was first set it up
> to avoid failing with some Java 5 constructs there were in the
> codebase back then. Those issues were fixed, but I never got around to
> changing Hudson configuration to use Java 1.4.
>
> Now the build is using Java 1.4, and producing the following errors:

Oops.  I'll change these to .charAt() tomorrow and check them in.

brian


>
>     [javac] /zonestorage/hudson/home/hudson/hudson/jobs/PDFBox- 
> trunk/workspace/trunk/src/main/java/org/apache/pdfbox/util/ 
> ICU4JImpl.java:74:
> cannot resolve symbol
>     [javac] symbol  : method codePointAt (int)
>     [javac] location: class java.lang.String
>     [javac]             if (((a_str.codePointAt(i) >= 0xFB00) &&
> (a_str.codePointAt(i) <= 0xFDFF)) ||
>     [javac]                        ^
>     [javac] /zonestorage/hudson/home/hudson/hudson/jobs/PDFBox- 
> trunk/workspace/trunk/src/main/java/org/apache/pdfbox/util/ 
> ICU4JImpl.java:74:
> cannot resolve symbol
>     [javac] symbol  : method codePointAt (int)
>     [javac] location: class java.lang.String
>     [javac]             if (((a_str.codePointAt(i) >= 0xFB00) &&
> (a_str.codePointAt(i) <= 0xFDFF)) ||
>      
> [javac]                                                            ^
>     [javac] /zonestorage/hudson/home/hudson/hudson/jobs/PDFBox- 
> trunk/workspace/trunk/src/main/java/org/apache/pdfbox/util/ 
> ICU4JImpl.java:75:
> cannot resolve symbol
>     [javac] symbol  : method codePointAt (int)
>     [javac] location: class java.lang.String
>     [javac]                     ((a_str.codePointAt(i) >= 0xFE70) &&
> (a_str.codePointAt(i) <= 0xFEFF)))	{
>     [javac]                            ^
>     [javac] /zonestorage/hudson/home/hudson/hudson/jobs/PDFBox- 
> trunk/workspace/trunk/src/main/java/org/apache/pdfbox/util/ 
> ICU4JImpl.java:75:
> cannot resolve symbol
>     [javac] symbol  : method codePointAt (int)
>     [javac] location: class java.lang.String
>     [javac]                     ((a_str.codePointAt(i) >= 0xFE70) &&
> (a_str.codePointAt(i) <= 0xFEFF)))	{
>
>
> BR,
>
> Jukka Zitting


Re: svn commit: r735325 - in /incubator/pdfbox/trunk/src/main: java/org/apache/pdfbox/pdmodel/font/ resources/Resources/

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On Sun, Jan 18, 2009 at 7:17 PM, Jeremias Maerki <de...@jeremias-maerki.ch> wrote:
> I wonder: would it be possible to configure Hudson so it compiles PDFBox
> with Java 1.4? That would catch things like that sooner.

Done.

I had to set the build to use Java 5 back when it was first set it up
to avoid failing with some Java 5 constructs there were in the
codebase back then. Those issues were fixed, but I never got around to
changing Hudson configuration to use Java 1.4.

Now the build is using Java 1.4, and producing the following errors:

    [javac] /zonestorage/hudson/home/hudson/hudson/jobs/PDFBox-trunk/workspace/trunk/src/main/java/org/apache/pdfbox/util/ICU4JImpl.java:74:
cannot resolve symbol
    [javac] symbol  : method codePointAt (int)
    [javac] location: class java.lang.String
    [javac]             if (((a_str.codePointAt(i) >= 0xFB00) &&
(a_str.codePointAt(i) <= 0xFDFF)) ||
    [javac]                        ^
    [javac] /zonestorage/hudson/home/hudson/hudson/jobs/PDFBox-trunk/workspace/trunk/src/main/java/org/apache/pdfbox/util/ICU4JImpl.java:74:
cannot resolve symbol
    [javac] symbol  : method codePointAt (int)
    [javac] location: class java.lang.String
    [javac]             if (((a_str.codePointAt(i) >= 0xFB00) &&
(a_str.codePointAt(i) <= 0xFDFF)) ||
    [javac]                                                            ^
    [javac] /zonestorage/hudson/home/hudson/hudson/jobs/PDFBox-trunk/workspace/trunk/src/main/java/org/apache/pdfbox/util/ICU4JImpl.java:75:
cannot resolve symbol
    [javac] symbol  : method codePointAt (int)
    [javac] location: class java.lang.String
    [javac]                     ((a_str.codePointAt(i) >= 0xFE70) &&
(a_str.codePointAt(i) <= 0xFEFF)))	{
    [javac]                            ^
    [javac] /zonestorage/hudson/home/hudson/hudson/jobs/PDFBox-trunk/workspace/trunk/src/main/java/org/apache/pdfbox/util/ICU4JImpl.java:75:
cannot resolve symbol
    [javac] symbol  : method codePointAt (int)
    [javac] location: class java.lang.String
    [javac]                     ((a_str.codePointAt(i) >= 0xFE70) &&
(a_str.codePointAt(i) <= 0xFEFF)))	{


BR,

Jukka Zitting

Re: svn commit: r735325 - in /incubator/pdfbox/trunk/src/main: java/org/apache/pdfbox/pdmodel/font/ resources/Resources/

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
I wonder: would it be possible to configure Hudson so it compiles PDFBox
with Java 1.4? That would catch things like that sooner.

On 18.01.2009 19:12:45 Jeremias Maerki wrote:
> Same here: String.container() is a Java 1.5 method. See FontManager.java.
> 
> On 17.01.2009 19:49:41 lehmi wrote:
> > Author: lehmi
> > Date: Sat Jan 17 10:49:41 2009
> > New Revision: 735325
> > 
> > URL: http://svn.apache.org/viewvc?rev=735325&view=rev
> > Log:
> > PDFBOX-302: improved font-handling
> > 
> > Added:
> >     incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font/FontManager.java   (with props)
> >     incubator/pdfbox/trunk/src/main/resources/Resources/FontMapping.properties   (with props)
> > Modified:
> >     incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java
> >     incubator/pdfbox/trunk/src/main/java/org/apache/pdfbox/pdmodel/font/PDType1Font.java
> > 
> <snip/>
> 
> 
> 
> Jeremias Maerki




Jeremias Maerki