From Peter.Rushforth at NRCan-RNCan.gc.ca Wed Jul 25 05:55:45 2012 From: Peter.Rushforth at NRCan-RNCan.gc.ca (Rushforth, Peter) Date: Wed, 25 Jul 2012 12:55:45 +0000 Subject: java beans bug? Message-ID: <1CD55F04538DEA4F85F3ADF7745464AF1AE2B160@S-BSC-MBX4.nrn.nrcan.gc.ca> 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 From Sergey.Malenkov at oracle.com Wed Jul 25 07:54:23 2012 From: Sergey.Malenkov at oracle.com (Sergey Malenkov) Date: Wed, 25 Jul 2012 18:54:23 +0400 Subject: java beans bug? In-Reply-To: <1CD55F04538DEA4F85F3ADF7745464AF1AE2B160@S-BSC-MBX4.nrn.nrcan.gc.ca> References: <1CD55F04538DEA4F85F3ADF7745464AF1AE2B160@S-BSC-MBX4.nrn.nrcan.gc.ca> Message-ID: <5010089F.8030301@oracle.com> Hi Peter, This is an issue in the following constructor: PropertyDescriptor(PropertyDescriptor,PropertyDescriptor). Could you please file a bug? http://bugreport.sun.com/bugreport/ Thanks, SAM On 25.07.2012 16:55, Rushforth, Peter wrote: > 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 > From Sergey.Malenkov at oracle.com Wed Jul 25 09:00:27 2012 From: Sergey.Malenkov at oracle.com (Sergey Malenkov) Date: Wed, 25 Jul 2012 20:00:27 +0400 Subject: [8] Review request for 7122740: PropertyDescriptor Performance Slow Message-ID: <5010181B.3090806@oracle.com> Hi everyone, Please review the fix. I've improved the performance a little bit. Bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7122740 Webrev: http://cr.openjdk.java.net/~malenkov/7122740.0/ Thanks, SAM From Peter.Rushforth at NRCan-RNCan.gc.ca Wed Jul 25 09:43:52 2012 From: Peter.Rushforth at NRCan-RNCan.gc.ca (Rushforth, Peter) Date: Wed, 25 Jul 2012 16:43:52 +0000 Subject: java beans bug? In-Reply-To: <5010089F.8030301@oracle.com> References: <1CD55F04538DEA4F85F3ADF7745464AF1AE2B160@S-BSC-MBX4.nrn.nrcan.gc.ca> <5010089F.8030301@oracle.com> Message-ID: <1CD55F04538DEA4F85F3ADF7745464AF1AE2B3EE@S-BSC-MBX4.nrn.nrcan.gc.ca> Hi Sergey, I think I filed a bug in the right place. Because it cuts across versions and platforms I chose windows and java 7. I also put it in the java SE. I hope the bug report comes through and provides sufficient detail. I will try again, if not! Thanks, and regards, Peter > -----Original Message----- > From: Sergey Malenkov [mailto:Sergey.Malenkov at oracle.com] > Sent: July 25, 2012 10:54 > To: Rushforth, Peter > Cc: beans-dev at openjdk.java.net > Subject: Re: java beans bug? > > Hi Peter, > > This is an issue in the following constructor: > PropertyDescriptor(PropertyDescriptor,PropertyDescriptor). > Could you please file a bug? > http://bugreport.sun.com/bugreport/ > > Thanks, > SAM > > On 25.07.2012 16:55, Rushforth, Peter wrote: > > 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 > > > From Sergey.Malenkov at oracle.com Sun Jul 29 08:46:31 2012 From: Sergey.Malenkov at oracle.com (Sergey Malenkov) Date: Sun, 29 Jul 2012 19:46:31 +0400 Subject: [8] Review request for 7169395: Exception throws due to the changes in JDK 7 object tranversal and break backward compatibility Message-ID: <50155AD7.4050500@oracle.com> Hi everyone, Please review the fix. I've improved the performance a little bit. Bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7169395 Webrev: http://cr.openjdk.java.net/~malenkov/7169395.0/ Thanks, SAM From Sergey.Malenkov at oracle.com Sun Jul 29 08:53:17 2012 From: Sergey.Malenkov at oracle.com (Sergey Malenkov) Date: Sun, 29 Jul 2012 19:53:17 +0400 Subject: [8] Review request for 7169395: Exception throws due to the changes in JDK 7 object tranversal and break backward compatibility Message-ID: <50155C6D.7020102@oracle.com> Hi everyone, Could you please review the fix? Now I do not process inner statements for a simple reference, but the following tag without inners tags does not have any sense: Bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7169395 Webrev: http://cr.openjdk.java.net/~malenkov/7169395.0/ Thanks, SAM