Hi,
I posted this some time ago, but I think it may have been forgotten.
This fixes a small problem in MetaData, which can't be compiled
using the Eclipse compiler. Infact, the code is not valid Java and is
only accepted by javac due to a bug in javac:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6400189
It would be nice to have this patch integrated.
Cheers, 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
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()