<Beans Dev> java beans bug?
Rushforth, Peter
Peter.Rushforth at NRCan-RNCan.gc.ca
Wed Jul 25 05:55:45 PDT 2012
Hi,
I have a problem with running a program at java 7, and in fact on java 6 on
non-commercial platform (ubuntu). But it is really the fact that java 7 is
telling me to upgrade that concerns me, so I wonder if you could help tell me if
a) this is in fact a bug and b) if there as a jvm switch /setting that can be
used to allow this backwards-compatibility.
The problem is that a particular setter is not found at java 7, for the code as attached,
whereas it is found at java 6 (on windows and rhel java, at least).
This a maven project, which you don't actually have to run, but the comments in the pom
file will show you the output if you do run it. Here is the output under java 6 & 7:
C:\Documents and Settings\...>"%JAVA_HOME%\bin\java" -cp . JavaBeansBug
java version: 1.6.0_24
created object, introspecting with java.beans.BeanInfo
NO SETTER:class
C:\Documents and Settings\...>java -cp . JavaBeansBug
java version: 1.7.0
created object, introspecting with java.beans.BeanInfo
NO SETTER:class
NO SETTER:providerManager
Thanks for any advice. I can't change the code because it belongs to public libraries which
no longer seem maintained. I have distilled the issue to the above sample code, I think.
Peter Rushforth
Technology Advisor / Conseiller technique
GeoConnections / GéoConnexions
650-615 Booth St. / rue Booth
Ottawa ON K1A 0E9
E-mail / Courriel: Peter.Rushforth at NRCan-RNCan.gc.ca
Phone / Télephone: (613) 943-0784
Fax / telecopier: (613) 947-2410
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pom.xml
Type: text/xml
Size: 3110 bytes
Desc: pom.xml
Url : http://mail.openjdk.java.net/pipermail/beans-dev/attachments/20120725/4f2371ef/pom.xml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AbstractServiceContext.java
Type: application/octet-stream
Size: 254 bytes
Desc: AbstractServiceContext.java
Url : http://mail.openjdk.java.net/pipermail/beans-dev/attachments/20120725/4f2371ef/AbstractServiceContext.java
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ServiceContext.java
Type: application/octet-stream
Size: 88 bytes
Desc: ServiceContext.java
Url : http://mail.openjdk.java.net/pipermail/beans-dev/attachments/20120725/4f2371ef/ServiceContext.java
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Provider.java
Type: application/octet-stream
Size: 69 bytes
Desc: Provider.java
Url : http://mail.openjdk.java.net/pipermail/beans-dev/attachments/20120725/4f2371ef/Provider.java
-------------- next part --------------
A non-text attachment was scrubbed...
Name: JavaBeansBug.java
Type: application/octet-stream
Size: 791 bytes
Desc: JavaBeansBug.java
Url : http://mail.openjdk.java.net/pipermail/beans-dev/attachments/20120725/4f2371ef/JavaBeansBug.java
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ItemManager.java
Type: application/octet-stream
Size: 87 bytes
Desc: ItemManager.java
Url : http://mail.openjdk.java.net/pipermail/beans-dev/attachments/20120725/4f2371ef/ItemManager.java
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DefaultServiceContext.java
Type: application/octet-stream
Size: 455 bytes
Desc: DefaultServiceContext.java
Url : http://mail.openjdk.java.net/pipermail/beans-dev/attachments/20120725/4f2371ef/DefaultServiceContext.java
More information about the beans-dev
mailing list