SOURCES: cups-java-fix.patch (NEW) - syntax and missing imports

qboosh qboosh at pld-linux.org
Sat Mar 1 16:34:27 CET 2008


Author: qboosh                       Date: Sat Mar  1 15:34:27 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- syntax and missing imports

---- Files affected:
SOURCES:
   cups-java-fix.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/cups-java-fix.patch
diff -u /dev/null SOURCES/cups-java-fix.patch:1.1
--- /dev/null	Sat Mar  1 16:34:27 2008
+++ SOURCES/cups-java-fix.patch	Sat Mar  1 16:34:22 2008
@@ -0,0 +1,29 @@
+--- cups-1.3.6/scripting/java/src/com/easysw/cups/IPPAttribute.java.orig	2008-01-07 20:15:28.000000000 +0100
++++ cups-1.3.6/scripting/java/src/com/easysw/cups/IPPAttribute.java	2008-03-01 15:54:29.368987179 +0100
+@@ -25,6 +25,8 @@
+  * @since	JDK1.3
+  */
+ import java.util.*;
++import java.nio.charset.Charset;
++import java.nio.ByteBuffer;
+ 
+ public class IPPAttribute
+ {
+@@ -263,7 +265,7 @@
+   {
+     IPPValue val;
+     int      bytes = 0;          // Start with one for the group tag.
+-    Charset  utf8 = Charset::forName("UTF-8");
++    Charset  utf8 = Charset.forName("UTF-8");
+     ByteBuffer temp;
+ 
+     //
+@@ -369,7 +371,7 @@
+     int    i,j, n;
+     int    bi    = 0;          // Start with one for the group tag.
+     byte[] bytes = new byte[sz];
+-    Charset  utf8 = Charset::forName("UTF-8");
++    Charset  utf8 = Charset.forName("UTF-8");
+     ByteBuffer temp;
+ 
+     if (group_tag != last_group)
================================================================


More information about the pld-cvs-commit mailing list