You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Stefan Seelmann <se...@apache.org> on 2007/12/09 12:02:24 UTC

[ApacheDS] Compile problem due to Java6 methods

Hi all,

I tried to build the big-bang branch, but I get the following compile error:


------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

/home/stefan/Documents/Apache/svn/apacheds/branches/bigbang-with-dependencies/shared/ldap/src/main/java/org/apache/directory/shared/ldap/entry/BinaryValue.java:[134,33]
cannot find symbol
symbol  : method copyOf(byte[],int)
location: class java.util.Arrays

/home/stefan/Documents/Apache/svn/apacheds/branches/bigbang-with-dependencies/shared/ldap/src/main/java/org/apache/directory/shared/ldap/entry/BinaryValue.java:[154,35]
cannot find symbol
symbol  : method copyOf(byte[],int)
location: class java.util.Arrays


I use Java 1.5.0_12. The java.util.Arrays#copyOf methods exists not
until Java6. I guess this happend by an oversight. Or do we use Java6
for the next ApacheDS release?

Regards,
Stefan


Re: [ApacheDS] Compile problem due to Java6 methods

Posted by Alex Karasulu <ak...@apache.org>.
I just discovered this nice little method thanks to Emmanuel.  Ok bye bye
Arrays.copyOf().

Alex

On Dec 9, 2007 8:42 AM, Emmanuel Lecharny <el...@gmail.com> wrote:

> Damn !!!!
>
>
> This is my fault ...
>
> I will fix it asap
>
> On Dec 9, 2007 12:02 PM, Stefan Seelmann <se...@apache.org> wrote:
> > Hi all,
> >
> > I tried to build the big-bang branch, but I get the following compile
> error:
> >
> >
> > ------------------------------------------------------------------------
> > [ERROR] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Compilation failure
> >
> >
> /home/stefan/Documents/Apache/svn/apacheds/branches/bigbang-with-dependencies/shared/ldap/src/main/java/org/apache/directory/shared/ldap/entry/BinaryValue.java:[134,33]
> > cannot find symbol
> > symbol  : method copyOf(byte[],int)
> > location: class java.util.Arrays
> >
> >
> /home/stefan/Documents/Apache/svn/apacheds/branches/bigbang-with-dependencies/shared/ldap/src/main/java/org/apache/directory/shared/ldap/entry/BinaryValue.java:[154,35]
> > cannot find symbol
> > symbol  : method copyOf(byte[],int)
> > location: class java.util.Arrays
> >
> >
> > I use Java 1.5.0_12. The java.util.Arrays#copyOf methods exists not
> > until Java6. I guess this happend by an oversight. Or do we use Java6
> > for the next ApacheDS release?
> >
> > Regards,
> > Stefan
> >
> >
>
>
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>

Re: [ApacheDS] Compile problem due to Java6 methods

Posted by Emmanuel Lecharny <el...@gmail.com>.
Damn !!!!


This is my fault ...

I will fix it asap

On Dec 9, 2007 12:02 PM, Stefan Seelmann <se...@apache.org> wrote:
> Hi all,
>
> I tried to build the big-bang branch, but I get the following compile error:
>
>
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> /home/stefan/Documents/Apache/svn/apacheds/branches/bigbang-with-dependencies/shared/ldap/src/main/java/org/apache/directory/shared/ldap/entry/BinaryValue.java:[134,33]
> cannot find symbol
> symbol  : method copyOf(byte[],int)
> location: class java.util.Arrays
>
> /home/stefan/Documents/Apache/svn/apacheds/branches/bigbang-with-dependencies/shared/ldap/src/main/java/org/apache/directory/shared/ldap/entry/BinaryValue.java:[154,35]
> cannot find symbol
> symbol  : method copyOf(byte[],int)
> location: class java.util.Arrays
>
>
> I use Java 1.5.0_12. The java.util.Arrays#copyOf methods exists not
> until Java6. I guess this happend by an oversight. Or do we use Java6
> for the next ApacheDS release?
>
> Regards,
> Stefan
>
>



-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com