I don't know if the JMX team or the JavaBeans maintainers are on the core-libs-dev mailing list.

--- Begin Message ---
When trying to compile OpenJDK with the Eclipse compiler, I noticed two
compiler errors related to generics. It turned out that the code there
is invalid and only javac (incorrectly) accepts it. See the following
bug reports for details:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=212147
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6400189

The attached changeset fixes the problem. Could this be included?

/Roman

-- 
Dipl.-Inform. (FH) Roman Kennke, Software Engineer, http://kennke.org
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com   * Tel: +49-721-663 968-0
USt-Id: DE216375633, Handelsregister HRB 109481, AG Karlsruhe
Geschäftsführer: Dr. James J. Hunt
# HG changeset patch
# User Roman Kennke <[EMAIL PROTECTED]>
# Date 1197988258 -3600
# Node ID 2b6c2ce8cd88445d9e3ea709069bf26d53039223
# Parent  37a05a11f281b4d238e2f9e7ebb67c63f64d0e77
Fix compiler problem.

diff -r 37a05a11f281 -r 2b6c2ce8cd88 src/share/classes/com/sun/jmx/mbeanserver/OpenConverter.java
--- a/src/share/classes/com/sun/jmx/mbeanserver/OpenConverter.java	Sat Dec 01 00:00:00 2007 +0000
+++ b/src/share/classes/com/sun/jmx/mbeanserver/OpenConverter.java	Tue Dec 18 15:30:58 2007 +0100
@@ -1152,7 +1152,7 @@ public abstract class OpenConverter {
             // Also remember the set of properties in that constructor
             // so we can test unambiguity.
             Set<BitSet> getterIndexSets = newSet();
-            for (Constructor constr : annotatedConstrList) {
+            for (Constructor<?> constr : annotatedConstrList) {
                 String[] propertyNames =
                     constr.getAnnotation(propertyNamesClass).value();
 
diff -r 37a05a11f281 -r 2b6c2ce8cd88 src/share/classes/java/beans/MetaData.java
--- a/src/share/classes/java/beans/MetaData.java	Sat Dec 01 00:00:00 2007 +0000
+++ b/src/share/classes/java/beans/MetaData.java	Tue Dec 18 15:30:58 2007 +0100
@@ -1563,7 +1563,7 @@ class MetaData {
         return names;
     }
 
-    private static String[] getAnnotationValue(Constructor constructor) {
+    private static String[] getAnnotationValue(Constructor<?> constructor) {
         ConstructorProperties annotation = constructor.getAnnotation(ConstructorProperties.class);
         return (annotation != null)
                 ? annotation.value()

--- End Message ---

Reply via email to