java/177236: devel/pmd - fix for building with strict unicode Java

Volodymyr Kostyrko c.kworr at gmail.com
Fri Mar 22 16:20:00 UTC 2013


>Number:         177236
>Category:       java
>Synopsis:       devel/pmd - fix for building with strict unicode Java
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-java
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 22 16:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Volodymyr Kostyrko
>Release:        RELENG_9
>Organization:
none
>Environment:
FreeBSD ar1l0u 9.1-STABLE FreeBSD 9.1-STABLE #2 r248569M: Thu Mar 21 10:32:44 EET 2013     arcade at ar1l0u:/usr/obj/usr/src/sys/MINIMAL  amd64
>Description:
Some files in pmd distribute contain localized chars which is inappropriate for a current java.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: /usr/ports/devel/pmd/files/patch-ParseException.java
===================================================================
--- /usr/ports/devel/pmd/files/patch-ParseException.java	(revision 0)
+++ /usr/ports/devel/pmd/files/patch-ParseException.java	(working copy)
@@ -0,0 +1,11 @@
+--- src/net/sourceforge/pmd/jsp/ast/ParseException.java	2013-03-22 17:59:09.000000000 +0200
++++ src/net/sourceforge/pmd/jsp/ast/ParseException.java	2013-03-22 17:59:21.000000000 +0200
+@@ -1,7 +1,7 @@
+ /* Generated By:JavaCC: Do not edit this line. ParseException.java Version 3.0 */
+ /** 
+  * JSP Parser for PMD.
+- * @author Pieter – Application Engineers NV/SA – http://www.ae.be
++ * @author Pieter - Application Engineers NV/SA - http://www.ae.be
+  */
+ 
+ package net.sourceforge.pmd.jsp.ast;
Index: /usr/ports/devel/pmd/files/patch-StringUtilTest.java
===================================================================
--- /usr/ports/devel/pmd/files/patch-StringUtilTest.java	(revision 0)
+++ /usr/ports/devel/pmd/files/patch-StringUtilTest.java	(working copy)
@@ -0,0 +1,22 @@
+--- regress/test/net/sourceforge/pmd/util/StringUtilTest.java	2013-03-22 18:04:13.000000000 +0200
++++ regress/test/net/sourceforge/pmd/util/StringUtilTest.java	2013-03-22 18:04:30.000000000 +0200
+@@ -33,16 +33,16 @@
+     public void testUTF8NotSupported() {
+         System.setProperty("net.sourceforge.pmd.supportUTF8","no");
+         StringBuffer sb = new StringBuffer();
+-        String test = "é";
++        String test = "-"; // was 'e' with "'"
+         StringUtil.appendXmlEscaped(sb, test);
+         assertEquals("é", sb.toString());
+     }
+     public void testUTF8Supported() {
+         System.setProperty("net.sourceforge.pmd.supportUTF8","yes");
+         StringBuffer sb = new StringBuffer();
+-        String test = "é";
++        String test = "-";
+         StringUtil.appendXmlEscaped(sb, test);
+-        assertEquals("é", sb.toString());
++        assertEquals("-", sb.toString());
+         System.setProperty("net.sourceforge.pmd.supportUTF8","no");
+     }
+ */
Index: /usr/ports/devel/pmd/files/patch-Token.java
===================================================================
--- /usr/ports/devel/pmd/files/patch-Token.java	(revision 0)
+++ /usr/ports/devel/pmd/files/patch-Token.java	(working copy)
@@ -0,0 +1,11 @@
+--- src/net/sourceforge/pmd/jsp/ast/Token.java	2013-03-22 18:01:00.000000000 +0200
++++ src/net/sourceforge/pmd/jsp/ast/Token.java	2013-03-22 18:01:09.000000000 +0200
+@@ -1,7 +1,7 @@
+ /* Generated By:JavaCC: Do not edit this line. Token.java Version 3.0 */
+ /** 
+  * JSP Parser for PMD.
+- * @author Pieter – Application Engineers NV/SA – http://www.ae.be
++ * @author Pieter - Application Engineers NV/SA - http://www.ae.be
+  */
+ 
+ package net.sourceforge.pmd.jsp.ast;
Index: /usr/ports/devel/pmd/files/patch-charstream.java
===================================================================
--- /usr/ports/devel/pmd/files/patch-charstream.java	(revision 0)
+++ /usr/ports/devel/pmd/files/patch-charstream.java	(working copy)
@@ -0,0 +1,11 @@
+--- src/net/sourceforge/pmd/jsp/ast/CharStream.java	2013-03-22 17:57:17.000000000 +0200
++++ src/net/sourceforge/pmd/jsp/ast/CharStream.java	2013-03-22 17:57:36.000000000 +0200
+@@ -1,7 +1,7 @@
+ /* Generated By:JavaCC: Do not edit this line. CharStream.java Version 3.0 */
+ /** 
+  * JSP Parser for PMD.
+- * @author Pieter – Application Engineers NV/SA – http://www.ae.be
++ * @author Pieter - Application Engineers NV/SA - http://www.ae.be
+  */
+ 
+ package net.sourceforge.pmd.jsp.ast;


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-java mailing list