Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 106205

Summary: openoffice-1.1.5 has wrong java dependency
Product: Gentoo Linux Reporter: Morten Cools <morten>
Component: Current packagesAssignee: Gentoo Office Team <office>
Status: RESOLVED DUPLICATE    
Severity: normal CC: axxo
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Morten Cools 2005-09-16 11:21:20 UTC
When building openoffice-1.1.5, the build fails with the following error:

ClassContextImpl.java:307: as of release 1.5, 'enum' is a keyword, and may not
be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
                    java.util.Enumeration enum = m_class_path_jars.elements();
                                          ^
ClassContextImpl.java:308: as of release 1.5, 'enum' is a keyword, and may not
be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
                    while (enum.hasMoreElements())
                           ^
ClassContextImpl.java:310: as of release 1.5, 'enum' is a keyword, and may not
be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
                        ClassContext context = (ClassContext)enum.nextElement();
                                                             ^
In the ebuild, the java dependency is >=jre-1.4.1. Obviously, >1.5 can't be used
without a hack.

Reproducible: Always
Steps to Reproduce:
1.emerge =openoffice-1.1.5
2.
3.
Comment 1 Andreas Proschofsky (RETIRED) gentoo-dev 2005-09-16 14:10:09 UTC
1) Please search before posting new bugs

2) Java 1.5 is package.masked for a reason ;)

*** This bug has been marked as a duplicate of 76270 ***