[Open Office] OO2 Build Failure
Jayant B M
mjayant at novell.com
Thu Sep 22 00:48:20 EDT 2005
Hi Brian,
Great job :)
Java 1.5 introduces second constructor ;)
have a look
http://java.sun.com/j2se/1.5.0/docs/api/java/security/CodeSource.html
Since the second parameter is not used but still for the oldtimes sake
(Java 1.4.x days) and safety, you can typecast the second parameter to
"Certificate[] "
Regards,
Jayant M
On Wed, 2005-09-21 at 20:02 -0700, Brian Thomason wrote:
> Hey guys,
>
> I'm attempting to adapt the Debian/Ubuntu packages to our Linspire
> build, but am building it with a non-free java instead. (j2sdk1.5 from sun)
>
> However, Rhino (I'm not even entirely sure what that is) is failing to
> build. I have attached the error, which appears easily fixed by someone
> who actually knows what they're doing with Java/OO2 (certainly not myself).
>
> Thanks guys,
>
> Brian
> plain text document attachment (oo2build.log)
> compile:
> [javac] Compiling 3 source files to /builds/openoffice2/openoffice.org2-1.9.125/ooo-build/build/src680-m125/rhino/unxlngi4.pro/misc/build/rhino1_5R4/build/classes
> [javac] /builds/openoffice2/openoffice.org2-1.9.125/ooo-build/build/src680-m125/rhino/unxlngi4.pro/misc/build/rhino1_5R4/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java:127: reference to CodeSource is ambiguous, both method CodeSource(java.net.URL,java.security.cert.Certificate[]) in java.security.CodeSource and method CodeSource(java.net.URL,java.security.CodeSigner[]) in java.security.CodeSource match
> [javac] new java.security.CodeSource(null, null);
> [javac] ^
> [javac] /builds/openoffice2/openoffice.org2-1.9.125/ooo-build/build/src680-m125/rhino/unxlngi4.pro/misc/build/rhino1_5R4/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java:170: reference to CodeSource is ambiguous, both method CodeSource(java.net.URL,java.security.cert.Certificate[]) in java.security.CodeSource and method CodeSource(java.net.URL,java.security.CodeSigner[]) in java.security.CodeSource match
> [javac] CodeSource cs = new java.security.CodeSource(url, null);
> [javac] ^
> [javac] Note: Some input files use unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [javac] 2 errors
>
> BUILD FAILED
> /builds/openoffice2/openoffice.org2-1.9.125/ooo-build/build/src680-m125/rhino/unxlngi4.pro/misc/build/rhino1_5R4/build.xml:57: The following error occurred while executing this line:
> /builds/openoffice2/openoffice.org2-1.9.125/ooo-build/build/src680-m125/rhino/unxlngi4.pro/misc/build/rhino1_5R4/toolsrc/build.xml:68: Compile failed; see the compiler error output for details.
>
> Total time: 9 seconds
More information about the Openoffice
mailing list