Dr Andrew John Hughes | 8 Mar 2012 01:42
Picon
Favicon

FYI: Fix documentation

So I found the problem we were hitting with make distcheck and
the cp-tools documentation.  It turns out that the macro gcctabopt
was only being defined for certain types of output.  A normal build
will run texi2pod, where gcctabopt is defined, but make distcheck
also runs 'make dvi' which in turn leads to building with texi2dvi,
where gcctabopt was not being defined.

When I first found the issue, I did try removing gcctabopt but of
course  <at> table does still need an argument so just removing it didn't
fix the issue.  I found that  <at> table  <at> code did work, so then it was
just a matter of working out why  <at> table  <at> gcctabopt (which expands
to  <at> table  <at> code) didn't.

Fixed thusly in the attached patch.

2012-03-07  Andrew John Hughes  <ahughes <at> redhat.com>

	* doc/cp-tools.texinfo:
	Move macro definition outside of if block
	so gcctabopt is always defined.

--

-- 
Andrew :)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F  8F91 3B96 A578 248B DC07
(Continue reading)

Pekka Enberg | 12 Mar 2012 18:27
Gravatar

[RFC/PATCH 5/6] Add missing Java 1.7 ReflectiveOperationException class

Signed-off-by: Pekka Enberg <penberg <at> kernel.org>
---
 java/lang/ClassNotFoundException.java            |    6 +-
 java/lang/IllegalAccessException.java            |    6 +-
 java/lang/InstantiationException.java            |    6 +-
 java/lang/NoSuchFieldException.java              |    6 +-
 java/lang/NoSuchMethodException.java             |    6 +-
 java/lang/ReflectiveOperationException.java      |   88 ++++++++++++++++++++++
 java/lang/reflect/InvocationTargetException.java |    6 +-
 7 files changed, 106 insertions(+), 18 deletions(-)
 create mode 100644 java/lang/ReflectiveOperationException.java

diff --git a/java/lang/ClassNotFoundException.java b/java/lang/ClassNotFoundException.java
index 142bc5d..fe1424d 100644
--- a/java/lang/ClassNotFoundException.java
+++ b/java/lang/ClassNotFoundException.java
 <at>  <at>  -1,5 +1,5  <at>  <at> 
 /* ClassNotFoundException.java -- thrown when class definition cannot be found
-   Copyright (C) 1998, 2002, 2005  Free Software Foundation, Inc.
+   Copyright (C) 1998, 2002, 2005, 2012  Free Software Foundation, Inc.

 This file is part of GNU Classpath.

 <at>  <at>  -47,9 +47,9  <at>  <at>  package java.lang;
  *  <at> see Class#forName(String)
  *  <at> see ClassLoader#findSystemClass(String)
  *  <at> see ClassLoader#loadClass(String, boolean)
- *  <at> status updated to 1.4
+ *  <at> status updated to 1.7
  */
(Continue reading)

Pekka Enberg | 12 Mar 2012 18:27
Gravatar

[RFC/PATCH 6/6] Add missing Java 1.7 java/lang/reflect/Modifier methods

Signed-off-by: Pekka Enberg <penberg <at> kernel.org>
---
 java/lang/reflect/Modifier.java |   42 ++++++++++++++++++++++++++++++++++++++-
 1 files changed, 41 insertions(+), 1 deletions(-)

diff --git a/java/lang/reflect/Modifier.java b/java/lang/reflect/Modifier.java
index 15bad05..c75f7b8 100644
--- a/java/lang/reflect/Modifier.java
+++ b/java/lang/reflect/Modifier.java
 <at>  <at>  -1,5 +1,5  <at>  <at> 
 /* java.lang.reflect.Modifier
-   Copyright (C) 1998, 1999, 2001, 2002, 2005, 2008  Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2001, 2002, 2005, 2008, 2012  Free Software Foundation, Inc.

 This file is part of GNU Classpath.

 <at>  <at>  -300,6 +300,46  <at>  <at>  public class Modifier
   }

   /**
+   *  <at> since 1.7
+   */
+  public static int classModifiers()
+  {
+    return PUBLIC | PROTECTED | PRIVATE | STATIC | ABSTRACT | FINAL | STRICT;
+  }
+
+  /**
+   *  <at> since 1.7
+   */
(Continue reading)

Pekka Enberg | 12 Mar 2012 18:27
Gravatar

[RFC/PATCH 1/6] Fix java/lang/reflect/Member.getDeclaringClass() return type

