Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112600 - freemind fails to compile with java 1.5 use
Summary: freemind fails to compile with java 1.5 use
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-15 05:15 UTC by Micha Riser
Modified: 2005-11-15 06:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Micha Riser 2005-11-15 05:15:14 UTC
Freemind sources use the java-5 keyword 'enum' in its sources as identifier. 

Example compile error:
[javac] (try -source 1.4 or lower to use 'enum' as an identifier)
    [javac]         Enumeration enum = this.entities.keys();
    [javac]                     ^
    [javac]
/var/tmp/portage/freemind-0.7.1-r1/work/freemind/freemind/main/XMLElement.java:484:
as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
    [javac]         while (enum.hasMoreElements()) {
    [javac]                ^
    [javac] /var/tmp/portage/freemind-0.7.1-r1/work/freemind/freemind/main/XMLE

Reproducible: Always
Steps to Reproduce:
1. install java-5 as default jdk
2. emerge freemind
3.

Actual Results:  
Gives compile error.

Expected Results:  
Should compile.

Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6,
glibc-2.3.4.20041102-r1, 2.6.9-gentoo-r13 i686)
=================================================================
System uname: 2.6.9-gentoo-r13 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.4.16
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.2.3-r6, 2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -mcpu=pentium4 -ftracer -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -mcpu=pentium4 -ftracer -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/
http://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acl alsa apm arts audiofile avi berkdb bitmap-fonts bonobo
bzip2 cdparanoia cdr cjk crypt cups curl doc dvd eds emboss encode esd exif
expat fam ffmpeg flac foomaticdb fortran gd gdbm ggi gif glut gnome gphoto2 gpm
gstreamer gtk gtk2 gtkhtml guile idn imagemagick imlib ipv6 java jpeg junit kde
kdeenablefinal lcms ldap libg++ libwww mad mailwrapper mikmod mng motif
moznocompose moznoirc moznomail mp3 mpeg ncurses nls nptl ogg oggvorbis openal
opengl oss pam pcmcia pcre pdflib perl pic png pnp povray python qt quicktime
readline recode samba sdl slang speex spell sse ssl svga tcltk tcpd tetex tiff
truetype truetype-fonts type1-fonts unicode usb vorbis xine xml xml2 xmms xv
xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-11-15 05:17:09 UTC
That's why 1.5 is package.masked ;p
Comment 2 Micha Riser 2005-11-15 06:09:19 UTC
Yes I know that it's masked. But isn't it possible to add the -source 1.4 flag
for the compilation of freemind such that it would succeed even with java-5.
Would be one trouble-package less for java-5.. sometimes you will want to
unmasked it.