Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71692 - ganttproject 1.10 java 1.5 ebuild error
Summary: ganttproject 1.10 java 1.5 ebuild error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-18 12:46 UTC by Alex Valentine
Modified: 2005-01-23 06:07 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 Alex Valentine 2004-11-18 12:46:17 UTC
[javac]        ^
    [javac] /var/tmp/portage/ganttproject-1.10.1/work/ganttproject-1.10.1/src/net/sourceforge/ganttproject/gui/projectwizard/I18N.java:19: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    [javac] cast to java.lang.Object for a varargs call
    [javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
    [javac]         return MessageFormat.format("<html><body><h3>{0}</h3><ul>", new String[] {roleSetName});
    [javac]              ^
    [javac] /var/tmp/portage/ganttproject-1.10.1/work/ganttproject-1.10.1/src/net/sourceforge/ganttproject/gui/projectwizard/I18N.java:27: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    [javac] cast to java.lang.Object for a varargs call
    [javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
    [javac]         return MessageFormat.format("<li>{0}</li>", new String[] {role.getName()});
    [javac]                                                                  ^
    [javac] Note: * uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error
    [javac] 11 warnings

BUILD FAILED
/var/tmp/portage/ganttproject-1.10.1/work/ganttproject-1.10.1/build.xml:165: Compile failed; see the compiler error output for details.

Total time: 32 seconds

!!! ERROR: app-office/ganttproject-1.10.1 failed.
!!! Function src_compile, Line 22, Exitcode 1
!!! Failed building classes
!!! If you need support, post the topmost build error, NOT this status message.

Reproducible: Always
Steps to Reproduce:
1. Set Java 1.5 as the system jvm
2. emerge ganttproject
3. boom!

Actual Results:  
Build failed because the package uses a depreciated api

Expected Results:  
Ganntproject compiled and installed

The quick and dirty fix would be to have the javac option -source 1.4.
Comment 1 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-23 06:07:37 UTC
closing this one because all 'not working with jdk 1.5' are now tracked in #79206:

http://bugs.gentoo.org/show_bug.cgi?id=79206