Signed-off-by: Pekka Enberg <penberg <at> kernel.org>
---
 java/lang/reflect/Member.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/java/lang/reflect/Member.java b/java/lang/reflect/Member.java
index fed962c..945fbf6 100644
--- a/java/lang/reflect/Member.java
+++ b/java/lang/reflect/Member.java
 <at>  <at>  -79,7 +79,7  <at>  <at>  public interface Member
    *
    *  <at> return the class that declared this member
    */
-  Class getDeclaringClass();
+  Class<?> getDeclaringClass();

   /**
    * Gets the simple name of this member. This will be a valid Java
--

-- 
1.7.6.5

Pekka Enberg | 12 Mar 2012 18:27
Gravatar

[RFC/PATCH 4/6] Add missing Java 1.7 constructors to java/lang classes

Signed-off-by: Pekka Enberg <penberg <at> kernel.org>
---
 java/lang/AssertionError.java |   14 +++++++++++++-
 java/lang/LinkageError.java   |   17 +++++++++++++++--
 2 files changed, 28 insertions(+), 3 deletions(-)

diff --git a/java/lang/AssertionError.java b/java/lang/AssertionError.java
index 778eb58..cf953f4 100644
--- a/java/lang/AssertionError.java
+++ b/java/lang/AssertionError.java
 <at>  <at>  -1,5 +1,5  <at>  <at> 
 /* AssertionError.java -- indication of a failed assertion
-   Copyright (C) 2002, 2005  Free Software Foundation, Inc.
+   Copyright (C) 2002, 2005, 2012  Free Software Foundation, Inc.

 This file is part of GNU Classpath.

 <at>  <at>  -145,4 +145,16  <at>  <at>  public class AssertionError extends Error
   {
     super(Double.toString(msg));
   }
+
+  /**
+   * Construct an AssertionError with detail message and cause.
+   *
+   *  <at> param msg Detail message.
+   *  <at> param cause The cause of this exception, may be null
+   *  <at> since 1.7
+   */
+  public AssertionError(String msg, Throwable cause)
(Continue reading)

Pekka Enberg | 12 Mar 2012 18:27
Gravatar

[RFC/PATCH 2/6] Add missing java/lang/System.lineSeparator() method

Signed-off-by: Pekka Enberg <penberg <at> kernel.org>
---
 java/lang/System.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/java/lang/System.java b/java/lang/System.java
index 51b3259..9d86991 100644
--- a/java/lang/System.java
+++ b/java/lang/System.java
 <at>  <at>  -97,6 +97,8  <at>  <at>  public final class System
    */
   public static final PrintStream out = VMSystem.makeStandardOutputStream();

+  private static final String LINE_SEPARATOR = SystemProperties.getProperty("line.separator");
+
   /**
    * The standard output PrintStream.  This is assigned at startup and
    * starts its life perfectly valid. Although it is marked final, you can
 <at>  <at>  -713,6 +715,16  <at>  <at>  public final class System
   }

   /**
+   * Returns the system-dependent line separator.
+   *
+   *  <at> return the system-dependent line separator.
+   */
+  public static String lineSeparator()
+  {
+    return LINE_SEPARATOR;
+  }
(Continue reading)

Pekka Enberg | 12 Mar 2012 18:27
Gravatar

[RFC/PATCH 3/6] Add missing Java 1.7 compare() API methods to java/lang classes

Signed-off-by: Pekka Enberg <penberg <at> kernel.org>
---
 java/lang/Boolean.java   |   15 +++++++++++++++
 java/lang/Byte.java      |   17 +++++++++++++++++
 java/lang/Character.java |   17 +++++++++++++++++
 java/lang/Integer.java   |   17 +++++++++++++++++
 java/lang/Long.java      |   17 +++++++++++++++++
 java/lang/Short.java     |   17 +++++++++++++++++
 6 files changed, 100 insertions(+), 0 deletions(-)

