Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenOffice 1.3 & Java 1.4 Borked?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
marvlush
n00b
n00b


Joined: 18 Apr 2003
Posts: 7

PostPosted: Mon May 19, 2003 7:39 pm    Post subject: OpenOffice 1.3 & Java 1.4 Borked? Reply with quote

While trying to emerge OpenOffice 1.3 using Java 1.4 (tried with both Blackdown and Sun), ebuild fails as such:

Code:

db/VectorBtree.java:277: warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
  public static void assert(boolean assertion) {
                     ^
db/VectorBtree.java:352: warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
                assert(stack.size() == 0);
                ^
util/ExtensibleURLStreamHandlerFactory.java:82: unreachable statement
            return (URLStreamHandler)handlerClass.newInstance();;
                                                                ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
1 error
3 warnings
dmake:  Error code 1, while making '../../../../unxlngi4.pro/misc/com_sun_xmlsearch_dummy.java'
---* TG_SLO.MK *---
 
ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-1.0.3/work/oo_1.0.3_src/XmlSearch/src/com/sun/xmlsearch
 
!!! ERROR: app-office/openoffice-1.0.3 failed.
!!! Function src_compile, Line 487, Exitcode 1
!!! Build failed!



So it seems the word 'assert' cant be usd as an identifier as it is now a keyword, yet assert appears in OO's code.

1.Since OO 1.3 and Java 1.4 are the default install (ie: i did not unmask anything) on Gentoo, is this then considered a bug???

2.Can someone please confirm they have the same bug???

3.Has anyone dared to replace 'assert' in the code with something like 'assert_foo' or something?
Back to top
View user's profile Send private message
roderickvd
n00b
n00b


Joined: 25 Aug 2002
Posts: 46
Location: University of Twente

PostPosted: Mon May 19, 2003 9:54 pm    Post subject: Reply with quote

assert has become a reserved keyword in JDK 1.4. OpenOffice will currently only build on Blackdown's 1.3.1 JDK (not 1.4.x or the Sun JDK)! So yeah, it kind of is a bug.

Replacing assert with assert_foo would probably work, although it would not circumvene the Blackdown dependancy.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum