Bug 44791 - allow running 'make check' with openjdk7
Summary: allow running 'make check' with openjdk7
Status: RESOLVED MOVED
Alias: None
Product: dbus
Classification: Unclassified
Component: java (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Matthew Johnson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-14 18:23 UTC by Omair Majid
Modified: 2018-10-12 21:01 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
patch to force utf8 encoding (339 bytes, text/x-csrc)
2012-01-14 18:23 UTC, Omair Majid
Details

Description Omair Majid 2012-01-14 18:23:59 UTC
Created attachment 55591 [details]
patch to force utf8 encoding

The attached (rather trivial patch) allows 'make check' to work with openjdk7.

OpenJDK assumes that all characters in a file are in the platform native encoding (whatever that is). If the bytes are unmappable to valid characters, previous versions of OpenJDK would just print a warning but OpenJDK 7 treats it as an error.

On my builds, the error looks like this:
make check JARPREFIX=/usr/share/java/dbus-java BINPREFIX=/usr/bin MANPREFIX=/usr/share/man/man1 DOCPREFIX=/usr/share/doc/dbus-java JAVADOCPREFIX=/usr/share/javadoc/dbus-java JAVAUNIXLIBDIR=/usr/lib/libmatthew-java JAVAUNIXJARDIR=/usr/lib/libmatthew-java
mkdir -p classes
javac -cp classes:/usr/lib/libmatthew-java/debug-disable.jar:/usr/lib/libmatthew-java/hexdump.jar: -d classes -Xlint:all -O -g:none org/freedesktop/dbus/test/*.java
org/freedesktop/dbus/test/cross_test_client.java:353: error: unmappable character for encoding ASCII
      test(DBus.Binding.Tests.class, tests, "IdentityString", "????????????????????? - ????????????", "????????????????????? - ????????????");

The attached patch forces utf8 encoding for all java files and allows 'make check' to compile java files containing utf8 characters properly.
Comment 1 GitLab Migration User 2018-10-12 21:01:45 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/dbus/dbus-java/issues/1.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.