summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Update warning suppression for newer compilers (unchecked->rawtypes).Andrew John Hughes2012-05-0132-65/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-04-25 Andrew John Hughes <ahughes@redhat.com> Update warning suppression so it still works with newer compilers. * javax/activation/ActivationDataFlavor.java: (ActivationDataFlavor(Class,String,String)): Suppress rawtypes not unchecked. (ActivationDataFlavor(Class,String)): Likewise. (getRepresentationClass()): Likewise. * javax/activation/MimeTypeParameterList.java: (getNames()): Likewise. * javax/management/DefaultLoaderRepository.java: (loadClass(String)): Likewise. (loadClassWithout(ClassLoader,String)): Likewise. * javax/management/MBeanConstructorInfo.java: (MBeanConstructorInof(String,Constructor)): Likewise. * javax/management/remote/rmi/RMIConnection.java: (addNotificationListener(ObjectName,ObjectName,MarshelledObject, MarshelledObject,Subject)): Likewise. (addNotificationListeners(ObjectName[],MarshelledObject[], Subject[])): Likewise. (createMBean(String,ObjectName,MarshalledObject,String,Subject)): Likewise. (createMBean(String,ObjectName,ObjectName,MarshalledObject,String[],Subject)): Likewise. (invoke(ObjectName,String,MarshalledObject,String[],Subject)): Likewise. (queryMBeans(ObjectName,MarshalledObject,Subject)): Likewise. (queryNames(ObjectName,MarshalledObject,Subject)): Likewise. (removeNotificationListener(ObjectName,ObjectName,MarshalledObject, MarshalledObject,Subject)): Likewise. (setAttribute(ObjectName,MarshalledObject,Subject)): Likewise. (setAttributes(ObjectName,MarshalledObject,Subject)): Likewise. * javax/swing/tree/DefaultMutableTreeNode.java: (children()): Likewise. (preorderEnumeration()): Likewise. (postorderEnumeration()): Likewise. (breadthFirstEnumeration()): Likewise. (depthFirstEnumeration()): Likewise. (pathFromAncestorEnumeration(TreeNode)): Likewise. (BreadthFirstEnumeration.nextElement()): Move annotation down to assignment level. (PreorderEnumeration.PreorderEnumeration(TreeNode)): Likewise. (PreorderEnumeration.traverse(Enumeration)): Likewise. (PostorderEnumeration.PostorderEnumeration(TreeNode)): Likewise. (PostorderEnumeration.traverse(Enumeration()): Likewise. * javax/swing/tree/TreeNode.java: (children()): Suppress rawtypes not unchecked. * javax/xml/namespace/NamespaceContext.java: (getPrefixes(String)): Likewise. * javax/xml/stream/XMLEventFactory.java: (createStartElement(QName,Iterator,Iterator)): Likewise. (createStartElement(String,String,String,Iterator,Iterator)): Likewise. (createStartElement(String,String,String,Iterator,Iterator,NamespaceContext)): Likewise. (createEndElement(QName,Iterator)): Likewise. (createEndElement(String,String,String,Iterator)): Likewise. * javax/xml/stream/XMLEventReader.java: Likewise (at class level due to inheritance). * javax/xml/stream/events/DTD.java: (getNotations()): Likewise. (getEntities()): Likewise. * javax/xml/stream/events/EndElement.java: (getNamespaces()): Likewise. * javax/xml/stream/events/StartElement.java: (getAttributes()): Likewise. (getNamespaces()): Likewise. * javax/xml/xpath/XPathFunction.java: (evaluate(List)): Likewise. * org/omg/CORBA/LocalObject.java: (_servant_preinvoke(String,Class)): Likewise. * org/omg/CORBA/portable/Delegate.java: (servant_preinvoke(org.omg.CORBA.Object,String,Class)): Likewise. * org/omg/CORBA/portable/InputStream.java: (read_Object(Class)): Likewise. * org/omg/CORBA/portable/ObjectImpl.java: (_servant_preinvoke(String,Class)): Likewise. * org/omg/CORBA_2_3/portable/InputStream.java: (read_abstract_interface(Class)): Likewise. (read_value(Class)): Likewise. * org/omg/CORBA_2_3/portable/OutputStream.java: (write_value(Serializable,Class)): Likewise. * org/omg/DynamicAny/_DynAnyFactoryStub.java: (_opsClass): Likewise. * org/omg/DynamicAny/_DynAnyStub.java: (_opsClass): Likewise. * org/omg/DynamicAny/_DynArrayStub.java, (_opsClass): Likewise. * org/omg/DynamicAny/_DynEnumStub.java, (_opsClass): Likewise. * org/omg/DynamicAny/_DynFixedStub.java, (_opsClass): Likewise. * org/omg/DynamicAny/_DynSequenceStub.java, (_opsClass): Likewise. * org/omg/DynamicAny/_DynStructStub.java, (_opsClass): Likewise. * org/omg/DynamicAny/_DynUnionStub.java, (_opsClass): Likewise. * org/omg/DynamicAny/_DynValueStub.java, (_opsClass): Likewise. * org/omg/PortableServer/_ServantActivatorStub.java, (_opsClass): Likewise. * org/omg/PortableServer/_ServantLocatorStub.java, (_opsClass): Likewise. Signed-off-by: Andrew John Hughes <ahughes@redhat.com>
* Replace use of deprecated gdk_pixbuf_unref.Andrew John Hughes2012-04-242-1/+8
| | | | | | | | | 2012-04-24 Andrew John Hughes <ahughes@redhat.com> * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c: (Java_gnu_java_awt_peer_gtk_GtkImage_freePixbuf): Use g_object_unref rather than deprecated gdk_pixbuf_unref to avoid warning.
* Add missed ChangeLog entry.Andrew John Hughes2012-04-031-0/+4
| | | | | | 2012-04-03 Andrew John Hughes <ahughes@redhat.com> * .gitignore: Renamed from .cvsignore.
* Move .cvsignore to .gitignore.Andrew John Hughes2012-04-031-0/+0
| | | | | | | | 2012-04-03 Andrew John Hughes <ahughes@redhat.com> * .gitignore: Renamed from .cvsignore. Signed-off-by: Andrew John Hughes <ahughes@redhat.com>
* Update copyright notices.Jakub Jelinek2012-04-033-5/+12
| | | | | | | | | | 2012-01-01 Jakub Jelinek <jakub@redhat.com> * gnu/java/rmi/registry/RegistryImpl.java (version): Update copyright notice dates. * tools/gnu/classpath/tools/orbd/Main.java (run): Likewise. Signed-off-by: Andrew John Hughes <ahughes@redhat.com>
* Don't check if TimeZone is an instance of SimpleTimeZone.Jakub Jelinek2012-04-032-8/+6
| | | | | | | | | 2007-02-26 Jakub Jelinek <jakub@redhat.com> * java/util/TimeZone.java (getDefaultDisplayName): Don't check if TimeZone is instanceof SimpleTimeZone. Signed-off-by: Andrew John Hughes <ahughes@redhat.com>
* Decrement index when removing elements from PriorityQueue. Catch capacity < 1.Andrew Haley2012-04-032-0/+9
| | | | | | | | | | 2006-09-13 Andrew Haley <aph@redhat.com> * java/util/PriorityQueue.java: Throw IllegalArgumentException for capacity < 1. (Iterator.remove()): Decrement index after removing element. Signed-off-by: Andrew John Hughes <ahughes@redhat.com>
* Negate dayOfWeek in java.util.TimeZone.getDateParams.Andrew Haley2012-04-032-6/+23
| | | | | | | | | 2007-02-14 Jakub Jelinek <jakub@redhat.com> Andrew Haley <aph@redhat.com> * java/util/TimeZone.java (getDateParams): Negate dayOfWeek. Signed-off-by: Andrew John Hughes <ahughes@redhat.com>
* Implement Matcher.usePattern(Pattern).Andrew John Hughes2012-04-032-1/+28
| | | | | | | | | 2012-03-22 Andrew John Hughes <ahughes@redhat.com> * java/util/regex/Matcher.java: (usePattern(Pattern)): Implemented. Signed-off-by: Andrew John Hughes <ahughes@redhat.com>
* PR libgcj/52694Andrew Haley2012-03-292-0/+10
| | | | | * native/jni/java-io/java_io_VMConsole.c (IUCLC): Define, if undefined.
* Merge branch 'penberg-next'Andrew John Hughes2012-03-1934-26/+431
|\ | | | | | | | | | | | | Conflicts: ChangeLog Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
| * Add missing Java 1.7 AutoCloseable interfacePekka Enberg2012-03-1416-3/+91
| | | | | | | | Signed-off-by: Pekka Enberg <penberg@kernel.org>
| * Add missing Java 1.7 java/lang/reflect/Modifier methodsPekka Enberg2012-03-142-1/+50
| | | | | | | | Signed-off-by: Pekka Enberg <penberg@kernel.org>
| * Add missing Java 1.7 ReflectiveOperationException classPekka Enberg2012-03-148-18/+117
| | | | | | | | Signed-off-by: Pekka Enberg <penberg@kernel.org>
| * Add missing Java 1.7 constructors to java/lang classesPekka Enberg2012-03-143-3/+35
| | | | | | | | Signed-off-by: Pekka Enberg <penberg@kernel.org>
| * Add missing Java 1.7 compare() API methods to java/lang classesPekka Enberg2012-03-147-0/+115
| | | | | | | | Signed-off-by: Pekka Enberg <penberg@kernel.org>
| * Add missing java/lang/System.lineSeparator() methodPekka Enberg2012-03-142-0/+17
| | | | | | | | Signed-off-by: Pekka Enberg <penberg@kernel.org>
| * Fix java/lang/reflect/Member.getDeclaringClass() return typePekka Enberg2012-03-142-1/+6
| | | | | | | | Signed-off-by: Pekka Enberg <penberg@kernel.org>
* | Add key to NEWS file along the same lines as IcedTea's.Andrew John Hughes2012-03-192-0/+17
|/ | | | | | | | | 2012-03-16 Andrew John Hughes <ahughes@redhat.com> * NEWS: Add key along the same lines as IcedTea. Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
* Prepare for future 1.0 release.Andrew John Hughes2012-03-083-1/+10
| | | | | | | | | 2012-03-07 Andrew John Hughes <ahughes@redhat.com> * NEWS: Add section for 1.0 release. * configure.ac: Bump to 1.0pre.
* Remove duplicate sources and fail on error when copying tool sources.classpath-0.99Andrew John Hughes2012-03-082-2/+10
| | | | | | | | 2012-03-07 Andrew John Hughes <ahughes@redhat.com> * tools/Makefile.am: (TOOLS_JAVA_FILES): Remove duplication. (dist-hook): Fail if copying fails.
* Always define @gcctabopt.Andrew John Hughes2012-03-072-6/+12
| | | | | | | | 2012-03-07 Andrew John Hughes <ahughes@redhat.com> * doc/cp-tools.texinfo: Move macro definition outside of if block so gcctabopt is always defined.
* Fix GStreamer make distcheck build.Andrew John Hughes2012-02-222-2/+6
| | | | | | | | 2012-02-15 Andrew John Hughes <ahughes@redhat.com> * native/jni/gstreamer-peer/gst_classpath_src.c, (gst_classpath_src_class_init(GstClasspathSrcClass)): Remove unused gstelement_class.
* Update NEWS prior to release.Andrew John Hughes2012-02-162-1/+53
| | | | | | 2012-02-15 Andrew John Hughes <ahughes@redhat.com> * NEWS: Updated prior to release.
* Remove trailing separator from locale data and hack to get around it in ↵Andrew John Hughes2012-02-15164-608/+777
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DateFormatSymbols. 2012-02-15 Andrew John Hughes <ahughes@redhat.com> * java/text/DateFormatSymbols.java: (getStringArray(List,String,int,String)): Remove hack which removes last character of the input data; now unnecessary. * resource/gnu/java/locale/LocaleInformation.properties, * resource/gnu/java/locale/LocaleInformation_aa.properties, * resource/gnu/java/locale/LocaleInformation_aa_DJ.properties, * resource/gnu/java/locale/LocaleInformation_aa_ER_SAAHO.properties, * resource/gnu/java/locale/LocaleInformation_af.properties, * resource/gnu/java/locale/LocaleInformation_ak.properties, * resource/gnu/java/locale/LocaleInformation_am.properties, * resource/gnu/java/locale/LocaleInformation_ar.properties, * resource/gnu/java/locale/LocaleInformation_ar_JO.properties, * resource/gnu/java/locale/LocaleInformation_ar_LB.properties, * resource/gnu/java/locale/LocaleInformation_ar_QA.properties, * resource/gnu/java/locale/LocaleInformation_ar_SA.properties, * resource/gnu/java/locale/LocaleInformation_ar_SY.properties, * resource/gnu/java/locale/LocaleInformation_ar_TN.properties, * resource/gnu/java/locale/LocaleInformation_ar_YE.properties, * resource/gnu/java/locale/LocaleInformation_as.properties, * resource/gnu/java/locale/LocaleInformation_az.properties, * resource/gnu/java/locale/LocaleInformation_az_Cyrl.properties, * resource/gnu/java/locale/LocaleInformation_be.properties, * resource/gnu/java/locale/LocaleInformation_bg.properties, * resource/gnu/java/locale/LocaleInformation_bn.properties, * resource/gnu/java/locale/LocaleInformation_bs.properties, * resource/gnu/java/locale/LocaleInformation_byn.properties, * resource/gnu/java/locale/LocaleInformation_ca.properties, * resource/gnu/java/locale/LocaleInformation_cch.properties, * resource/gnu/java/locale/LocaleInformation_cop.properties, * resource/gnu/java/locale/LocaleInformation_cs.properties, * resource/gnu/java/locale/LocaleInformation_cy.properties, * resource/gnu/java/locale/LocaleInformation_da.properties, * resource/gnu/java/locale/LocaleInformation_de.properties, * resource/gnu/java/locale/LocaleInformation_de_AT.properties, * resource/gnu/java/locale/LocaleInformation_de_BE.properties, * resource/gnu/java/locale/LocaleInformation_dv.properties, * resource/gnu/java/locale/LocaleInformation_dz.properties, * resource/gnu/java/locale/LocaleInformation_ee.properties, * resource/gnu/java/locale/LocaleInformation_el.properties, * resource/gnu/java/locale/LocaleInformation_en.properties, * resource/gnu/java/locale/LocaleInformation_en_Dsrt.properties, * resource/gnu/java/locale/LocaleInformation_en_Shaw.properties, * resource/gnu/java/locale/LocaleInformation_eo.properties, * resource/gnu/java/locale/LocaleInformation_es.properties, * resource/gnu/java/locale/LocaleInformation_et.properties, * resource/gnu/java/locale/LocaleInformation_eu.properties, * resource/gnu/java/locale/LocaleInformation_fa.properties, * resource/gnu/java/locale/LocaleInformation_fa_AF.properties, * resource/gnu/java/locale/LocaleInformation_fi.properties, * resource/gnu/java/locale/LocaleInformation_fil.properties, * resource/gnu/java/locale/LocaleInformation_fo.properties, * resource/gnu/java/locale/LocaleInformation_fr.properties, * resource/gnu/java/locale/LocaleInformation_fur.properties, * resource/gnu/java/locale/LocaleInformation_ga.properties, * resource/gnu/java/locale/LocaleInformation_gaa.properties, * resource/gnu/java/locale/LocaleInformation_gez.properties, * resource/gnu/java/locale/LocaleInformation_gl.properties, * resource/gnu/java/locale/LocaleInformation_gu.properties, * resource/gnu/java/locale/LocaleInformation_gv.properties, * resource/gnu/java/locale/LocaleInformation_ha.properties, * resource/gnu/java/locale/LocaleInformation_ha_Arab.properties, * resource/gnu/java/locale/LocaleInformation_haw.properties, * resource/gnu/java/locale/LocaleInformation_he.properties, * resource/gnu/java/locale/LocaleInformation_hi.properties, * resource/gnu/java/locale/LocaleInformation_hr.properties, * resource/gnu/java/locale/LocaleInformation_hu.properties, * resource/gnu/java/locale/LocaleInformation_hy.properties, * resource/gnu/java/locale/LocaleInformation_hy_AM_REVISED.properties, * resource/gnu/java/locale/LocaleInformation_ia.properties, * resource/gnu/java/locale/LocaleInformation_id.properties, * resource/gnu/java/locale/LocaleInformation_ig.properties, * resource/gnu/java/locale/LocaleInformation_ii.properties, * resource/gnu/java/locale/LocaleInformation_is.properties, * resource/gnu/java/locale/LocaleInformation_it.properties, * resource/gnu/java/locale/LocaleInformation_iu.properties, * resource/gnu/java/locale/LocaleInformation_ja.properties, * resource/gnu/java/locale/LocaleInformation_ka.properties, * resource/gnu/java/locale/LocaleInformation_kaj.properties, * resource/gnu/java/locale/LocaleInformation_kam.properties, * resource/gnu/java/locale/LocaleInformation_kcg.properties, * resource/gnu/java/locale/LocaleInformation_kfo.properties, * resource/gnu/java/locale/LocaleInformation_kk.properties, * resource/gnu/java/locale/LocaleInformation_kl.properties, * resource/gnu/java/locale/LocaleInformation_km.properties, * resource/gnu/java/locale/LocaleInformation_kn.properties, * resource/gnu/java/locale/LocaleInformation_ko.properties, * resource/gnu/java/locale/LocaleInformation_kok.properties, * resource/gnu/java/locale/LocaleInformation_kpe.properties, * resource/gnu/java/locale/LocaleInformation_ku_Latn.properties, * resource/gnu/java/locale/LocaleInformation_kw.properties, * resource/gnu/java/locale/LocaleInformation_ky.properties, * resource/gnu/java/locale/LocaleInformation_ln.properties, * resource/gnu/java/locale/LocaleInformation_lo.properties, * resource/gnu/java/locale/LocaleInformation_lt.properties, * resource/gnu/java/locale/LocaleInformation_lv.properties, * resource/gnu/java/locale/LocaleInformation_mk.properties, * resource/gnu/java/locale/LocaleInformation_ml.properties, * resource/gnu/java/locale/LocaleInformation_mn.properties, * resource/gnu/java/locale/LocaleInformation_mr.properties, * resource/gnu/java/locale/LocaleInformation_ms.properties, * resource/gnu/java/locale/LocaleInformation_mt.properties, * resource/gnu/java/locale/LocaleInformation_my.properties, * resource/gnu/java/locale/LocaleInformation_nb.properties, * resource/gnu/java/locale/LocaleInformation_ne.properties, * resource/gnu/java/locale/LocaleInformation_nl.properties, * resource/gnu/java/locale/LocaleInformation_nn.properties, * resource/gnu/java/locale/LocaleInformation_nr.properties, * resource/gnu/java/locale/LocaleInformation_nso.properties, * resource/gnu/java/locale/LocaleInformation_ny.properties, * resource/gnu/java/locale/LocaleInformation_om.properties, * resource/gnu/java/locale/LocaleInformation_or.properties, * resource/gnu/java/locale/LocaleInformation_pa.properties, * resource/gnu/java/locale/LocaleInformation_pa_Arab.properties, * resource/gnu/java/locale/LocaleInformation_pl.properties, * resource/gnu/java/locale/LocaleInformation_ps.properties, * resource/gnu/java/locale/LocaleInformation_pt.properties, * resource/gnu/java/locale/LocaleInformation_pt_PT.properties, * resource/gnu/java/locale/LocaleInformation_ro.properties, * resource/gnu/java/locale/LocaleInformation_ru.properties, * resource/gnu/java/locale/LocaleInformation_rw.properties, * resource/gnu/java/locale/LocaleInformation_sa.properties, * resource/gnu/java/locale/LocaleInformation_se.properties, * resource/gnu/java/locale/LocaleInformation_se_FI.properties, * resource/gnu/java/locale/LocaleInformation_si.properties, * resource/gnu/java/locale/LocaleInformation_sid.properties, * resource/gnu/java/locale/LocaleInformation_sk.properties, * resource/gnu/java/locale/LocaleInformation_sl.properties, * resource/gnu/java/locale/LocaleInformation_so.properties, * resource/gnu/java/locale/LocaleInformation_sq.properties, * resource/gnu/java/locale/LocaleInformation_sr.properties, * resource/gnu/java/locale/LocaleInformation_sr_BA_Cyrl.properties, * resource/gnu/java/locale/LocaleInformation_sr_Latn.properties, * resource/gnu/java/locale/LocaleInformation_ss.properties, * resource/gnu/java/locale/LocaleInformation_st.properties, * resource/gnu/java/locale/LocaleInformation_sv.properties, * resource/gnu/java/locale/LocaleInformation_sw.properties, * resource/gnu/java/locale/LocaleInformation_syr.properties, * resource/gnu/java/locale/LocaleInformation_ta.properties, * resource/gnu/java/locale/LocaleInformation_te.properties, * resource/gnu/java/locale/LocaleInformation_tg.properties, * resource/gnu/java/locale/LocaleInformation_th.properties, * resource/gnu/java/locale/LocaleInformation_ti.properties, * resource/gnu/java/locale/LocaleInformation_ti_ER.properties, * resource/gnu/java/locale/LocaleInformation_tig.properties, * resource/gnu/java/locale/LocaleInformation_tn.properties, * resource/gnu/java/locale/LocaleInformation_to.properties, * resource/gnu/java/locale/LocaleInformation_tr.properties, * resource/gnu/java/locale/LocaleInformation_trv.properties, * resource/gnu/java/locale/LocaleInformation_ts.properties, * resource/gnu/java/locale/LocaleInformation_tt.properties, * resource/gnu/java/locale/LocaleInformation_ug.properties, * resource/gnu/java/locale/LocaleInformation_uk.properties, * resource/gnu/java/locale/LocaleInformation_ur.properties, * resource/gnu/java/locale/LocaleInformation_uz.properties, * resource/gnu/java/locale/LocaleInformation_uz_Arab.properties, * resource/gnu/java/locale/LocaleInformation_uz_Latn.properties, * resource/gnu/java/locale/LocaleInformation_ve.properties, * resource/gnu/java/locale/LocaleInformation_vi.properties, * resource/gnu/java/locale/LocaleInformation_wal.properties, * resource/gnu/java/locale/LocaleInformation_wo.properties, * resource/gnu/java/locale/LocaleInformation_xh.properties, * resource/gnu/java/locale/LocaleInformation_yo.properties, * resource/gnu/java/locale/LocaleInformation_zh.properties, * resource/gnu/java/locale/LocaleInformation_zh_Hant.properties, * resource/gnu/java/locale/LocaleInformation_zu.properties: Update locale data without trailing separator.
* PR classpath/42390: Use AccessController and PrivilegedAction to retrieve ↵Andrew John Hughes2012-02-083-4/+24
| | | | | | | | | | | | | system properties. 2012-02-08 Andrew John Hughes <ahughes@redhat.com> PR classpath/42390 * java/nio/channels/spi/SelectorProvider.java: (provider()): Retrieve property value using PrivilegedAction. * java/security/KeyStore.java: (getDefaultType()): Likewise.
* PR classpath/42390: Add missing security checks in DatagramSocket.connect.Andrew John Hughes2012-02-082-1/+30
| | | | | | | | | | | 2012-02-06 Andrew John Hughes <ahughes@redhat.com> PR classpath/42390 * java/net/DatagramSocket.java: (connect(InetAddress,int)): Add missing security checks which OpenJDK performs and we don't. It's possible to initialise a DatagramSocket with null so we should also ensure we are bound.
* Regenerate locale resources with 'format' month/day context and no ↵Andrew John Hughes2012-02-0256-1260/+1318
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | alternative elements. 2012-02-01 Andrew John Hughes <ahughes@redhat.com> * resource/gnu/java/locale/LocaleInformation.properties, * resource/gnu/java/locale/LocaleInformation_ar.properties, * resource/gnu/java/locale/LocaleInformation_az.properties, * resource/gnu/java/locale/LocaleInformation_be.properties, * resource/gnu/java/locale/LocaleInformation_bg.properties, * resource/gnu/java/locale/LocaleInformation_bn.properties, * resource/gnu/java/locale/LocaleInformation_ca.properties, * resource/gnu/java/locale/LocaleInformation_cs.properties, * resource/gnu/java/locale/LocaleInformation_cy.properties, * resource/gnu/java/locale/LocaleInformation_da.properties, * resource/gnu/java/locale/LocaleInformation_de.properties, * resource/gnu/java/locale/LocaleInformation_ee.properties, * resource/gnu/java/locale/LocaleInformation_el.properties, * resource/gnu/java/locale/LocaleInformation_en.properties, * resource/gnu/java/locale/LocaleInformation_en_Dsrt.properties, * resource/gnu/java/locale/LocaleInformation_en_Shaw.properties, * resource/gnu/java/locale/LocaleInformation_es.properties, * resource/gnu/java/locale/LocaleInformation_fa.properties, * resource/gnu/java/locale/LocaleInformation_fi.properties, * resource/gnu/java/locale/LocaleInformation_fil.properties, * resource/gnu/java/locale/LocaleInformation_fr.properties, * resource/gnu/java/locale/LocaleInformation_gaa.properties, * resource/gnu/java/locale/LocaleInformation_he.properties, * resource/gnu/java/locale/LocaleInformation_hi.properties, * resource/gnu/java/locale/LocaleInformation_hr.properties, * resource/gnu/java/locale/LocaleInformation_hu.properties, * resource/gnu/java/locale/LocaleInformation_is.properties, * resource/gnu/java/locale/LocaleInformation_it.properties, * resource/gnu/java/locale/LocaleInformation_ja.properties, * resource/gnu/java/locale/LocaleInformation_ko.properties, * resource/gnu/java/locale/LocaleInformation_lt.properties, * resource/gnu/java/locale/LocaleInformation_lv.properties, * resource/gnu/java/locale/LocaleInformation_ml.properties, * resource/gnu/java/locale/LocaleInformation_my.properties, * resource/gnu/java/locale/LocaleInformation_nb.properties, * resource/gnu/java/locale/LocaleInformation_nl.properties, * resource/gnu/java/locale/LocaleInformation_nn.properties, * resource/gnu/java/locale/LocaleInformation_pl.properties, * resource/gnu/java/locale/LocaleInformation_pt.properties, * resource/gnu/java/locale/LocaleInformation_pt_PT.properties, * resource/gnu/java/locale/LocaleInformation_ro.properties, * resource/gnu/java/locale/LocaleInformation_ru.properties, * resource/gnu/java/locale/LocaleInformation_si.properties, * resource/gnu/java/locale/LocaleInformation_sr.properties, * resource/gnu/java/locale/LocaleInformation_sr_Latn.properties, * resource/gnu/java/locale/LocaleInformation_sv.properties, * resource/gnu/java/locale/LocaleInformation_th.properties, * resource/gnu/java/locale/LocaleInformation_tr.properties, * resource/gnu/java/locale/LocaleInformation_uk.properties, * resource/gnu/java/locale/LocaleInformation_ur.properties, * resource/gnu/java/locale/LocaleInformation_uz_Latn.properties, * resource/gnu/java/locale/LocaleInformation_vi.properties, * resource/gnu/java/locale/LocaleInformation_zh.properties, * resource/gnu/java/locale/LocaleInformation_zh_Hant.properties, * resource/gnu/java/locale/LocaleInformation_zu.properties: Use the 'format' context type for months and days, and avoid alternatives for other elements.
* Use the main approved value for properties, not the one that occurs last in ↵Andrew John Hughes2012-01-3065-2228/+2297
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the source file. 2011-12-30 Andrew John Hughes <ahughes@redhat.com> * resource/gnu/java/locale/LocaleInformation_ar.properties, * resource/gnu/java/locale/LocaleInformation_ar_LB.properties, * resource/gnu/java/locale/LocaleInformation_az.properties, * resource/gnu/java/locale/LocaleInformation_be.properties, * resource/gnu/java/locale/LocaleInformation_bg.properties, * resource/gnu/java/locale/LocaleInformation_bn.properties, * resource/gnu/java/locale/LocaleInformation_bn_IN.properties, * resource/gnu/java/locale/LocaleInformation_ca.properties, * resource/gnu/java/locale/LocaleInformation_cs.properties, * resource/gnu/java/locale/LocaleInformation_cy.properties, * resource/gnu/java/locale/LocaleInformation_da.properties, * resource/gnu/java/locale/LocaleInformation_de.properties, * resource/gnu/java/locale/LocaleInformation_el.properties, * resource/gnu/java/locale/LocaleInformation_en.properties, * resource/gnu/java/locale/LocaleInformation_en_Dsrt.properties, * resource/gnu/java/locale/LocaleInformation_eo.properties, * resource/gnu/java/locale/LocaleInformation_es.properties, * resource/gnu/java/locale/LocaleInformation_et.properties, * resource/gnu/java/locale/LocaleInformation_fa.properties, * resource/gnu/java/locale/LocaleInformation_fi.properties, * resource/gnu/java/locale/LocaleInformation_fil.properties, * resource/gnu/java/locale/LocaleInformation_fo.properties, * resource/gnu/java/locale/LocaleInformation_fr.properties, * resource/gnu/java/locale/LocaleInformation_ga.properties, * resource/gnu/java/locale/LocaleInformation_gl.properties, * resource/gnu/java/locale/LocaleInformation_gu.properties, * resource/gnu/java/locale/LocaleInformation_he.properties, * resource/gnu/java/locale/LocaleInformation_hi.properties, * resource/gnu/java/locale/LocaleInformation_hr.properties, * resource/gnu/java/locale/LocaleInformation_hu.properties, * resource/gnu/java/locale/LocaleInformation_is.properties, * resource/gnu/java/locale/LocaleInformation_it.properties, * resource/gnu/java/locale/LocaleInformation_ja.properties, * resource/gnu/java/locale/LocaleInformation_ka.properties, * resource/gnu/java/locale/LocaleInformation_ko.properties, * resource/gnu/java/locale/LocaleInformation_lt.properties, * resource/gnu/java/locale/LocaleInformation_lv.properties, * resource/gnu/java/locale/LocaleInformation_ml.properties, * resource/gnu/java/locale/LocaleInformation_my.properties, * resource/gnu/java/locale/LocaleInformation_nb.properties, * resource/gnu/java/locale/LocaleInformation_ne.properties, * resource/gnu/java/locale/LocaleInformation_nl.properties, * resource/gnu/java/locale/LocaleInformation_nn.properties, * resource/gnu/java/locale/LocaleInformation_pl.properties, * resource/gnu/java/locale/LocaleInformation_pt.properties, * resource/gnu/java/locale/LocaleInformation_pt_PT.properties, * resource/gnu/java/locale/LocaleInformation_ro.properties, * resource/gnu/java/locale/LocaleInformation_ru.properties, * resource/gnu/java/locale/LocaleInformation_se.properties, * resource/gnu/java/locale/LocaleInformation_se_FI.properties, * resource/gnu/java/locale/LocaleInformation_si.properties, * resource/gnu/java/locale/LocaleInformation_sk.properties, * resource/gnu/java/locale/LocaleInformation_sl.properties, * resource/gnu/java/locale/LocaleInformation_sr.properties, * resource/gnu/java/locale/LocaleInformation_sr_Latn.properties, * resource/gnu/java/locale/LocaleInformation_sv.properties, * resource/gnu/java/locale/LocaleInformation_ta.properties, * resource/gnu/java/locale/LocaleInformation_th.properties, * resource/gnu/java/locale/LocaleInformation_to.properties, * resource/gnu/java/locale/LocaleInformation_tr.properties, * resource/gnu/java/locale/LocaleInformation_uk.properties, * resource/gnu/java/locale/LocaleInformation_vi.properties, * resource/gnu/java/locale/LocaleInformation_zh.properties, * resource/gnu/java/locale/LocaleInformation_zh_Hant.properties: Use the main approved value for our properties, rather than just the one that happens to appear last in the XML source file.
* Replace property data with version sorted by key. This will make later ↵Andrew John Hughes2012-01-20135-55894/+56033
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | changes more visible in patches. 2011-12-20 Andrew John Hughes <ahughes@redhat.com> * resource/gnu/java/locale/LocaleInformation.properties, * resource/gnu/java/locale/LocaleInformation_aa.properties, * resource/gnu/java/locale/LocaleInformation_aa_DJ.properties, * resource/gnu/java/locale/LocaleInformation_aa_ER.properties, * resource/gnu/java/locale/LocaleInformation_af.properties, * resource/gnu/java/locale/LocaleInformation_am.properties, * resource/gnu/java/locale/LocaleInformation_ar.properties, * resource/gnu/java/locale/LocaleInformation_as.properties, * resource/gnu/java/locale/LocaleInformation_az.properties, * resource/gnu/java/locale/LocaleInformation_az_Cyrl.properties, * resource/gnu/java/locale/LocaleInformation_be.properties, * resource/gnu/java/locale/LocaleInformation_bg.properties, * resource/gnu/java/locale/LocaleInformation_bn.properties, * resource/gnu/java/locale/LocaleInformation_bn_IN.properties, * resource/gnu/java/locale/LocaleInformation_bs.properties, * resource/gnu/java/locale/LocaleInformation_byn.properties, * resource/gnu/java/locale/LocaleInformation_ca.properties, * resource/gnu/java/locale/LocaleInformation_cs.properties, * resource/gnu/java/locale/LocaleInformation_cy.properties, * resource/gnu/java/locale/LocaleInformation_da.properties, * resource/gnu/java/locale/LocaleInformation_de.properties, * resource/gnu/java/locale/LocaleInformation_de_CH.properties, * resource/gnu/java/locale/LocaleInformation_dz.properties, * resource/gnu/java/locale/LocaleInformation_el.properties, * resource/gnu/java/locale/LocaleInformation_en.properties, * resource/gnu/java/locale/LocaleInformation_en_Dsrt.properties, * resource/gnu/java/locale/LocaleInformation_en_IE.properties, * resource/gnu/java/locale/LocaleInformation_eo.properties, * resource/gnu/java/locale/LocaleInformation_es.properties, * resource/gnu/java/locale/LocaleInformation_es_AR.properties, * resource/gnu/java/locale/LocaleInformation_es_CL.properties, * resource/gnu/java/locale/LocaleInformation_et.properties, * resource/gnu/java/locale/LocaleInformation_eu.properties, * resource/gnu/java/locale/LocaleInformation_fa.properties, * resource/gnu/java/locale/LocaleInformation_fa_AF.properties, * resource/gnu/java/locale/LocaleInformation_fi.properties, * resource/gnu/java/locale/LocaleInformation_fil.properties, * resource/gnu/java/locale/LocaleInformation_fo.properties, * resource/gnu/java/locale/LocaleInformation_fr.properties, * resource/gnu/java/locale/LocaleInformation_fur.properties, * resource/gnu/java/locale/LocaleInformation_ga.properties, * resource/gnu/java/locale/LocaleInformation_gez.properties, * resource/gnu/java/locale/LocaleInformation_gez_ET.properties, * resource/gnu/java/locale/LocaleInformation_gl.properties, * resource/gnu/java/locale/LocaleInformation_gu.properties, * resource/gnu/java/locale/LocaleInformation_ha.properties, * resource/gnu/java/locale/LocaleInformation_haw.properties, * resource/gnu/java/locale/LocaleInformation_he.properties, * resource/gnu/java/locale/LocaleInformation_hi.properties, * resource/gnu/java/locale/LocaleInformation_hr.properties, * resource/gnu/java/locale/LocaleInformation_hu.properties, * resource/gnu/java/locale/LocaleInformation_hy.properties, * resource/gnu/java/locale/LocaleInformation_ia.properties, * resource/gnu/java/locale/LocaleInformation_id.properties, * resource/gnu/java/locale/LocaleInformation_ii.properties, * resource/gnu/java/locale/LocaleInformation_is.properties, * resource/gnu/java/locale/LocaleInformation_it.properties, * resource/gnu/java/locale/LocaleInformation_ja.properties, * resource/gnu/java/locale/LocaleInformation_ka.properties, * resource/gnu/java/locale/LocaleInformation_kk.properties, * resource/gnu/java/locale/LocaleInformation_km.properties, * resource/gnu/java/locale/LocaleInformation_kn.properties, * resource/gnu/java/locale/LocaleInformation_ko.properties, * resource/gnu/java/locale/LocaleInformation_kok.properties, * resource/gnu/java/locale/LocaleInformation_ku.properties, * resource/gnu/java/locale/LocaleInformation_ku_Latn.properties, * resource/gnu/java/locale/LocaleInformation_ky.properties, * resource/gnu/java/locale/LocaleInformation_ln.properties, * resource/gnu/java/locale/LocaleInformation_lo.properties, * resource/gnu/java/locale/LocaleInformation_lt.properties, * resource/gnu/java/locale/LocaleInformation_lv.properties, * resource/gnu/java/locale/LocaleInformation_mk.properties, * resource/gnu/java/locale/LocaleInformation_ml.properties, * resource/gnu/java/locale/LocaleInformation_mn.properties, * resource/gnu/java/locale/LocaleInformation_mr.properties, * resource/gnu/java/locale/LocaleInformation_ms.properties, * resource/gnu/java/locale/LocaleInformation_mt.properties, * resource/gnu/java/locale/LocaleInformation_my.properties, * resource/gnu/java/locale/LocaleInformation_nb.properties, * resource/gnu/java/locale/LocaleInformation_ne.properties, * resource/gnu/java/locale/LocaleInformation_nl.properties, * resource/gnu/java/locale/LocaleInformation_nl_BE.properties, * resource/gnu/java/locale/LocaleInformation_nn.properties, * resource/gnu/java/locale/LocaleInformation_om.properties, * resource/gnu/java/locale/LocaleInformation_pa.properties, * resource/gnu/java/locale/LocaleInformation_pa_Arab.properties, * resource/gnu/java/locale/LocaleInformation_pl.properties, * resource/gnu/java/locale/LocaleInformation_ps.properties, * resource/gnu/java/locale/LocaleInformation_pt.properties, * resource/gnu/java/locale/LocaleInformation_pt_PT.properties, * resource/gnu/java/locale/LocaleInformation_ro.properties, * resource/gnu/java/locale/LocaleInformation_ru.properties, * resource/gnu/java/locale/LocaleInformation_ru_UA.properties, * resource/gnu/java/locale/LocaleInformation_rw.properties, * resource/gnu/java/locale/LocaleInformation_sa.properties, * resource/gnu/java/locale/LocaleInformation_se.properties, * resource/gnu/java/locale/LocaleInformation_se_FI.properties, * resource/gnu/java/locale/LocaleInformation_sid.properties, * resource/gnu/java/locale/LocaleInformation_sk.properties, * resource/gnu/java/locale/LocaleInformation_sl.properties, * resource/gnu/java/locale/LocaleInformation_so.properties, * resource/gnu/java/locale/LocaleInformation_sq.properties, * resource/gnu/java/locale/LocaleInformation_sr.properties, * resource/gnu/java/locale/LocaleInformation_sr_Latn.properties, * resource/gnu/java/locale/LocaleInformation_st.properties, * resource/gnu/java/locale/LocaleInformation_sv.properties, * resource/gnu/java/locale/LocaleInformation_sv_FI.properties, * resource/gnu/java/locale/LocaleInformation_sw.properties, * resource/gnu/java/locale/LocaleInformation_ta.properties, * resource/gnu/java/locale/LocaleInformation_te.properties, * resource/gnu/java/locale/LocaleInformation_tg.properties, * resource/gnu/java/locale/LocaleInformation_th.properties, * resource/gnu/java/locale/LocaleInformation_ti.properties, * resource/gnu/java/locale/LocaleInformation_ti_ER.properties, * resource/gnu/java/locale/LocaleInformation_tig.properties, * resource/gnu/java/locale/LocaleInformation_tn.properties, * resource/gnu/java/locale/LocaleInformation_to.properties, * resource/gnu/java/locale/LocaleInformation_tr.properties, * resource/gnu/java/locale/LocaleInformation_trv.properties, * resource/gnu/java/locale/LocaleInformation_ts.properties, * resource/gnu/java/locale/LocaleInformation_uk.properties, * resource/gnu/java/locale/LocaleInformation_ur.properties, * resource/gnu/java/locale/LocaleInformation_uz.properties, * resource/gnu/java/locale/LocaleInformation_uz_Arab.properties, * resource/gnu/java/locale/LocaleInformation_uz_Latn.properties, * resource/gnu/java/locale/LocaleInformation_vi.properties, * resource/gnu/java/locale/LocaleInformation_wal.properties, * resource/gnu/java/locale/LocaleInformation_wo.properties, * resource/gnu/java/locale/LocaleInformation_xh.properties, * resource/gnu/java/locale/LocaleInformation_yo.properties, * resource/gnu/java/locale/LocaleInformation_zh.properties, * resource/gnu/java/locale/LocaleInformation_zh_HK_Hant.properties, * resource/gnu/java/locale/LocaleInformation_zh_Hant.properties, * resource/gnu/java/locale/LocaleInformation_zu.properties: Update property files so that the keys are sorted, making later changes visible. No actual data changes.
* RH712013: pdftk crashes with java.lang.ArrayIndexOutOfBoundsExceptionAndrew John Hughes2012-01-122-16/+86
| | | | | | | | | | | | | | | | | | 2011-12-12 Andrew John Hughes <ahughes@redhat.com> RH712013: pdftk crashes with java.lang.ArrayIndexOutOfBoundsException * java/text/DateFormatSymbols.java: (getStringArray(List<ResourceBundle>, String, int)): Calls getStringArray(list,string,int,null). (getStringArray(List<ResourceBundle>, String, int, String[])): Populate a String array with locale data. The data used is the first non-null non-empty element found as we traverse the locale hierarchy. May be supplemented by fallback data. (DateFormatSymbols(Locale)): Get a list of all bundles up the locale hierarchy, rather than just using the one specific locale. Use the improved getStringArray method to populate the arrays, supplying existing data where "sideways" inheritance takes place.
* Add java/io/Console class and java/lang/System.console() methodPekka Enberg2012-01-087-2/+291
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch implements java/io/Console and adds a console() method to java/lang/System. The implementation is lame but it works reasonably well. 2012-01-07 Pekka Enberg <penberg@kernel.org> * include/Makefile.am: Add java_io_VMConsole.h. * java/io/Console: Add Java 1.6 java/io/Console API. * java/lang/System.java: (console): Add Java 1.6 console() API. * vm/reference/java/io/VMConsole: Add new class. * native/jni/java-io/Makefile.am: Add java_io_VMConsole.c. * native/jni/java-io/java_io_VMConsole.c: Add native helpers for java/io/Console. Signed-off-by: Pekka Enberg <penberg@kernel.org>
* Add java.io.IOError classPekka Enberg2012-01-062-0/+63
| | | | | | | | | | | | This patch adds a missing IOError class to GNU Classpath that was introduced in Java 1.6. 2012-01-05 Pekka Enberg <penberg@kernel.org> * java/io/IOError: Add new class. Signed-off-by: Pekka Enberg <penberg@kernel.org>
* Fix block-wise chosen-plaintext against SSL/TLS (BEAST) (CVE-2011-3389)Andrew John Hughes2011-12-214-53/+122
| | | | | | | | | | | | | | | | | | | | | | | | | 2011-12-01 Andrew John Hughes <ahughes@redhat.com> * gnu/javax/net/ssl/provider/CipherSuite.java: Pass CBC mode to the static CipherSuite instances. (isCBCMode): New variable. (CipherSuite(CipherAlgorithm, KeyExchangeAlgorithm, SignatureAlgorithm, MacAlgorithm, int, int, int, String, boolean)): Allow isCBCMode to be specified. (CipherSuite(CipherAlgorithm, KeyExchangeAlgorithm, boolean, SignatureAlgorithm, MacAlgorithm, int, int, int, String, boolean)): Likewise. (cipher()): Generalise setting of 'alg' to work with any suite that does not use CBC, not just "RC4". (isCBCMode()): New method. Returns true if the CBC mode is used. * gnu/javax/net/ssl/provider/OutputSecurityParameters.java: (enableCBCProtection): Set to true by default of if jsse.enableCBCProtection is true. (needToSplitPayload()): Returns true if TLS < 1.1 is in use with a CBC mode cipher and CBC protection is enabled. * gnu/javax/net/ssl/provider/SSLEngineImpl.java: (wrap(ByteBuffer[], int, int, ByteBuffer)): Send application data as two packets (1 and n - 1) if CBC protection is enabled.
* Stefan Ring reports that commit f154af6 ("Fix HashMap.put() to check forPekka Enberg2011-10-302-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hashCode equality before equals()") breaks running the CACAO test suite. The breakage looks like this: LD_LIBRARY_PATH=../../../src/cacao/.libs ../../../src/cacao/cacao -Xbootclasspath:../../../src/classes/classes:/home/sr/classpathcvs/share/classpath/glibj.zip -classpath /usr/share/java/junit4.jar:. org.junit.runner.JUnitCore All JUnit version 4.5 .E Time: 0.003 There was 1 failure: 1) initializationError(All) java.lang.NullPointerException at java.util.HashMap.put(HashMap.java:348) at java.util.HashSet.add(HashSet.java:151) at org.junit.runners.model.RunnerBuilder.addParent(RunnerBuilder.java:64) at org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:81) at org.junit.runners.Suite.<init>(Suite.java:88) at org.junit.runners.Suite.<init>(Suite.java:54) at java.lang.reflect.VMConstructor.construct(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:318) at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:35) at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:24) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57) at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57) at org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:93) at org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:84) at org.junit.runners.Suite.<init>(Suite.java:66) at org.junit.runner.Request.classes(Request.java:68) at org.junit.runner.JUnitCore.run(JUnitCore.java:107) at org.junit.runner.JUnitCore.runMain(JUnitCore.java:88) at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:54) at org.junit.runner.JUnitCore.main(JUnitCore.java:46) FAILURES!!! Tests run: 1, Failures: 1 Looking at the code, it's obviously broken for HashMap.put() with a null key. 2011-10-24 Pekka Enberg <penberg@kernel.org> * java/util/HashMap.java: (put): Fix NullPointerException for null keys.
* PR classpath/45526: Produce header files for any inner classes found.Andrew John Hughes2011-09-092-32/+69
| | | | | | | | | | | | | | | | 2011-09-09 Andrew John Hughes <ahughes@redhat.com> PR classpath/45526: Produce header files for any inner classes found. * tools/gnu/classpath/tools/javah/Main.java: (parsed): Set of class names that have been parsed. (writeHeader(Map,Printer)): Take a general Map rather than a specific HashMap. (parseClasses(Iterator<Object>)): Factor out the parsing of class files into a separate method so it can be called recursively for inner classes. (getClass(String)): Remove redundant cast.
* PR classpath/45527: Replace '$' with '_' rather than '_00024'.Andrew John Hughes2011-07-072-0/+9
| | | | | | | | | 2011-07-07 Andrew John Hughes <ahughes@redhat.com> PR classpath/45527 * tools/gnu/classpath/tools/javah/JniHelper.java: (mangle(String)): Replace '$' with '_' rather than encoding it as hex.
* PR classpath/40188: javah creates constants using name of the superclassAndrew John Hughes2011-07-072-2/+11
| | | | | | | | | | 2011-07-07 Andrew John Hughes <ahughes@redhat.com> PR classpath/40188 * tools/gnu/classpath/tools/javah/JniIncludePrinter.java: (writeFields(ClassWrapper,JniPrintStream)): Retain a reference to the original class and use it in naming fields, as opposed to the class in which it occurs.
* Fix clock_gettime() support check for DarwinPekka Enberg2011-07-053-2/+12
| | | | | | | | | | | | | | | | | | | | | Darwin doesn't support clock_gettime() but has _POSIX_MONOTONIC_CLOCK defined so use a more strict check with HAVE_CLOCK_GETTIME. This fixes the following compilation error: java_lang_VMSystem.c: In function ‘Java_java_lang_VMSystem_nanoTime’: java_lang_VMSystem.c:148: warning: implicit declaration of function ‘clock_gettime’ java_lang_VMSystem.c:148: error: ‘CLOCK_MONOTONIC’ undeclared (first use in this function) java_lang_VMSystem.c:148: error: (Each undeclared identifier is reported only once java_lang_VMSystem.c:148: error: for each function it appears in.) 2011-07-05 Pekka Enberg <penberg@kernel.org> * configure.ac: Check for clock_gettime(). native/jni/java-lang/java_lang_VMSystem.c: (Java_java_lang_VMSystem_nanoTime): Fix compile error on systems that don't have clock_gettime().
* Fix issues with building with -Werror and gcc 4.6.Andrew John Hughes2011-06-277-19/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2011-06-27 Andrew John Hughes <ahughes@redhat.com> Fix issues with building with -Werror and gcc 4.6. * native/jni/gtk-peer/GtkDragSourceContextPeer.c: (Java_gnu_java_awt_dnd_peer_gtk_GtkDragSourceContextPeer_nativeSetCursor): Remove unused ptr variable and mark env as unused. (connect_signals_for_widget(GtkWidget*)): Mark w unused and don't set it. (Java_gnu_java_awt_dnd_peer_gtk_GtkDragSourceContextPeer_nativeStartDrag): Remove unused ptr variable. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c: (Java_gnu_java_awt_peer_gtk_ComponentGraphics_initState): Remove unused width and height variables. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkRobotPeer.c: (Java_gnu_java_awt_peer_gtk_GdkRobotPeer_mouseMove): Check result of XTestFakeMotionEvent call. (Java_gnu_java_awt_peer_gtk_GdkRobotPeer_mousePress): Likewise for XTestFakeButtonEvent call. (Java_gnu_java_awt_peer_gtk_GdkRobotPeer_mouseRelease): Likewise. (Java_gnu_java_awt_peer_gtk_GdkRobotPeer_keyPress): Use g_message instead of deprecated g_printerr. Check result of XTestFakeKeyEvent. (Java_gnu_java_awt_peer_gtk_GdkRobotPeer_keyRelease): Likewise. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c: (Java_gnu_java_awt_peer_gtk_GtkPopupMenuPeer_setupAccelGroup): Completely disable code to attach parent, including use of ptr2 and parent argument, and reinstate original FIXME to explain why. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkVolatileImage.c: (Java_gnu_java_awt_peer_gtk_GtkVolatileImage_nativeGetPixels): Remove unused depth variable. * native/jni/midi-alsa/gnu_javax_sound_midi_alsa_AlsaPortDevice.c, (Java_gnu_javax_sound_midi_alsa_AlsaPortDevice_run_1receiver_1thread_1): Check return values and throw an InternalError if a problem occurs.
* Generate META-INF/INDEX.LIST file for glibj.zipPekka Enberg2011-05-292-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch changes the glibj.zip packaging so that META-INF/INDEX.LIST is generated to the file. This is needed for VMClassLoader.getBootPackages() to work correctly: private static String[] getBootPackages() { URL indexList = getResource("META-INF/INDEX.LIST"); if (indexList != null) { NOTE! This problem is only seen with Jato currently as it's the only VM I'm aware of that doesn't override any of the classes in vm/reference. CACAO and JamVM override the whole classloading parts themselves. I asked about this on IRC and Mark Wielaard explained background on the issue: < mjw> 2006-04-19 Olivier Jolly <olivier.jolly@pcedev.com> < mjw> * vm/reference/java/lang/VMClassLoader.java (getBootPackages): Loads < mjw> boot packages list from the META-INF/INDEX.LIST file if it exists. < mjw> http://developer.classpath.org/pipermail/classpath-patches/2006-April/001704.html < mjw> "the patch to support the -i option should be incorporated soon and we'll be able to add the creation of the index to the glibj.zip by default." < mjw> soon just happens the be > 5 years... 2011-05-29 Pekka Enberg <penberg@kernel.org> * lib/Makefile.am: Generate META-INF/INDEX.LST for glibj.zip.
* Add Matcher.quoteReplacement API methodPekka Enberg2011-04-252-0/+28
| | | | | | | 2011-04-25 Pekka Enberg <penberg@kernel.org> * java/util/regex/Matcher.java: (quoteReplacement): Implement missing Java 1.5 API method.
* PR classpath/42823: Remove memory leaks in native code of ↵Andrew John Hughes2011-03-312-0/+11
| | | | | | | | | | | | | java.net.VMInetAddress. 2011-03-30 Gert Brettlecker <gert.brettlecker@ergon.ch> PR classpath/42823 * native/jni/java-net/java_net_VMInetAddress.c, (Java_VMInetAddress_getHostByAddr(JNIEnv*,jclass,jarray)): Free address structure after use. (Java_java_net_VMInetAddress_aton(JNIEnv*,jclass,jstring)): Release UTF string after use.
* Fix Java_java_nio_VMDirectByteBuffer_allocate() for negative capacityPekka Enberg2011-03-172-0/+13
| | | | | | | | | | | JavaDocs clearly state that ByteBuffer.allocateDirect() must throw IllegalArgumentException if capacity is negative. 2011-03-17 Pekka Enberg <penberg@kernel.org> * native/jni/java-nio/java_nio_VMDirectByteBuffer.c: (Java_java_nio_VMDirectByteBuffer_allocate): Check for negative capacity.
* PR42390: Add missing call to SecurityManager.checkConnect in ↵Andrew John Hughes2011-03-152-1/+17
| | | | | | | | | | | connect(SocketAddress, int). 2011-03-14 Andrew John Hughes <ahughes@redhat.com> PR classpath/42390 * java/net/Socket.java: (connect(SocketAddress, int)): Add missing call to SecurityManager.
* Fix for PR 48131.Jeroen Frijters2011-03-152-1/+7
| | | | Handle empty tree.
* Fix Use ArrayList.set() in StyleSheet.resolveStylePekka Enberg2011-03-142-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following cleanup patch: More warning fixes. 2009-03-09 Andrew John Hughes <ahughes@redhat.com> [snip] * javax/swing/text/html/StyleSheet.java: Add generic typing. changed the code to do ArrayList.set() on an instance thats allocated like this: List<Map<String,String>> attributes = new ArrayList<Map<String,String>>(count); This is, however, broken as ArrayList constructor only ensures capacity but doesn't allow you to set() elements outside of ArrayList.size(). This causes the following exception to happen upon JPC start-up: penberg@jaguar:~/testing/jato$ /usr/local/jamvm/bin/jamvm -jar JPCApplication.jar Exception in thread "main" java.lang.ExceptionInInitializerError at java.lang.VMClass.forName(Native Method) at java.lang.Class.forName(Class.java:233) at jamvm.java.lang.JarLauncher.main(JarLauncher.java:46) Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.raiseBoundsError(ArrayList.java:504) at java.util.ArrayList.checkBoundExclusive(ArrayList.java:490) at java.util.ArrayList.set(ArrayList.java:323) at javax.swing.text.html.StyleSheet.resolveStyle(StyleSheet.java:417) at javax.swing.text.html.StyleSheet.getResolvedStyle(StyleSheet.java:376) at javax.swing.text.html.StyleSheet.getRule(StyleSheet.java:358) at javax.swing.text.html.ViewAttributeSet.<init>(ViewAttributeSet.java:112) at javax.swing.text.html.StyleSheet.getViewAttributes(StyleSheet.java:562) [snip] Fix that up. 2011-03-14 Pekka Enberg <penberg@kernel.org> * javax/swing/text/html/StyleSheet.java: (resolveStyle()): Fix misuse of ArrayList.set().
* PR classpath/42390: Don't include permissions of the Policy in toString() ↵Andrew John Hughes2011-03-062-1/+17
| | | | | | | | | | | | output if reading them is prohibited. 2011-02-22 Andrew John Hughes <ahughes@redhat.com> PR classpath/42390 * java/security/ProtectionDomain.java: (toString()): Don't include permissions from the policy if we don't have permission to read it.
* Fix Matcher.find() infinite loop bugPekka Enberg2011-03-022-0/+11
| | | | | | | | | | | | | | | | | | This patch fixes a problem in Match.find() where the following piece of code would enter an infinite loop: System.out.println("hello, world".split("\uFFFF"); The root cause is that Matcher.find() returns true for the following snippet: Pattern p = Pattern.compile("\uFFFF"); Matcher m = p.matcher("hello, world"); System.out.println(m.find()); 2011-03-02 Pekka Enberg <penberg@kernel.org> * java/util/regex/Matcher: (find): Make sure match is within input data limits.
* Fix HashMap.put() to check for hashCode equality before equals()Pekka Enberg2011-02-222-1/+7
| | | | | | | | | | | | This patch is needed to run Jython 2.5.2 RC 4 under JamVM and GNU Classpath CVS HEAD. It turns out Jythin bootstrap is bit hairy and assumes HashMap.put() checks for hashCode equality before invoking Object.equals(). 2011-02-22 Pekka Enberg <penberg@kernel.org> * java/util/HashMap: (put): Check for key hashCode equality before invoking Object.equals() to fix compatibility issue with Jython.