jruby version 1.5.6-3build1 failed to build with openjdk-7 as default-jdk

Bug #1009461 reported by James Page
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jruby (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

During a rebuild test with default-jdk switched to openjdk-7 (as it is in quantal), a build failure was detected for jruby version 1.5.6-3build1.

See attached log for full build failure details.

https://wiki.ubuntu.com/JavaTeam/Java7Default contains more details of how to diagnose and resolve these types of issues.

This log snippet might also be of interest:

    [javac] /«PKGBUILDDIR»/src/org/jruby/anno/AnnotationBinder.java:438: warning: [deprecation] MethodDeclaration in com.sun.mirror.declaration has been deprecated
    [javac] public void generateMethodAddCalls(MethodDeclaration md, JRubyMethod jrubyMethod) {
    [javac] ^
    [javac] 42 warnings

check-for-optional-java4-packages:

check-for-optional-packages:

compile-jruby:
      [apt] /«PKGBUILDDIR»/build.xml:214: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
      [apt] Since compiler setting isn't classic or modern, ignoring fork setting.
      [apt] Since compiler setting isn't classic or modern, ignoring fork setting.
      [apt] Compiling 963 source files to /«PKGBUILDDIR»/build/classes/jruby
      [apt] Since compiler setting isn't classic or modern, ignoring fork setting.
      [apt]
      [apt] warning: The apt tool and its associated API are planned to be
      [apt] removed in the next major JDK release. These features have been
      [apt] superseded by javac and the standardized annotation processing API,
      [apt] javax.annotation.processing and javax.lang.model. Users are
      [apt] recommended to migrate to the annotation processing features of
      [apt] javac; see the javac man page for more information.
      [apt] warning: [options] bootstrap class path not set in conjunction with -source 1.5
      [apt] warning: Annotation types without processors: java.lang.Override,java.lang.Deprecated,org.jruby.anno.JRubyConstant,java.lang.SuppressWarnings,org.jruby.anno.JRubyModule,java.lang.annotation.Retention,java.lang.annotation.Target,com.kenai.jaffl.annotations.Out,com.kenai.jaffl.annotations.In,com.kenai.jaffl.annotations.Transient
      [apt] 2 warnings
      [apt] warning: [options] bootstrap class path not set in conjunction with -source 1.5
      [apt] /«PKGBUILDDIR»/src/org/jruby/RubyString.java:770: warning: [deprecation] replace(byte[]) in ByteList has been deprecated
      [apt] value.replace(bytes);
      [apt] ^
      [apt] /«PKGBUILDDIR»/src/org/jruby/RubyStruct.java:214: error: reference to warn is ambiguous, both method warn(ID,String,int,String,Object...) in RubyWarnings and method warn(ID,String,Object...) in RubyWarnings match
      [apt] runtime.getWarnings().warn(ID.STRUCT_CONSTANT_REDEFINED, frame.getFile(), frame.getLine(), "redefining constant Struct::" + name, name);
      [apt] ^
      [apt] Note: Some input files use unchecked or unsafe operations.
      [apt] Note: Recompile with -Xlint:unchecked for details.
      [apt] 1 error
      [apt] 2 warnings

BUILD FAILED
/«PKGBUILDDIR»/build.xml:566: The following error occurred while executing this line:
/«PKGBUILDDIR»/build.xml:214: Compile failed; see the compiler error output for details.

Total time: 45 seconds
make: *** [debian/stamp-ant-build] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
────────────────────────────────────────────────────────────────────────────────
Build finished at 20120602-0832

Finished
────────

E: Build failure (dpkg-buildpackage died)

Revision history for this message
James Page (james-page) wrote : Build log
tags: added: amd64 auto ftbfs java7-ftbfs
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package jruby - 1.5.6-3ubuntu1

---------------
jruby (1.5.6-3ubuntu1) quantal; urgency=low

  * Fix FTBFS with openjdk-7 as default-jdk (LP: #1009461):
    - debian/patches/0008-java7-compat.patch: Cherry picked patch
      from upstream VCS to fix compilation failures.
 -- James Page <email address hidden> Mon, 06 Aug 2012 15:37:28 +0100

Changed in jruby (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.