diff --git a/java/lang/Boolean.java b/java/lang/Boolean.java
index f2eaf41..0e4afa8 100644
--- a/java/lang/Boolean.java
+++ b/java/lang/Boolean.java
 <at>  <at>  -237,6 +237,21  <at>  <at>  public final class Boolean implements Serializable, Comparable<Boolean>
   }

   /**
+   * Compares two unboxed boolean values.
+   *
+   *  <at> param x First value to compare.
+   *  <at> param y Second value to compare.
+   *  <at> return 0 if both Booleans represent the same value, a positive number
+   * if this Boolean represents true and the other false, and a negative
+   * number otherwise.
+   *  <at> since 1.7
+   */
+  public static int compare(boolean x, boolean y)
+  {
+    return Boolean.valueOf(x).compareTo(Boolean.valueOf(y));
(Continue reading)

Andrew Hughes | 12 Mar 2012 19:47
Picon
Favicon

Re: [RFC/PATCH 4/6] Add missing Java 1.7 constructors to java/lang classes

----- Original Message -----
> Signed-off-by: Pekka Enberg <penberg <at> kernel.org>
> ---
>  java/lang/AssertionError.java |   14 +++++++++++++-
>  java/lang/LinkageError.java   |   17 +++++++++++++++--
>  2 files changed, 28 insertions(+), 3 deletions(-)
> 
> diff --git a/java/lang/AssertionError.java
> b/java/lang/AssertionError.java
> index 778eb58..cf953f4 100644
> --- a/java/lang/AssertionError.java
> +++ b/java/lang/AssertionError.java
>  <at>  <at>  -1,5 +1,5  <at>  <at> 
>  /* AssertionError.java -- indication of a failed assertion
> -   Copyright (C) 2002, 2005  Free Software Foundation, Inc.
> +   Copyright (C) 2002, 2005, 2012  Free Software Foundation, Inc.
>  
>  This file is part of GNU Classpath.
>  
>  <at>  <at>  -145,4 +145,16  <at>  <at>  public class AssertionError extends Error
>    {
>      super(Double.toString(msg));
>    }
> +
> +  /**
> +   * Construct an AssertionError with detail message and cause.
> +   *
> +   *  <at> param msg Detail message.
> +   *  <at> param cause The cause of this exception, may be null
> +   *  <at> since 1.7
(Continue reading)

Andrew Hughes | 12 Mar 2012 19:46
Picon
Favicon

Re: [RFC/PATCH 1/6] Fix java/lang/reflect/Member.getDeclaringClass() return type


----- Original Message -----
> Signed-off-by: Pekka Enberg <penberg <at> kernel.org>
> ---
>  java/lang/reflect/Member.java |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/java/lang/reflect/Member.java
> b/java/lang/reflect/Member.java
> index fed962c..945fbf6 100644
> --- a/java/lang/reflect/Member.java
> +++ b/java/lang/reflect/Member.java
>  <at>  <at>  -79,7 +79,7  <at>  <at>  public interface Member
>     *
>     *  <at> return the class that declared this member
>     */
> -  Class getDeclaringClass();
> +  Class<?> getDeclaringClass();
>  
>    /**
>     * Gets the simple name of this member. This will be a valid Java
> --
> 1.7.6.5
> 
> 
> 

Fine. This one's trivial.
--

-- 
Andrew :)
(Continue reading)

Andrew Hughes | 12 Mar 2012 19:49
Picon
Favicon

Re: [RFC/PATCH 5/6] Add missing Java 1.7 ReflectiveOperationException class

----- Original Message -----
> Signed-off-by: Pekka Enberg <penberg <at> kernel.org>
> ---
>  java/lang/ClassNotFoundException.java            |    6 +-
>  java/lang/IllegalAccessException.java            |    6 +-
>  java/lang/InstantiationException.java            |    6 +-
>  java/lang/NoSuchFieldException.java              |    6 +-
>  java/lang/NoSuchMethodException.java             |    6 +-
>  java/lang/ReflectiveOperationException.java      |   88
>  ++++++++++++++++++++++
>  java/lang/reflect/InvocationTargetException.java |    6 +-
>  7 files changed, 106 insertions(+), 18 deletions(-)
>  create mode 100644 java/lang/ReflectiveOperationException.java
> 
> diff --git a/java/lang/ClassNotFoundException.java
> b/java/lang/ClassNotFoundException.java
> index 142bc5d..fe1424d 100644
> --- a/java/lang/ClassNotFoundException.java
> +++ b/java/lang/ClassNotFoundException.java
>  <at>  <at>  -1,5 +1,5  <at>  <at> 
>  /* ClassNotFoundException.java -- thrown when class definition
>  cannot be found
> -   Copyright (C) 1998, 2002, 2005  Free Software Foundation, Inc.
> +   Copyright (C) 1998, 2002, 2005, 2012  Free Software Foundation,
> Inc.
>  
>  This file is part of GNU Classpath.
>  
>  <at>  <at>  -47,9 +47,9  <at>  <at>  package java.lang;
>   *  <at> see Class#forName(String)
(Continue reading)


Gmane