From linuxhippy at gmail.com Fri Jul 1 08:03:41 2011 From: linuxhippy at gmail.com (Clemens Eisserer) Date: Fri, 1 Jul 2011 10:03:41 +0200 Subject: [OpenJDK 2D-Dev] Question about SurfaceData lock functions Message-ID: Hi, Just to be sure, Is it allowed/possible to use a per-surface locking structure for SurfaceData's lock/unlock functions to improve concurrency? All OpenJDK pipeline implementations seem to lock the toolkit lock, so maybe the software routines expect the toolkit lock to be locked. How do fallbacks work with the OpenGL pipeline? I just realized it doesn't implement the native lock/unlock/getrasinfo functions, and getRaster() seems to be unimplemented also. Thanks, Clemens From lana.steuck at oracle.com Fri Jul 1 21:26:57 2011 From: lana.steuck at oracle.com (lana.steuck at oracle.com) Date: Fri, 01 Jul 2011 21:26:57 +0000 Subject: [OpenJDK 2D-Dev] hg: jdk8/2d: 11 new changesets Message-ID: <20110701212657.4B75A470FC@hg.openjdk.java.net> Changeset: 4373d87e6f37 Author: schien Date: 2011-05-26 20:19 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/rev/4373d87e6f37 Added tag jdk7-b144 for changeset 7203965666a4 ! .hgtags Changeset: 93d2590fd849 Author: jeff Date: 2011-05-27 14:57 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/rev/93d2590fd849 7045697: JDK7 THIRD PARTY README update Reviewed-by: lana ! THIRD_PARTY_README Changeset: 55e9ebf03218 Author: lana Date: 2011-06-02 13:37 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/rev/55e9ebf03218 Merge Changeset: 2d38c2a79c14 Author: schien Date: 2011-06-07 14:00 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/rev/2d38c2a79c14 Added tag jdk7-b145 for changeset 55e9ebf03218 ! .hgtags Changeset: 404bd0b9385f Author: schien Date: 2011-06-08 10:20 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/rev/404bd0b9385f Merge Changeset: 3e0b96f8f6a0 Author: schien Date: 2011-06-20 16:24 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/rev/3e0b96f8f6a0 Added tag jdk7-b146 for changeset 2d38c2a79c14 ! .hgtags Changeset: 29e7e1474b5e Author: schien Date: 2011-06-20 17:28 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/rev/29e7e1474b5e Merge Changeset: 8da980eedab6 Author: jeff Date: 2011-06-22 10:09 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/rev/8da980eedab6 7057046: Add embedded license to THIRD PARTY README Reviewed-by: lana ! THIRD_PARTY_README Changeset: d91364304d7c Author: lana Date: 2011-06-22 12:40 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/rev/d91364304d7c Merge Changeset: ee67ee3bd597 Author: schien Date: 2011-06-27 13:21 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/rev/ee67ee3bd597 Added tag jdk7-b147 for changeset d91364304d7c ! .hgtags Changeset: 04734fe746f0 Author: schien Date: 2011-06-27 14:10 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/rev/04734fe746f0 Merge From lana.steuck at oracle.com Fri Jul 1 21:26:58 2011 From: lana.steuck at oracle.com (lana.steuck at oracle.com) Date: Fri, 01 Jul 2011 21:26:58 +0000 Subject: [OpenJDK 2D-Dev] hg: jdk8/2d/jaxp: 13 new changesets Message-ID: <20110701212659.2D268470FD@hg.openjdk.java.net> Changeset: bee49f47043f Author: schien Date: 2011-05-26 20:19 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxp/rev/bee49f47043f Added tag jdk7-b144 for changeset 39bf6dcaab23 ! .hgtags Changeset: bdf77cbd9958 Author: ohair Date: 2011-05-19 08:38 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxp/rev/bdf77cbd9958 7044493: Incorrectly formated GPL headers in JDK7 JAXP source drop Reviewed-by: joehw ! jaxp.properties Changeset: 775dd77e4730 Author: lana Date: 2011-05-20 21:00 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxp/rev/775dd77e4730 Merge Changeset: a70a042c8600 Author: jeff Date: 2011-05-27 15:01 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxp/rev/a70a042c8600 7045697: JDK7 THIRD PARTY README update Reviewed-by: lana ! THIRD_PARTY_README Changeset: 10ca7570f47f Author: lana Date: 2011-06-02 13:37 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxp/rev/10ca7570f47f Merge Changeset: bcd31fa1e3c6 Author: schien Date: 2011-06-07 14:01 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxp/rev/bcd31fa1e3c6 Added tag jdk7-b145 for changeset 10ca7570f47f ! .hgtags Changeset: bae5f389d17b Author: schien Date: 2011-06-08 10:21 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxp/rev/bae5f389d17b Merge Changeset: 9a4d09f33f01 Author: schien Date: 2011-06-20 16:25 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxp/rev/9a4d09f33f01 Added tag jdk7-b146 for changeset bcd31fa1e3c6 ! .hgtags Changeset: 03692de33ca8 Author: schien Date: 2011-06-20 17:28 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxp/rev/03692de33ca8 Merge Changeset: eed2486cb10b Author: jeff Date: 2011-06-22 10:10 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxp/rev/eed2486cb10b 7057046: Add embedded license to THIRD PARTY README Reviewed-by: lana ! THIRD_PARTY_README Changeset: fc268cd1dd5d Author: lana Date: 2011-06-22 12:40 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxp/rev/fc268cd1dd5d Merge Changeset: 6c9ac74190a0 Author: schien Date: 2011-06-27 13:21 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxp/rev/6c9ac74190a0 Added tag jdk7-b147 for changeset fc268cd1dd5d ! .hgtags Changeset: 58dfc6f729e8 Author: schien Date: 2011-06-27 14:10 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxp/rev/58dfc6f729e8 Merge From lana.steuck at oracle.com Fri Jul 1 21:27:00 2011 From: lana.steuck at oracle.com (lana.steuck at oracle.com) Date: Fri, 01 Jul 2011 21:27:00 +0000 Subject: [OpenJDK 2D-Dev] hg: jdk8/2d/jaxws: 22 new changesets Message-ID: <20110701212700.B4D7C470FE@hg.openjdk.java.net> Changeset: 6158298d2b94 Author: schien Date: 2011-05-26 20:19 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/6158298d2b94 Added tag jdk7-b144 for changeset 6bd683f2d527 ! .hgtags Changeset: c902e39c384e Author: jeff Date: 2011-05-27 15:01 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/c902e39c384e 7045697: JDK7 THIRD PARTY README update Reviewed-by: lana ! THIRD_PARTY_README Changeset: bcca8afc019f Author: ohair Date: 2011-06-01 10:36 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/bcca8afc019f 7049699: Problem with xml/jax-ws Reviewed-by: ramap ! jaxws.properties Changeset: 42bfba80beb7 Author: lana Date: 2011-06-02 13:37 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/42bfba80beb7 Merge Changeset: 6ec12c60ad13 Author: schien Date: 2011-06-07 14:01 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/6ec12c60ad13 Added tag jdk7-b145 for changeset 42bfba80beb7 ! .hgtags Changeset: 1b7851b9e113 Author: schien Date: 2011-06-08 10:21 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/1b7851b9e113 Merge Changeset: 581dab3f0773 Author: asaha Date: 2011-04-21 16:15 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/581dab3f0773 Merge Changeset: 26610bb80151 Author: asaha Date: 2011-05-04 12:00 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/26610bb80151 Merge Changeset: c6ff860428c7 Author: asaha Date: 2011-05-05 22:28 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/c6ff860428c7 Merge Changeset: f4e1caef46d0 Author: asaha Date: 2011-05-24 11:11 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/f4e1caef46d0 Merge Changeset: 9896cee00786 Author: asaha Date: 2011-05-26 17:25 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/9896cee00786 Merge Changeset: d1febdcb0351 Author: asaha Date: 2011-05-26 21:36 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/d1febdcb0351 Merge Changeset: 239c80c331da Author: asaha Date: 2011-06-06 10:19 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/239c80c331da Merge Changeset: 09412171ca4b Author: asaha Date: 2011-06-03 07:54 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/09412171ca4b Merge Changeset: 9d8fd0982fb8 Author: asaha Date: 2011-06-06 10:54 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/9d8fd0982fb8 Merge Changeset: 05469dd4c366 Author: lana Date: 2011-06-15 16:04 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/05469dd4c366 Merge Changeset: faa394edbfe3 Author: schien Date: 2011-06-20 16:25 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/faa394edbfe3 Added tag jdk7-b146 for changeset 05469dd4c366 ! .hgtags Changeset: 9244c440c0df Author: schien Date: 2011-06-20 17:28 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/9244c440c0df Merge Changeset: 632e38191caa Author: jeff Date: 2011-06-22 10:10 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/632e38191caa 7057046: Add embedded license to THIRD PARTY README Reviewed-by: lana ! THIRD_PARTY_README Changeset: d13b1f877bb5 Author: lana Date: 2011-06-22 12:41 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/d13b1f877bb5 Merge Changeset: 2605f832dfbf Author: schien Date: 2011-06-27 13:21 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/2605f832dfbf Added tag jdk7-b147 for changeset d13b1f877bb5 ! .hgtags Changeset: 47022a1b59be Author: schien Date: 2011-06-27 14:10 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jaxws/rev/47022a1b59be Merge From lana.steuck at oracle.com Fri Jul 1 21:26:54 2011 From: lana.steuck at oracle.com (lana.steuck at oracle.com) Date: Fri, 01 Jul 2011 21:26:54 +0000 Subject: [OpenJDK 2D-Dev] hg: jdk8/2d/corba: 14 new changesets Message-ID: <20110701212706.728D047100@hg.openjdk.java.net> Changeset: 7033a5756ad5 Author: katleman Date: 2011-05-25 13:31 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/corba/rev/7033a5756ad5 7044486: open jdk repos have files with incorrect copyright headers, which can end up in src bundles Reviewed-by: ohair, trims ! src/share/classes/com/sun/corba/se/impl/transport/CorbaTransportManagerImpl.java Changeset: 74eb715474f2 Author: schien Date: 2011-05-26 20:19 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/corba/rev/74eb715474f2 Added tag jdk7-b144 for changeset 7033a5756ad5 ! .hgtags Changeset: 93e77c49b3bb Author: miroslawzn Date: 2011-05-26 13:05 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/corba/rev/93e77c49b3bb 7046882: Regression : JDK 7b123 : Enum exchanged as parameters using CORBA call results in Exception Reviewed-by: raginip ! src/share/classes/com/sun/corba/se/impl/io/ObjectStreamClass.java Changeset: 643f267ca234 Author: jeff Date: 2011-05-27 14:58 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/corba/rev/643f267ca234 7045697: JDK7 THIRD PARTY README update Reviewed-by: lana ! THIRD_PARTY_README Changeset: 7839048ec99e Author: jeff Date: 2011-05-27 15:27 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/corba/rev/7839048ec99e Merge Changeset: 77ec0541aa2a Author: lana Date: 2011-06-02 13:37 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/corba/rev/77ec0541aa2a Merge Changeset: 770227a4087e Author: schien Date: 2011-06-07 14:00 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/corba/rev/770227a4087e Added tag jdk7-b145 for changeset 77ec0541aa2a ! .hgtags Changeset: e85ff90212ad Author: schien Date: 2011-06-08 10:20 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/corba/rev/e85ff90212ad Merge Changeset: 36f0efbc66ef Author: schien Date: 2011-06-20 16:25 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/corba/rev/36f0efbc66ef Added tag jdk7-b146 for changeset 770227a4087e ! .hgtags Changeset: abe4723b9b7f Author: schien Date: 2011-06-20 17:28 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/corba/rev/abe4723b9b7f Merge Changeset: bba0e37d7006 Author: jeff Date: 2011-06-22 10:10 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/corba/rev/bba0e37d7006 7057046: Add embedded license to THIRD PARTY README Reviewed-by: lana ! THIRD_PARTY_README Changeset: 73323cb33962 Author: lana Date: 2011-06-22 12:40 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/corba/rev/73323cb33962 Merge Changeset: 960011ba4bf2 Author: schien Date: 2011-06-27 13:21 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/corba/rev/960011ba4bf2 Added tag jdk7-b147 for changeset 73323cb33962 ! .hgtags Changeset: 97014e43181f Author: schien Date: 2011-06-27 14:10 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/corba/rev/97014e43181f Merge From lana.steuck at oracle.com Fri Jul 1 21:27:13 2011 From: lana.steuck at oracle.com (lana.steuck at oracle.com) Date: Fri, 01 Jul 2011 21:27:13 +0000 Subject: [OpenJDK 2D-Dev] hg: jdk8/2d/langtools: 29 new changesets Message-ID: <20110701212825.8BBAC47105@hg.openjdk.java.net> Changeset: 8eb952f43b11 Author: katleman Date: 2011-05-25 13:32 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/8eb952f43b11 7044486: open jdk repos have files with incorrect copyright headers, which can end up in src bundles Reviewed-by: ohair, trims ! src/share/classes/com/sun/source/tree/UnionTypeTree.java ! src/share/classes/com/sun/tools/classfile/ClassTranslator.java ! src/share/classes/com/sun/tools/classfile/Dependencies.java ! src/share/classes/javax/lang/model/util/AbstractTypeVisitor7.java ! src/share/classes/javax/lang/model/util/ElementKindVisitor7.java ! test/tools/javac/4241573/T4241573.java ! test/tools/javac/6508981/TestInferBinaryName.java ! test/tools/javac/TryWithResources/DuplicateResource.java ! test/tools/javac/api/6411310/Test.java ! test/tools/javac/api/T6838467.java ! test/tools/javac/api/T6877206.java ! test/tools/javac/api/TestClientCodeWrapper.java ! test/tools/javac/api/TestJavacTask_Lock.java ! test/tools/javac/api/TestJavacTask_Multiple.java ! test/tools/javac/api/TestJavacTask_ParseAttrGen.java ! test/tools/javac/multicatch/model/ModelChecker.java ! test/tools/javac/processing/model/element/TestMissingElement2/TestMissingGenericInterface1.java ! test/tools/javac/processing/model/element/TestMissingElement2/TestMissingGenericInterface2.java ! test/tools/javac/processing/model/element/TestMissingElement2/TestMissingInterface.java ! test/tools/javac/processing/model/util/deprecation/TestDeprecation.java ! test/tools/javac/tree/T6963934.java Changeset: 9f25c6a3ac23 Author: schien Date: 2011-05-26 20:20 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/9f25c6a3ac23 Added tag jdk7-b144 for changeset 8eb952f43b11 ! .hgtags Changeset: 6bb526ccf5ff Author: mcimadamore Date: 2011-05-23 11:55 +0100 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/6bb526ccf5ff 7046348: Regression: javac complains of missing classfile for a seemingly unrelated interface Summary: Types.implementation forces unnecessary symbol completion on superinterfaces of a given type Reviewed-by: jjg ! src/share/classes/com/sun/tools/javac/code/Symbol.java ! src/share/classes/com/sun/tools/javac/code/Types.java ! src/share/classes/com/sun/tools/javac/comp/Check.java + test/tools/javac/scope/7046348/EagerInterfaceCompletionTest.java Changeset: 6211df69f7e0 Author: jeff Date: 2011-05-27 15:02 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/6211df69f7e0 7045697: JDK7 THIRD PARTY README update Reviewed-by: lana ! THIRD_PARTY_README Changeset: 6762754eb7c0 Author: jjg Date: 2011-06-01 11:25 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/6762754eb7c0 7042623: Regression: javac silently crash when attributing non-existent annotation Reviewed-by: mcimadamore ! src/share/classes/com/sun/tools/javac/comp/Check.java + test/tools/javac/T7042623.java + test/tools/javac/T7042623.out Changeset: c455e2ae5c93 Author: lana Date: 2011-06-02 13:38 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/c455e2ae5c93 Merge Changeset: 9ff91d0e7154 Author: schien Date: 2011-06-07 14:01 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/9ff91d0e7154 Added tag jdk7-b145 for changeset c455e2ae5c93 ! .hgtags Changeset: f27b6f45a449 Author: schien Date: 2011-06-08 10:25 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/f27b6f45a449 Merge Changeset: 347349c981f2 Author: jjh Date: 2011-06-09 09:13 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/347349c981f2 7052782: Two langtools regression tests fail due to fix for 7034977 which removed the invokeGeneric method Summary: Change the tests to call invoke instead of invokeGeneric Reviewed-by: jrose, mcimadamore ! test/tools/javac/meth/InvokeMH.java ! test/tools/javac/meth/XlintWarn.java Changeset: b8a2c9c87018 Author: lana Date: 2011-06-10 11:44 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/b8a2c9c87018 Merge Changeset: 588d366d96df Author: asaha Date: 2011-04-21 16:16 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/588d366d96df Merge Changeset: 219b522d09e4 Author: asaha Date: 2011-05-04 12:00 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/219b522d09e4 Merge Changeset: 145d832616d3 Author: asaha Date: 2011-05-05 22:30 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/145d832616d3 Merge Changeset: 8b6e015ae7d0 Author: asaha Date: 2011-05-24 11:12 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/8b6e015ae7d0 Merge - test/tools/javac/generics/diamond/7030150/Neg01.java - test/tools/javac/generics/diamond/7030150/Neg01.out - test/tools/javac/generics/diamond/7030150/Neg02.java - test/tools/javac/generics/diamond/7030150/Neg02.out - test/tools/javac/generics/diamond/7030150/Neg03.java - test/tools/javac/generics/diamond/7030150/Neg03.out - test/tools/javac/generics/diamond/7030150/Pos01.java - test/tools/javac/generics/diamond/7030150/Pos02.java Changeset: 35cc19ae29b5 Author: asaha Date: 2011-05-26 17:26 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/35cc19ae29b5 Merge Changeset: 8b65930602c3 Author: asaha Date: 2011-05-26 21:42 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/8b65930602c3 Merge Changeset: 0adb806caf9d Author: asaha Date: 2011-06-06 10:22 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/0adb806caf9d Merge Changeset: bb1fdcebde01 Author: asaha Date: 2011-06-03 07:54 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/bb1fdcebde01 Merge Changeset: 8ed03b0e3c9c Author: asaha Date: 2011-06-06 11:08 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/8ed03b0e3c9c Merge Changeset: f494ca4bca0d Author: lana Date: 2011-06-15 16:11 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/f494ca4bca0d Merge Changeset: 7eba9df190ae Author: bpatel Date: 2011-06-17 20:12 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/7eba9df190ae 7052425: Change the look and feel of the javadoc generate HTML pages using stylesheet Reviewed-by: jjg ! src/share/classes/com/sun/tools/doclets/formats/html/HtmlDoclet.java + src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/background.gif - src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/inherit.gif ! src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/stylesheet.css + src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/tab.gif + src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/titlebar.gif + src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/titlebar_end.gif ! test/com/sun/javadoc/AccessH1/AccessH1.java ! test/com/sun/javadoc/testStylesheet/TestStylesheet.java Changeset: c3a3440fe6e8 Author: bpatel Date: 2011-06-17 20:14 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/c3a3440fe6e8 Merge Changeset: 9425dd4f53d5 Author: schien Date: 2011-06-18 09:04 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/9425dd4f53d5 Merge Changeset: 436fb6aeda5a Author: schien Date: 2011-06-20 16:25 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/436fb6aeda5a Added tag jdk7-b146 for changeset 9425dd4f53d5 ! .hgtags Changeset: 06b6bbbe2787 Author: schien Date: 2011-06-20 17:39 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/06b6bbbe2787 Merge - src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/inherit.gif Changeset: a72412b148d7 Author: jeff Date: 2011-06-22 10:11 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/a72412b148d7 7057046: Add embedded license to THIRD PARTY README Reviewed-by: lana ! THIRD_PARTY_README Changeset: 58bc532d6341 Author: lana Date: 2011-06-22 12:41 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/58bc532d6341 Merge Changeset: ce654f4ecfd8 Author: schien Date: 2011-06-27 13:21 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/ce654f4ecfd8 Added tag jdk7-b147 for changeset 58bc532d6341 ! .hgtags Changeset: e0dec1645823 Author: schien Date: 2011-06-27 14:11 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/e0dec1645823 Merge From lana.steuck at oracle.com Fri Jul 1 21:31:07 2011 From: lana.steuck at oracle.com (lana.steuck at oracle.com) Date: Fri, 01 Jul 2011 21:31:07 +0000 Subject: [OpenJDK 2D-Dev] hg: jdk8/2d/jdk: 95 new changesets Message-ID: <20110701214657.D66C847109@hg.openjdk.java.net> Changeset: 23bdcede4e39 Author: katleman Date: 2011-05-25 13:32 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/23bdcede4e39 7044486: open jdk repos have files with incorrect copyright headers, which can end up in src bundles Reviewed-by: ohair, trims ! src/linux/doc/man/ja/keytool.1 ! src/linux/doc/man/keytool.1 ! src/share/classes/java/io/SerialCallbackContext.java ! src/share/classes/sun/io/ByteToCharCp833.java ! src/share/classes/sun/io/CharToByteCp833.java ! src/share/classes/sun/misc/FpUtils.java ! src/share/classes/sun/security/provider/certpath/URICertStore.java ! src/solaris/doc/sun/man/man1/ja/keytool.1 ! src/solaris/doc/sun/man/man1/keytool.1 ! test/com/sun/net/httpserver/Test10.java ! test/java/awt/List/ScrollOutside/ScrollOut.java ! test/java/awt/event/MouseWheelEvent/InfiniteRecursion/InfiniteRecursion.java ! test/java/awt/event/MouseWheelEvent/InfiniteRecursion/InfiniteRecursion_1.java ! test/java/awt/event/MouseWheelEvent/InfiniteRecursion/InfiniteRecursion_2.java ! test/java/awt/event/MouseWheelEvent/InfiniteRecursion/InfiniteRecursion_3.java ! test/java/awt/event/MouseWheelEvent/InfiniteRecursion/InfiniteRecursion_4.java ! test/java/awt/image/IncorrectSampleMaskTest.java ! test/java/lang/invoke/MethodTypeTest.java ! test/java/rmi/server/UnicastRemoteObject/exportObject/GcDuringExport.java ! test/java/util/EnumMap/DistinctEntrySetElements.java ! test/java/util/EnumMap/EntrySetIteratorRemoveInvalidatesEntry.java ! test/java/util/EnumMap/SimpleSerialization.java ! test/java/util/EnumSet/LargeEnumIteratorRemoveResilience.java ! test/java/util/EnumSet/SmallEnumIteratorRemoveResilience.java ! test/java/util/Hashtable/SerializationDeadlock.java ! test/java/util/Hashtable/SimpleSerialization.java ! test/java/util/IdentityHashMap/DistinctEntrySetElements.java ! test/java/util/IdentityHashMap/EntrySetIteratorRemoveInvalidatesEntry.java ! test/java/util/Vector/SerializationDeadlock.java ! test/java/util/Vector/SimpleSerialization.java ! test/java/util/concurrent/ConcurrentHashMap/DistinctEntrySetElements.java ! test/java/util/zip/ZipFile/ClearStaleZipFileInputStreams.java ! test/sun/net/InetAddress/nameservice/chaining/META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor ! test/tools/launcher/TestHelper.java ! test/tools/pack200/CommandLineTests.java ! test/tools/pack200/Pack200Test.java ! test/tools/pack200/Utils.java Changeset: c344779fab58 Author: schien Date: 2011-05-26 20:20 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/c344779fab58 Added tag jdk7-b144 for changeset 23bdcede4e39 ! .hgtags Changeset: f09930d526ba Author: jrose Date: 2011-05-26 17:37 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/f09930d526ba 7032323: code changes for JSR 292 EG adjustments to API, through Public Review Summary: API code changes and javadoc changes following JSR 292 Public Review comments, through PFD Reviewed-by: never ! src/share/classes/java/lang/BootstrapMethodError.java ! src/share/classes/java/lang/ClassValue.java ! src/share/classes/java/lang/invoke/AdapterMethodHandle.java ! src/share/classes/java/lang/invoke/BoundMethodHandle.java ! src/share/classes/java/lang/invoke/CallSite.java ! src/share/classes/java/lang/invoke/ConstantCallSite.java ! src/share/classes/java/lang/invoke/Invokers.java ! src/share/classes/java/lang/invoke/MemberName.java ! src/share/classes/java/lang/invoke/MethodHandle.java ! src/share/classes/java/lang/invoke/MethodHandleImpl.java ! src/share/classes/java/lang/invoke/MethodHandleNatives.java + src/share/classes/java/lang/invoke/MethodHandleProxies.java ! src/share/classes/java/lang/invoke/MethodHandles.java ! src/share/classes/java/lang/invoke/MethodType.java ! src/share/classes/java/lang/invoke/MutableCallSite.java ! src/share/classes/java/lang/invoke/SwitchPoint.java ! src/share/classes/java/lang/invoke/package-info.java ! src/share/classes/sun/invoke/util/ValueConversions.java ! src/share/classes/sun/invoke/util/VerifyAccess.java ! src/share/classes/sun/invoke/util/Wrapper.java ! test/java/lang/invoke/6998541/Test6998541.java ! test/java/lang/invoke/InvokeDynamicPrintArgs.java ! test/java/lang/invoke/InvokeGenericTest.java ! test/java/lang/invoke/JavaDocExamplesTest.java ! test/java/lang/invoke/MethodHandlesTest.java ! test/java/lang/invoke/indify/Indify.java Changeset: 81f957f86ba5 Author: jcoomes Date: 2011-05-27 19:03 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/81f957f86ba5 Merge Changeset: bc97b962330e Author: mfang Date: 2011-05-26 20:32 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/bc97b962330e 7045184: GTK L&F doesn't have hotkeys in jdk7 b141, while b139 has. Reviewed-by: yhuang, ogino ! src/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk.properties Changeset: 6943c4d9caa3 Author: mfang Date: 2011-05-31 13:58 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/6943c4d9caa3 Merge Changeset: 7c5bc5a807ee Author: dholmes Date: 2011-05-27 19:04 -0400 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/7c5bc5a807ee 7024120: Verify reduced JRE contents for java 7 Summary: stripped all symbols from libs and executables to reduce JRE size. Restored missing classes needed to pass JCK in headless mode Reviewed-by: bobv, ohair ! make/common/Defs-embedded.gmk ! make/common/Release-embedded.gmk Changeset: f4895b3fe1be Author: dholmes Date: 2011-05-31 17:28 -0400 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/f4895b3fe1be Merge Changeset: eab27338b3d9 Author: schien Date: 2011-06-01 11:16 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/eab27338b3d9 Merge Changeset: 8d91855a1f4e Author: prr Date: 2011-05-27 13:25 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/8d91855a1f4e 7046587: Outlines in OTF/CFF fonts are misclassified as quadratic curves Reviewed-by: igor ! src/share/classes/sun/font/FileFontStrike.java ! src/share/classes/sun/font/FontScaler.java ! src/share/classes/sun/font/FreetypeFontScaler.java ! src/share/classes/sun/font/NullFontScaler.java Changeset: 0b0b92707cf5 Author: bae Date: 2011-05-30 12:05 +0400 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/0b0b92707cf5 7032904: XRender: Java2Demo : Infinite loop in Java_sun_java2d_loops_MaskBlit_MaskBlit on OEL 5.6 x64 Reviewed-by: prr ! src/solaris/classes/sun/awt/X11GraphicsEnvironment.java ! src/solaris/native/sun/java2d/x11/XRBackendNative.c Changeset: 290daca0a693 Author: prr Date: 2011-05-30 22:00 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/290daca0a693 7049874: OpenJDK Build breakage fix: freetypescaler.c needs to match updated signature Reviewed-by: lana, igor ! src/share/native/sun/font/freetypeScaler.c Changeset: b351af09bfa3 Author: lana Date: 2011-06-02 13:35 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/b351af09bfa3 Merge Changeset: d2081a1f417f Author: bagiras Date: 2011-05-27 11:45 +0400 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/d2081a1f417f 7045174: Most of the tests in awt area fails with jdk 7b142 on windows with -Xcheck:jni Reviewed-by: art, denis ! src/windows/native/sun/windows/awt_Object.cpp ! src/windows/native/sun/windows/awt_Toolkit.cpp Changeset: 000a845b1e38 Author: denis Date: 2011-05-28 12:56 +0400 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/000a845b1e38 7046325: Broken links in java.awt.Toolkit's javadoc Reviewed-by: dav, yan ! src/share/classes/java/awt/Toolkit.java Changeset: eab94f59b6dc Author: dcherepanov Date: 2011-05-30 13:25 +0400 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/eab94f59b6dc 7045354: Korean IME's Hanja candidate window is not displayed on IMFDemo Reviewed-by: art, ant ! src/windows/native/sun/windows/awt_Component.cpp Changeset: f05164caa490 Author: serb Date: 2011-05-30 17:16 +0400 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/f05164caa490 7045193: interactive JCK tests java_awt/interactive/FileDialogTests fail Reviewed-by: dcherepanov, dav, art, denis ! src/solaris/classes/sun/awt/X11/GtkFileDialogPeer.java Changeset: b955226868af Author: lana Date: 2011-06-02 13:36 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/b955226868af Merge Changeset: 1fbaf2b688a6 Author: rupashka Date: 2011-05-24 11:37 +0400 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/1fbaf2b688a6 7045593: Possible Regression : JTextfield cursor placement behavior algorithm has changed. Reviewed-by: peterz ! src/share/classes/javax/swing/text/Utilities.java + test/javax/swing/text/Utilities/bug7045593.java Changeset: 442237d3ec2c Author: rupashka Date: 2011-05-28 11:55 +0400 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/442237d3ec2c 7048204: NPE from NimbusLookAndFeel.addDefault Reviewed-by: peterz ! src/share/classes/javax/swing/plaf/nimbus/NimbusLookAndFeel.java + test/javax/swing/plaf/nimbus/Test7048204.java Changeset: 386516fdf40b Author: lana Date: 2011-06-02 13:37 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/386516fdf40b Merge Changeset: 0a80650409e1 Author: mullan Date: 2011-05-24 14:15 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/0a80650409e1 7044443: Permissions resolved incorrectly for jar protocol (Patch from bugs.openjdk.java.net) Reviewed-by: alanb, chegar Contributed-by: dbhole at redhat.com ! src/share/classes/sun/security/provider/PolicyFile.java + test/java/security/Policy/GetPermissions/JarURL.java Changeset: ace2dfdecda1 Author: mullan Date: 2011-05-24 14:32 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/ace2dfdecda1 Merge Changeset: 70942be348af Author: jeff Date: 2011-05-27 15:02 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/70942be348af 7045697: JDK7 THIRD PARTY README update Reviewed-by: lana ! THIRD_PARTY_README Changeset: b49a0af85821 Author: vinnie Date: 2011-05-30 16:37 +0100 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/b49a0af85821 7049173: Replace the software license for ECC native code Reviewed-by: alanb ! src/share/native/sun/security/ec/impl/ec.c ! src/share/native/sun/security/ec/impl/ec.h ! src/share/native/sun/security/ec/impl/ec2.h ! src/share/native/sun/security/ec/impl/ec2_163.c ! src/share/native/sun/security/ec/impl/ec2_193.c ! src/share/native/sun/security/ec/impl/ec2_233.c ! src/share/native/sun/security/ec/impl/ec2_aff.c ! src/share/native/sun/security/ec/impl/ec2_mont.c ! src/share/native/sun/security/ec/impl/ec_naf.c ! src/share/native/sun/security/ec/impl/ecc_impl.h ! src/share/native/sun/security/ec/impl/ecdecode.c ! src/share/native/sun/security/ec/impl/ecl-curve.h ! src/share/native/sun/security/ec/impl/ecl-exp.h ! src/share/native/sun/security/ec/impl/ecl-priv.h ! src/share/native/sun/security/ec/impl/ecl.c ! src/share/native/sun/security/ec/impl/ecl.h ! src/share/native/sun/security/ec/impl/ecl_curve.c ! src/share/native/sun/security/ec/impl/ecl_gf.c ! src/share/native/sun/security/ec/impl/ecl_mult.c ! src/share/native/sun/security/ec/impl/ecp.h ! src/share/native/sun/security/ec/impl/ecp_192.c ! src/share/native/sun/security/ec/impl/ecp_224.c ! src/share/native/sun/security/ec/impl/ecp_256.c ! src/share/native/sun/security/ec/impl/ecp_384.c ! src/share/native/sun/security/ec/impl/ecp_521.c ! src/share/native/sun/security/ec/impl/ecp_aff.c ! src/share/native/sun/security/ec/impl/ecp_jac.c ! src/share/native/sun/security/ec/impl/ecp_jm.c ! src/share/native/sun/security/ec/impl/ecp_mont.c ! src/share/native/sun/security/ec/impl/logtab.h ! src/share/native/sun/security/ec/impl/mp_gf2m-priv.h ! src/share/native/sun/security/ec/impl/mp_gf2m.c ! src/share/native/sun/security/ec/impl/mp_gf2m.h ! src/share/native/sun/security/ec/impl/mpi-config.h ! src/share/native/sun/security/ec/impl/mpi-priv.h ! src/share/native/sun/security/ec/impl/mpi.c ! src/share/native/sun/security/ec/impl/mpi.h ! src/share/native/sun/security/ec/impl/mplogic.c ! src/share/native/sun/security/ec/impl/mplogic.h ! src/share/native/sun/security/ec/impl/mpmontg.c ! src/share/native/sun/security/ec/impl/mpprime.h ! src/share/native/sun/security/ec/impl/oid.c ! src/share/native/sun/security/ec/impl/secitem.c ! src/share/native/sun/security/ec/impl/secoidt.h Changeset: 4ed7c877a463 Author: michaelm Date: 2011-05-30 23:36 +0100 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/4ed7c877a463 7042550: Reintegrate 6569621 Reviewed-by: chegar, alanb ! src/share/classes/java/net/InetAddress.java ! src/share/classes/java/net/Socket.java ! src/share/classes/java/net/SocketPermission.java + src/share/classes/sun/net/RegisteredDomain.java ! src/share/classes/sun/net/www/URLConnection.java ! src/share/classes/sun/net/www/http/HttpClient.java Changeset: c79a089ae13b Author: wetmore Date: 2011-05-31 12:45 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/c79a089ae13b 7042097: JDK 7's Unlimited Cryptographic Policy bundle text files must be updated. Reviewed-by: valeriep ! make/javax/crypto/Makefile Changeset: a00f48c96345 Author: lancea Date: 2011-06-02 12:02 -0400 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/a00f48c96345 7049107: Cannot call initCause() on BatchUpdateException Reviewed-by: darcy ! src/share/classes/java/sql/BatchUpdateException.java Changeset: 39de8937c1d8 Author: lana Date: 2011-06-02 13:38 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/39de8937c1d8 Merge Changeset: 8318d03e1766 Author: jrose Date: 2011-06-01 23:56 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/8318d03e1766 7049415: Failure of resolution of sym.reference to the c.s.s. should be wrapped in BootstrapMethodError Summary: Wrap invokedynamic linkage errors in BootstrapMethodError, as needed. Reviewed-by: never ! src/share/classes/java/lang/invoke/MethodHandleNatives.java Changeset: 0b8b6eace473 Author: jrose Date: 2011-06-01 23:56 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/0b8b6eace473 7050328: (jsr-292) findConstructor throws ExceptionInInitializerError if run under SecurityManager Summary: Wrap system property and reflection accesses under doPrivileged. Ensure constant pool linkage bypasses the SM as specified. Reviewed-by: kvn, never ! src/share/classes/java/lang/invoke/MethodHandleImpl.java ! src/share/classes/java/lang/invoke/MethodHandleNatives.java ! src/share/classes/java/lang/invoke/MethodHandleStatics.java ! src/share/classes/java/lang/invoke/MethodHandles.java ! src/share/classes/sun/invoke/util/ValueConversions.java ! test/java/lang/invoke/InvokeDynamicPrintArgs.java Changeset: 34481a4012c3 Author: jrose Date: 2011-06-01 23:56 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/34481a4012c3 7049122: java/lang/invoke/RicochetTest.java with MAX_ARITY=255 in -Xcomp mode overflows code cache Summary: reduce the scope of the unit test (mark high water mark of testing with @ignore tags) Reviewed-by: never ! test/java/lang/invoke/RicochetTest.java Changeset: 802994506203 Author: jrose Date: 2011-06-03 11:20 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/802994506203 7051206: JSR 292 method name SwitchPoint.isValid is misleading to unwary users; should be hasBeenInvalidated Reviewed-by: kvn, never, ysr ! src/share/classes/java/lang/invoke/SwitchPoint.java ! test/java/lang/invoke/JavaDocExamplesTest.java Changeset: e8e6cdff5995 Author: trims Date: 2011-06-03 20:13 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/e8e6cdff5995 Merge Changeset: 8f19b165347b Author: bae Date: 2011-06-04 23:08 +0400 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/8f19b165347b 7042594: 3 testis api/java_awt/Color/ICC_ProfileRGB/index.html fail against RI b138 OEL6x64. Reviewed-by: prr ! src/share/classes/java/awt/color/ICC_Profile.java ! src/share/native/sun/java2d/cmm/lcms/LCMS.c ! src/share/native/sun/java2d/cmm/lcms/cmsio0.c ! test/sun/java2d/cmm/ProfileOp/ReadWriteProfileTest.java + test/sun/java2d/cmm/ProfileOp/SetDataTest.java Changeset: bbb4cef2208b Author: lana Date: 2011-06-04 17:30 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/bbb4cef2208b Merge Changeset: 03a828e368ca Author: rupashka Date: 2011-06-04 01:13 +0400 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/03a828e368ca 6977587: GTK L&F: jnlp: java.io.IOException thrown when choosing more than 1 file in the dialog Reviewed-by: alexp ! src/share/classes/com/sun/java/swing/plaf/gtk/GTKFileChooserUI.java Changeset: 6c9c55ae313b Author: lana Date: 2011-06-03 22:14 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/6c9c55ae313b Merge Changeset: e81d259442ed Author: lana Date: 2011-06-04 17:32 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/e81d259442ed Merge Changeset: 53d759eb580c Author: alanb Date: 2011-06-04 11:18 +0100 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/53d759eb580c 7050358: (fs spec) Path.toUri doesn't allow custom providers to use opaque URIs Reviewed-by: sherman ! src/share/classes/java/nio/file/Path.java Changeset: 49aef5a5416e Author: mullan Date: 2011-06-04 06:45 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/49aef5a5416e 7050329: test/java/security/Policy/GetPermissions/JarURL.java fails on Windows Reviewed-by: alanb ! test/java/security/Policy/GetPermissions/JarURL.java + test/java/security/Policy/GetPermissions/JarURL.policy Changeset: 1f39ca0b9598 Author: mullan Date: 2011-06-04 06:52 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/1f39ca0b9598 Merge Changeset: 1e04b38b3824 Author: lana Date: 2011-06-04 17:33 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/1e04b38b3824 Merge Changeset: 7a341c412ea9 Author: schien Date: 2011-06-07 14:01 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/7a341c412ea9 Added tag jdk7-b145 for changeset 1e04b38b3824 ! .hgtags Changeset: e7493c32e598 Author: schien Date: 2011-06-08 10:24 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/e7493c32e598 Merge Changeset: ae731399e525 Author: dav Date: 2011-06-07 22:58 +0400 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/ae731399e525 7048568: Crash in Java_sun_awt_Win32GraphicsEnvironment_isVistaOS Reviewed-by: dcherepanov, art, amenkov ! src/windows/native/sun/windows/awt_Win32GraphicsDevice.cpp Changeset: f08fcae94813 Author: lana Date: 2011-06-10 11:43 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/f08fcae94813 Merge Changeset: 6e961c328276 Author: michaelm Date: 2011-06-08 10:56 +0100 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/6e961c328276 7050028: ISE "zip file closed" from JarURLConnection.getInputStream on JDK 7 when !useCaches Reviewed-by: chegar, alanb ! src/share/classes/sun/misc/URLClassPath.java + test/java/net/URLClassLoader/B7050028.java Changeset: b6ced5ad7a62 Author: dwanvik Date: 2011-06-10 17:44 +0200 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/b6ced5ad7a62 7046557: Changes to the Java DB README files in JDK7 Summary: Update /README.html with correct mention of Java DB, add JDK specific README files to /db and /demo/db. Reviewed-by: ohair ! make/common/Release.gmk Changeset: 646ab254ff80 Author: lana Date: 2011-06-10 11:44 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/646ab254ff80 Merge Changeset: aca0dc2b921c Author: weijun Date: 2011-02-09 11:50 +0800 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/aca0dc2b921c 6618658: Deserialization allows creation of mutable SignedObject Reviewed-by: hawtin, mullan ! src/share/classes/java/security/SignedObject.java + test/java/security/SignedObject/Correctness.java Changeset: df445f522425 Author: bae Date: 2011-02-17 12:21 +0300 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/df445f522425 7013519: [parfait] Integer overflows in 2D code Reviewed-by: prr, valeriep ! src/share/native/sun/awt/image/jpeg/imageioJPEG.c ! src/share/native/sun/font/layout/SunLayoutEngine.cpp Changeset: ccb2fcfb6d6b Author: chegar Date: 2011-02-18 13:31 +0000 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/ccb2fcfb6d6b 7013969: NetworkInterface.toString can reveal bindings Reviewed-by: alanb, michaelm, hawtin ! src/share/classes/java/net/NetworkInterface.java Changeset: 026adaac71f1 Author: dcherepanov Date: 2011-02-25 15:54 +0300 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/026adaac71f1 7012520: Heap overflow vulnerability in FileDialog.show() Reviewed-by: art, anthony ! src/windows/native/sun/windows/awt_FileDialog.cpp Changeset: d489f00d6c65 Author: flar Date: 2011-03-02 05:35 -0800 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/d489f00d6c65 7016495: Crash in Java 2D transforming an image with scale close to zero Reviewed-by: prr, bae ! src/share/classes/sun/java2d/pipe/DrawImage.java ! src/share/native/sun/java2d/loops/TransformHelper.c + test/java/awt/image/BufferedImage/TinyScale.java Changeset: fe27fe44ac51 Author: ksrini Date: 2011-03-03 14:16 -0800 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/fe27fe44ac51 7016985: (launcher) implement safe secure dll loading Reviewed-by: mchung ! src/windows/bin/java_md.c Changeset: 0efa64f13302 Author: chegar Date: 2011-04-05 14:49 +0100 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/0efa64f13302 7033865: JDK: Add private API for secure/restrictive loading of system dlls Reviewed-by: alanb ! src/share/native/common/jdk_util.h + src/solaris/native/common/jdk_util_md.h ! src/windows/native/common/jdk_util_md.c + src/windows/native/common/jdk_util_md.h Changeset: 67992a58bfba Author: ksrini Date: 2011-04-05 16:19 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/67992a58bfba 7032593: DLL_LOADING: Upgrade solution to 7016985 to reflect JDK7 solution Reviewed-by: mchung, asaha ! src/windows/bin/java_md.c Changeset: 7181441faf72 Author: dcherepanov Date: 2011-04-08 16:44 +0400 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/7181441faf72 7003962: AWT: securely load DLLs and launch executables using fully qualified path Reviewed-by: art, bae, alanb ! src/windows/native/sun/java2d/d3d/D3DPipelineManager.cpp ! src/windows/native/sun/java2d/opengl/OGLFuncs_md.h ! src/windows/native/sun/windows/DllUtil.cpp ! src/windows/native/sun/windows/DllUtil.h ! src/windows/native/sun/windows/ShellFolder2.cpp ! src/windows/native/sun/windows/ThemeReader.cpp ! src/windows/native/sun/windows/awt_Mlib.cpp ! src/windows/native/sun/windows/awt_TextArea.cpp ! src/windows/native/sun/windows/awt_TrayIcon.cpp ! src/windows/native/sun/windows/awt_Win32GraphicsEnv.cpp ! src/windows/native/sun/windows/stdhdrs.h Changeset: 05a3923f516f Author: dcherepanov Date: 2011-04-08 17:58 +0400 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/05a3923f516f 7035077: Minor addition to the changes for 7003962 Reviewed-by: chegar ! src/windows/native/sun/windows/DllUtil.cpp Changeset: afcc1530e68b Author: asaha Date: 2011-04-08 10:27 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/afcc1530e68b Merge - make/java/dyn/Makefile - src/share/classes/java/dyn/CallSite.java - src/share/classes/java/dyn/ClassValue.java - src/share/classes/java/dyn/ConstantCallSite.java - src/share/classes/java/dyn/InvokeDynamic.java - src/share/classes/java/dyn/InvokeDynamicBootstrapError.java - src/share/classes/java/dyn/Linkage.java - src/share/classes/java/dyn/MethodHandle.java - src/share/classes/java/dyn/MethodHandles.java - src/share/classes/java/dyn/MethodType.java - src/share/classes/java/dyn/MethodTypeForm.java - src/share/classes/java/dyn/MutableCallSite.java - src/share/classes/java/dyn/SwitchPoint.java - src/share/classes/java/dyn/VolatileCallSite.java - src/share/classes/java/dyn/WrongMethodTypeException.java - src/share/classes/java/dyn/package-info.java - src/share/classes/sun/dyn/Access.java - src/share/classes/sun/dyn/AdapterMethodHandle.java - src/share/classes/sun/dyn/BoundMethodHandle.java - src/share/classes/sun/dyn/CallSiteImpl.java - src/share/classes/sun/dyn/DirectMethodHandle.java - src/share/classes/sun/dyn/FilterGeneric.java - src/share/classes/sun/dyn/FilterOneArgument.java - src/share/classes/sun/dyn/FromGeneric.java - src/share/classes/sun/dyn/InvokeGeneric.java - src/share/classes/sun/dyn/Invokers.java - src/share/classes/sun/dyn/MemberName.java - src/share/classes/sun/dyn/MethodHandleImpl.java - src/share/classes/sun/dyn/MethodHandleNatives.java - src/share/classes/sun/dyn/MethodTypeImpl.java - src/share/classes/sun/dyn/SpreadGeneric.java - src/share/classes/sun/dyn/ToGeneric.java - src/share/classes/sun/dyn/WrapperInstance.java - src/share/classes/sun/dyn/anon/AnonymousClassLoader.java - src/share/classes/sun/dyn/anon/ConstantPoolParser.java - src/share/classes/sun/dyn/anon/ConstantPoolPatch.java - src/share/classes/sun/dyn/anon/ConstantPoolVisitor.java - src/share/classes/sun/dyn/anon/InvalidConstantPoolFormatException.java - src/share/classes/sun/dyn/empty/Empty.java - src/share/classes/sun/dyn/package-info.java - src/share/classes/sun/dyn/util/BytecodeDescriptor.java - src/share/classes/sun/dyn/util/BytecodeName.java - src/share/classes/sun/dyn/util/ValueConversions.java - src/share/classes/sun/dyn/util/VerifyAccess.java - src/share/classes/sun/dyn/util/VerifyType.java - src/share/classes/sun/dyn/util/Wrapper.java - src/share/classes/sun/dyn/util/package-info.java ! src/share/native/sun/awt/image/jpeg/imageioJPEG.c - test/java/dyn/ClassValueTest.java - test/java/dyn/InvokeDynamicPrintArgs.java - test/java/dyn/InvokeGenericTest.java - test/java/dyn/JavaDocExamplesTest.java - test/java/dyn/MethodHandlesTest.java - test/java/dyn/MethodTypeTest.java - test/java/dyn/indify/Indify.java Changeset: 557bd9b5d92f Author: asaha Date: 2011-04-08 10:31 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/557bd9b5d92f Merge Changeset: e142148d8b54 Author: asaha Date: 2011-04-12 14:23 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/e142148d8b54 Merge - src/share/classes/sun/security/ssl/DefaultSSLContextImpl.java Changeset: 76e0e562b617 Author: dcherepanov Date: 2011-04-15 17:06 +0400 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/76e0e562b617 7036952: build warning after the changes for 7003962 Reviewed-by: art, bae ! src/windows/native/sun/java2d/opengl/OGLFuncs_md.h Changeset: f8eddc85cc02 Author: zgu Date: 2011-04-15 09:53 -0400 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/f8eddc85cc02 7003964: SERV: securely load DLLs and launch executables using fully qualified path Summary: Linked in Windows libraries that are available on jdk7 supported platforms, and used GetModuleHandle instead of LoadLibrary for already loaded Dlls. Reviewed-by: dcubed, alanb ! make/com/sun/tools/attach/Makefile ! src/windows/classes/sun/tools/attach/WindowsAttachProvider.java ! src/windows/native/sun/tools/attach/WindowsAttachProvider.c ! src/windows/native/sun/tools/attach/WindowsVirtualMachine.c ! src/windows/native/sun/tracing/dtrace/jvm_symbols_md.c ! src/windows/npt/npt_md.h Changeset: 0865aa0ad9b2 Author: zgu Date: 2011-04-19 10:26 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/0865aa0ad9b2 Merge Changeset: 6f8a4d334fb2 Author: asaha Date: 2011-04-20 09:31 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/6f8a4d334fb2 Merge ! make/com/sun/tools/attach/Makefile ! src/share/classes/java/net/NetworkInterface.java ! src/share/native/sun/awt/image/jpeg/imageioJPEG.c ! src/windows/bin/java_md.c ! src/windows/native/sun/windows/awt_TrayIcon.cpp ! src/windows/native/sun/windows/awt_Win32GraphicsEnv.cpp Changeset: f3645b5d6e62 Author: asaha Date: 2011-04-20 21:24 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/f3645b5d6e62 Merge Changeset: b626f78c57e1 Author: asaha Date: 2011-04-21 08:38 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/b626f78c57e1 Merge Changeset: cec45f3353be Author: asaha Date: 2011-04-21 08:37 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/cec45f3353be Merge Changeset: 6133c9ee3a01 Author: asaha Date: 2011-04-21 08:39 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/6133c9ee3a01 Merge Changeset: dd06e8d3da91 Author: asaha Date: 2011-04-21 15:43 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/dd06e8d3da91 Merge Changeset: b2295905901a Author: asaha Date: 2011-04-21 16:42 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/b2295905901a Merge - src/share/classes/sun/security/ssl/DefaultSSLContextImpl.java Changeset: 3fedf261fb4f Author: valeriep Date: 2011-04-26 15:59 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/3fedf261fb4f 7003952: SEC: securely load DLLs and launch executables using fully qualified path Summary: Enforce full path when specifying library locations. Reviewed-by: wetmore, ohair ! make/sun/security/pkcs11/Makefile ! src/share/classes/sun/security/pkcs11/Config.java ! src/share/classes/sun/security/pkcs11/Secmod.java ! src/share/native/sun/security/pkcs11/j2secmod.c + test/sun/security/pkcs11/Provider/Absolute.cfg + test/sun/security/pkcs11/Provider/Absolute.java Changeset: 94ea3b8288f1 Author: alexp Date: 2011-05-04 11:35 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/94ea3b8288f1 7020198: ImageIcon creates Component with null acc Reviewed-by: rupashka, hawtin ! src/share/classes/javax/swing/ImageIcon.java Changeset: e6fdfb249e31 Author: asaha Date: 2011-05-04 16:39 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/e6fdfb249e31 Merge - src/share/native/sun/font/layout/Features.h ! src/windows/native/sun/windows/awt_FileDialog.cpp - test/javax/swing/text/GlyphView/6539700/bug6539700.java Changeset: 49244980d692 Author: asaha Date: 2011-05-05 22:29 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/49244980d692 Merge - src/share/classes/sun/security/util/SignatureFileManifest.java Changeset: 647b031200f0 Author: asaha Date: 2011-05-06 14:33 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/647b031200f0 Merge Changeset: 92b5197e9ff5 Author: asaha Date: 2011-05-26 21:37 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/92b5197e9ff5 Merge ! src/windows/native/sun/java2d/d3d/D3DPipelineManager.cpp ! src/windows/native/sun/windows/awt_TrayIcon.cpp Changeset: cca9ea306c6e Author: asaha Date: 2011-05-26 21:51 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/cca9ea306c6e Merge Changeset: dab3e66ebda7 Author: lana Date: 2011-06-06 19:04 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/dab3e66ebda7 Merge Changeset: 9f17be5136d1 Author: wetmore Date: 2011-06-09 14:24 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/9f17be5136d1 7052537: java/security/Security/NotInstalledProviders.java is causing -samevm tests to fail. Reviewed-by: valeriep, asaha, alanb ! test/java/security/Security/NoInstalledProviders.java Changeset: 4961be00d3b5 Author: lana Date: 2011-06-15 16:10 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/4961be00d3b5 Merge Changeset: cf0632d2db2c Author: jrose Date: 2011-06-14 22:47 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/cf0632d2db2c 7052202: JSR 292: Crash in sun.invoke.util.ValueConversions.fillArray Summary: Fix corner cases involving MethodHandles.permuteArguments with long or double argument lists. Reviewed-by: twisti, never ! src/share/classes/java/lang/invoke/AdapterMethodHandle.java ! src/share/classes/java/lang/invoke/MethodHandleImpl.java ! src/share/classes/java/lang/invoke/MethodHandleNatives.java ! src/share/classes/java/lang/invoke/SwitchPoint.java + test/java/lang/invoke/PermuteArgsTest.java Changeset: a65fa0f6717e Author: trims Date: 2011-06-17 16:25 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/a65fa0f6717e Merge Changeset: c46f97579fe6 Author: alanb Date: 2011-06-17 16:47 +0100 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/c46f97579fe6 7055508: (aio) EXCEPTION_ACCESS_VIOLATION in AsynchronousSocketChannel.connect on Windows 7 Reviewed-by: chegar ! src/windows/native/sun/nio/ch/WindowsAsynchronousSocketChannelImpl.c Changeset: c102e1221afa Author: lana Date: 2011-06-17 10:27 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/c102e1221afa Merge Changeset: 539e576793a8 Author: lana Date: 2011-06-18 10:12 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/539e576793a8 Merge Changeset: 7b4f4230fecf Author: schien Date: 2011-06-20 16:25 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/7b4f4230fecf Added tag jdk7-b146 for changeset 539e576793a8 ! .hgtags Changeset: f2928d86aab0 Author: schien Date: 2011-06-20 17:38 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/f2928d86aab0 Merge Changeset: cfd7602f5c52 Author: jeff Date: 2011-06-22 10:11 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/cfd7602f5c52 7057046: Add embedded license to THIRD PARTY README Reviewed-by: lana ! THIRD_PARTY_README Changeset: f097ca2434b1 Author: lana Date: 2011-06-22 12:41 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/f097ca2434b1 Merge Changeset: 9b8c96f96a0f Author: schien Date: 2011-06-27 13:21 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/9b8c96f96a0f Added tag jdk7-b147 for changeset f097ca2434b1 ! .hgtags Changeset: fc350fd41f31 Author: schien Date: 2011-06-27 14:10 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/fc350fd41f31 Merge Changeset: 74598b748a57 Author: lana Date: 2011-07-01 12:26 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/74598b748a57 Merge From james.graham at oracle.com Sat Jul 2 01:03:42 2011 From: james.graham at oracle.com (Jim Graham) Date: Fri, 01 Jul 2011 18:03:42 -0700 Subject: [OpenJDK 2D-Dev] Question about SurfaceData lock functions In-Reply-To: References: Message-ID: <4E0E6E6E.1020401@oracle.com> Hi Clemens, I'm pretty sure that BufImgSurfaceData does not lock the toolkit lock. I think only the X11SD needs that as it needs to serialize access to X11 and it may need to read back pixels or send pixels via Xlib. I'm not an expert on the internals of the OGL surface data, but I imagine it does not implement lock/unlock/getrasinfo because there are no "loops" defined for its surfaces and it makes sure that it redirects all calls at the upper levels into OGL API calls... ...jim On 7/1/2011 1:03 AM, Clemens Eisserer wrote: > Hi, > > Just to be sure, Is it allowed/possible to use a per-surface locking > structure for SurfaceData's lock/unlock functions to improve > concurrency? > All OpenJDK pipeline implementations seem to lock the toolkit lock, so > maybe the software routines expect the toolkit lock to be locked. > > How do fallbacks work with the OpenGL pipeline? I just realized it > doesn't implement the native lock/unlock/getrasinfo functions, and > getRaster() seems to be unimplemented also. > > Thanks, Clemens From linuxhippy at gmail.com Sat Jul 2 08:47:00 2011 From: linuxhippy at gmail.com (Clemens Eisserer) Date: Sat, 2 Jul 2011 10:47:00 +0200 Subject: [OpenJDK 2D-Dev] Question about SurfaceData lock functions In-Reply-To: <4E0E6E6E.1020401@oracle.com> References: <4E0E6E6E.1020401@oracle.com> Message-ID: Hi Jim, > I'm pretty sure that BufImgSurfaceData does not lock the toolkit lock. I > think only the X11SD needs that as it needs to serialize access to X11 and > it may need to read back pixels or send pixels via Xlib. Thanks for the clarification. That should help scalability a lot for my use-case :) - Clemens From suenaga.yasumasa at oss.ntt.co.jp Fri Jul 8 01:58:05 2011 From: suenaga.yasumasa at oss.ntt.co.jp (Yasumasa Suenaga) Date: Fri, 08 Jul 2011 10:58:05 +0900 Subject: [OpenJDK 2D-Dev] 7044285: 64 bit VM crashes in Java_sun_java2d_loops_MaskFill_MaskFill Message-ID: <4E16642D.8080801@oss.ntt.co.jp> Hi, I posted the email attached to this email. How about the situation of this bug? According to the BugDatabase, - Synopsis has changed - Category has changed to "java:classes_2d" - State has changed to "3-Accepted" So, I guess that this bug is fixing in Oracle Corp. now. If cause of this bug is integer overflow, we have only the use of data type which size is same as the pointer. So, I suggested the cast to ptrdiff_t. Another solution, data type are changed into jlong from jint "rasInfo" and "rasInfo.bounds" . However, to change the data type affects another code widely. When I checked coredump image, related members' data type was "jint" (32 bits). (gdb) ptype rasInfo type = struct { SurfaceDataBounds bounds; void *rasBase; jint pixelBitOffset; jint pixelStride; <- jint scanStride; <- unsigned int lutSize; jint *lutBase; unsigned char *invColorTable; char *redErrTable; char *grnErrTable; char *bluErrTable; int *invGrayTable; union { void *align; char data[64]; } priv; } (gdb) ptype rasInfo.bounds type = struct { jint x1; <- jint y1; <- jint x2; jint y2; } In the LP64 architecture, the size of pointer is 64 bits. Thanks, Yasumasa -------------- next part -------------- An embedded message was scrubbed... From: Yasumasa Suenaga Subject: 7044285: VM crashes in server app Date: Mon, 06 Jun 2011 20:24:08 +0900 Size: 7486 URL: From lana.steuck at oracle.com Fri Jul 8 22:07:42 2011 From: lana.steuck at oracle.com (lana.steuck at oracle.com) Date: Fri, 08 Jul 2011 22:07:42 +0000 Subject: [OpenJDK 2D-Dev] hg: jdk8/2d/langtools: 9 new changesets Message-ID: <20110708220803.577E1472B8@hg.openjdk.java.net> Changeset: defdd98cb7ce Author: darcy Date: 2011-06-01 23:56 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/defdd98cb7ce 7025784: Add SourceVersion.RELEASE_8 7025786: Add -source 8 and -target 8 to javac 7025789: Change javac source and target default to 8 Reviewed-by: jjg ! src/share/classes/com/sun/tools/javac/code/Source.java ! src/share/classes/com/sun/tools/javac/jvm/Target.java ! src/share/classes/com/sun/tools/javac/processing/PrintingProcessor.java ! src/share/classes/javax/lang/model/SourceVersion.java ! test/tools/javac/6330997/T6330997.java ! test/tools/javac/api/T6395981.java ! test/tools/javac/processing/warnings/TestSourceVersionWarnings.java ! test/tools/javac/quid/T6999438.java ! test/tools/javac/versions/check.sh Changeset: 3b1fd4ac2e71 Author: darcy Date: 2011-06-13 12:17 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/3b1fd4ac2e71 7052122: Update JDK_MINOR_VERSION for JDK 8 Reviewed-by: mr, katleman + test/tools/javac/processing/model/TestSourceVersion.java Changeset: 4844a9fd3a62 Author: darcy Date: 2011-06-22 17:07 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/4844a9fd3a62 6449184: Provide JavacProcessingEnvironment.getWriter Reviewed-by: jjg ! src/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java ! test/tools/javac/util/T6597678.java Changeset: 18002d039806 Author: jjg Date: 2011-06-23 11:49 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/18002d039806 7058174: Reduce langtools build warnings Reviewed-by: jjg Contributed-by: alexandre.boulgakov at oracle.com ! make/build.xml ! make/tools/CompileProperties/CompileProperties.java Changeset: d59414955614 Author: lana Date: 2011-06-22 23:26 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/d59414955614 Merge - src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/inherit.gif Changeset: 9eb36cac6b64 Author: lana Date: 2011-06-23 17:30 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/9eb36cac6b64 Merge Changeset: f74e4269a50a Author: darcy Date: 2011-06-24 13:52 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/f74e4269a50a 6575445: Update annotation processor to only use java.util.ServiceLoader Reviewed-by: jjg ! src/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java ! src/share/classes/com/sun/tools/javac/resources/compiler.properties ! test/tools/javac/diags/examples.not-yet.txt Changeset: 858ae8fec72f Author: jjg Date: 2011-06-30 12:00 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/858ae8fec72f 7060926: Attr.PostAttrAnalyzer misses a case Reviewed-by: mcimadamore ! src/share/classes/com/sun/tools/javac/comp/Attr.java + test/tools/javac/failover/FailOver15.java + test/tools/javac/failover/FailOver15.out Changeset: 469e3bec9b27 Author: lana Date: 2011-06-30 14:19 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/langtools/rev/469e3bec9b27 Merge From lana.steuck at oracle.com Fri Jul 8 22:08:17 2011 From: lana.steuck at oracle.com (lana.steuck at oracle.com) Date: Fri, 08 Jul 2011 22:08:17 +0000 Subject: [OpenJDK 2D-Dev] hg: jdk8/2d/jdk: 36 new changesets Message-ID: <20110708221422.2A559472B9@hg.openjdk.java.net> Changeset: bb481604e929 Author: lana Date: 2011-06-30 14:16 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/bb481604e929 Merge Changeset: b8bcb12acea6 Author: weijun Date: 2011-05-27 09:01 +0800 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/b8bcb12acea6 7048466: Move sun.misc.JavaxSecurityAuthKerberosAccess to sun.security.krb5 package Reviewed-by: weijun, alanb Contributed-by: Mandy Chung ! src/share/classes/javax/security/auth/kerberos/JavaxSecurityAuthKerberosAccessImpl.java ! src/share/classes/javax/security/auth/kerberos/KeyTab.java - src/share/classes/sun/misc/JavaxSecurityAuthKerberosAccess.java ! src/share/classes/sun/misc/SharedSecrets.java ! src/share/classes/sun/security/jgss/krb5/Krb5Util.java + src/share/classes/sun/security/krb5/JavaxSecurityAuthKerberosAccess.java + src/share/classes/sun/security/krb5/KerberosSecrets.java Changeset: 0da0a4d22fba Author: dcubed Date: 2011-06-01 17:10 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/0da0a4d22fba 7048308: 4/4 LoggingDeadlock3 test timeout is too small Summary: Change timeout for test from 15 seconds to 80 seconds. Reviewed-by: dholmes ! test/java/util/logging/LoggingDeadlock3.java Changeset: 4a221501079a Author: dcubed Date: 2011-06-01 17:11 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/4a221501079a 7045594: 4/4 fix for 6977677 introduced a ResourceBundle race Summary: Fix Logger.getLogger() ResourceBundle name race. Reviewed-by: dholmes, mchung ! src/share/classes/java/util/logging/Logger.java + test/java/util/logging/LoggerResourceBundleRace.java + test/java/util/logging/RacingThreadsTest.java Changeset: 9b678733fa51 Author: weijun Date: 2011-06-08 14:01 +0800 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/9b678733fa51 7043737: klist does not detect non-existing keytab Reviewed-by: valeriep ! src/windows/classes/sun/security/krb5/internal/tools/Klist.java + test/sun/security/krb5/tools/ktmissing.sh Changeset: 958eea7dd46e Author: darcy Date: 2011-06-13 12:17 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/958eea7dd46e 7052122: Update JDK_MINOR_VERSION for JDK 8 Reviewed-by: mr, katleman ! make/common/shared/Defs.gmk ! make/docs/Makefile Changeset: 08fdfdb19ad6 Author: coffeys Date: 2011-06-14 18:05 +0100 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/08fdfdb19ad6 7049774: UID construction appears to hang if time changed backwards Reviewed-by: alanb, dholmes, chegar, mduigou ! src/share/classes/java/rmi/server/UID.java Changeset: 4e7a9fa84dea Author: darcy Date: 2011-06-14 12:31 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/4e7a9fa84dea 7054669: javadoc warnings from java.awt.Toolkit Reviewed-by: anthony ! src/share/classes/java/awt/Toolkit.java Changeset: 33e6291f3251 Author: darcy Date: 2011-06-15 08:37 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/33e6291f3251 7041252: Use j.u.Objects.equals in security classes Reviewed-by: weijun ! src/share/classes/sun/security/tools/KeyTool.java ! src/share/classes/sun/security/x509/DistributionPoint.java ! src/share/classes/sun/security/x509/DistributionPointName.java Changeset: 85480980cd5e Author: darcy Date: 2011-06-17 10:34 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/85480980cd5e 7021922: java.lang.annoation.IncompleteExceptions throws NPE when type is null Reviewed-by: alanb, forax ! src/share/classes/java/lang/annotation/IncompleteAnnotationException.java + test/java/lang/annotation/TestIncompleteAnnotationExceptionNPE.java Changeset: e373b4c95b4b Author: ksrini Date: 2011-06-17 15:17 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/e373b4c95b4b 7043125: TEST: tools/launcher/VersionCheck.java fails just against openjdk7 (b141 & b138-nightly) promoted Reviewed-by: darcy ! test/tools/launcher/ExecutionEnvironment.java ! test/tools/launcher/VersionCheck.java Changeset: b29888e74be3 Author: alanb Date: 2011-06-19 11:15 +0100 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/b29888e74be3 7056489: test/com/sun/jndi/ldap/ReadTimeoutTest.java hangs or times out Reviewed-by: forax, vinnie ! test/ProblemList.txt ! test/com/sun/jndi/ldap/ReadTimeoutTest.java Changeset: 82706552f7a3 Author: weijun Date: 2011-06-20 17:38 +0800 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/82706552f7a3 7054428: test/java/security/SecureClassLoader/DefineClassByteBuffer.java error Reviewed-by: alanb ! test/ProblemList.txt ! test/java/security/SecureClassLoader/DefineClassByteBuffer.java Changeset: 411d02c13385 Author: dl Date: 2011-06-20 12:27 +0100 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/411d02c13385 7051516: ThreadLocalRandom seed is never initialized so all instances generate the same sequence Reviewed-by: chegar, dholmes, mduigou ! src/share/classes/java/util/Random.java Changeset: a015dda3bdc6 Author: weijun Date: 2011-06-20 19:17 +0800 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/a015dda3bdc6 7054918: jdk_security1 test target cleanup Reviewed-by: alanb, smarks, vinnie ! test/ProblemList.txt ! test/java/security/BasicPermission/PermClass.java ! test/java/security/BasicPermission/SerialVersion.java ! test/java/security/KeyFactory/Failover.java ! test/java/security/KeyPairGenerator/Failover.java ! test/java/security/Provider/ChangeProviders.java ! test/java/security/Provider/GetInstance.java ! test/java/security/Provider/RemoveProvider.java ! test/java/security/Provider/Turkish.java ! test/java/security/Security/ClassLoaderDeadlock/Deadlock2.sh ! test/java/security/Security/NoInstalledProviders.java ! test/java/security/Security/SynchronizedAccess.java ! test/java/security/Security/removing/RemoveProviders.java ! test/java/security/UnresolvedPermission/Equals.java ! test/java/security/spec/EllipticCurveMatch.java + test/java/security/testlibrary/ProvidersSnapshot.java Changeset: 3c8f939ced1c Author: darcy Date: 2011-06-20 17:20 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/3c8f939ced1c 7055295: (reflect) add conventional constructor to GenericSignatureFormatError Reviewed-by: lancea, mduigou ! src/share/classes/java/lang/reflect/GenericSignatureFormatError.java Changeset: 70f14c2db078 Author: alanb Date: 2011-06-21 16:11 +0100 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/70f14c2db078 7056815: test/java/lang/ClassLoader/deadlock/TestOneWayDelegate.sh times out intermittently on busy machine Reviewed-by: mchung ! test/java/lang/ClassLoader/deadlock/TestOneWayDelegate.sh Changeset: 0bde4bed86e5 Author: alanb Date: 2011-06-22 15:13 +0100 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/0bde4bed86e5 7056447: test/java/lang/management/ManagementFactory/MBeanServerMXBeanUnsupportedTest.java fails in agentvm Reviewed-by: emcmanus ! test/java/lang/management/ManagementFactory/MBeanServerMXBeanUnsupportedTest.java Changeset: febb7f557135 Author: weijun Date: 2011-06-23 09:27 +0800 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/febb7f557135 7055362: jdk_security2 test target cleanup Reviewed-by: alanb ! test/Makefile ! test/ProblemList.txt ! test/com/sun/crypto/provider/Cipher/DES/Sealtest.java ! test/com/sun/crypto/provider/Cipher/RSA/TestOAEP_KAT.java ! test/javax/crypto/EncryptedPrivateKeyInfo/GetKeySpecException.java ! test/javax/crypto/JceSecurity/SunJCE_BC_LoadOrdering.java Changeset: 3b7193ab0d87 Author: xuelei Date: 2011-06-22 19:37 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/3b7193ab0d87 6952814: sun/security/ssl/com/sun/net/ssl/internal/ssl/InputRecord/InterruptedIO.java failing in PIT Reviewed-by: alanb - test/sun/security/ssl/com/sun/net/ssl/internal/ssl/InputRecord/InterruptedIO.java Changeset: 57265bf4b36b Author: xuelei Date: 2011-06-22 21:21 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/57265bf4b36b 7058271: Remove InterruptedIO.java record from ProblemList.txt Reviewed-by: weijun ! test/ProblemList.txt Changeset: 6b2c14dfe9b9 Author: chegar Date: 2011-06-23 13:00 +0100 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/6b2c14dfe9b9 7057935: com/sun/nio/sctp tests should be moved out of jdk_nio and into their own target, jdk_sctp Reviewed-by: alanb ! test/Makefile ! test/ProblemList.txt Changeset: ae7211979179 Author: chegar Date: 2011-06-23 13:15 +0100 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/ae7211979179 7021010: java/lang/Thread/ThreadStateTest.java fails intermittently Reviewed-by: dholmes, alanb, mchung ! test/ProblemList.txt ! test/java/lang/Thread/ThreadStateTest.java Changeset: cd7adb545f71 Author: xuelei Date: 2011-06-23 04:23 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/cd7adb545f71 7057022: test/sun/security/pkcs11/fips/ClientJSSEServerJSSE.java has invalid jtreg tags Reviewed-by: weijun ! test/sun/security/pkcs11/fips/ClientJSSEServerJSSE.java Changeset: 151756a4037b Author: darcy Date: 2011-06-23 14:57 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/151756a4037b 6253144: Long narrowing conversion should describe the algorithm used and implied "risks" Reviewed-by: mduigou, alanb ! src/share/classes/java/lang/Byte.java ! src/share/classes/java/lang/Double.java ! src/share/classes/java/lang/Float.java ! src/share/classes/java/lang/Integer.java ! src/share/classes/java/lang/Long.java ! src/share/classes/java/lang/Number.java ! src/share/classes/java/lang/Short.java ! src/share/classes/java/util/concurrent/atomic/AtomicInteger.java ! src/share/classes/java/util/concurrent/atomic/AtomicLong.java Changeset: 5838c5bd185d Author: lana Date: 2011-06-22 23:23 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/5838c5bd185d Merge ! src/share/classes/java/awt/Toolkit.java ! test/java/security/Security/NoInstalledProviders.java Changeset: 5dedb265ba3e Author: lana Date: 2011-06-23 14:56 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/5dedb265ba3e Merge Changeset: b037a8bc1be8 Author: lana Date: 2011-06-23 17:21 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/b037a8bc1be8 Merge Changeset: 0ad50d4ed1cf Author: alanb Date: 2011-06-24 19:30 +0100 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/0ad50d4ed1cf 6965150: TEST_BUG: java/nio/channels/AsynchronousSocketChannel/Basic.java takes too long Reviewed-by: chegar ! test/java/nio/channels/AsynchronousSocketChannel/Basic.java Changeset: 113c75db6c8b Author: michaelm Date: 2011-06-27 12:15 +0100 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/113c75db6c8b 7059777: Remove lang tests from Problemlist.txt Reviewed-by: alanb ! test/ProblemList.txt Changeset: a053c28304e8 Author: ksrini Date: 2011-06-27 12:21 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/a053c28304e8 7046007: (launcher) Improve usage information for -verbose option Reviewed-by: darcy, alanb ! src/share/classes/sun/launcher/resources/launcher.properties Changeset: 3abc52f0a4dc Author: dholmes Date: 2011-06-27 20:13 -0400 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/3abc52f0a4dc 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0 Summary: Allow platform specific files to be located at build time instead of generating them Reviewed-by: alanb, ohair ! make/common/Defs-embedded.gmk ! make/java/nio/Makefile Changeset: 7b5a0a141b8b Author: michaelm Date: 2011-06-28 10:07 +0100 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/7b5a0a141b8b 7058832: com/sun/net/httpserver/bugs/B6373555.java failing intermittently Reviewed-by: alanb ! test/com/sun/net/httpserver/bugs/B6373555.java Changeset: 585cc4a4528d Author: michaelm Date: 2011-06-28 10:09 +0100 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/585cc4a4528d Merge Changeset: 9bcf6217a374 Author: lana Date: 2011-06-30 14:18 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/9bcf6217a374 Merge - src/share/classes/sun/misc/JavaxSecurityAuthKerberosAccess.java - test/sun/security/ssl/com/sun/net/ssl/internal/ssl/InputRecord/InterruptedIO.java Changeset: 0a00216a858c Author: lana Date: 2011-07-07 19:18 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/0a00216a858c Merge - src/share/classes/sun/misc/JavaxSecurityAuthKerberosAccess.java - test/sun/security/ssl/com/sun/net/ssl/internal/ssl/InputRecord/InterruptedIO.java From spoole at linux.vnet.ibm.com Mon Jul 18 23:13:22 2011 From: spoole at linux.vnet.ibm.com (Steve Poole) Date: Tue, 19 Jul 2011 00:13:22 +0100 Subject: [OpenJDK 2D-Dev] FontConfig fails when optional system library is missing In-Reply-To: <4E24B043.102@oracle.com> References: <4E24A78F.40605@linux.vnet.ibm.com> <4E24AFE8.5030102@oracle.com> <4E24B043.102@oracle.com> Message-ID: <4E24BE12.50708@linux.vnet.ibm.com> On 18/07/11 23:14, Phil Race wrote: > Ah you said it was AIX, not Linux. Still, it should have that library > installed > even if the de-ref is fixed. > Not on AIX - its completely optional - and as far we can tell (other than this particular problem) nothing else bad happens. Having said that I would expect customers to install the package - this fix is simply a belt and braces change. I don't know why the attachment is missing - here it is inline: --- diff --git a/src/solaris/classes/sun/font/FontConfigManager.java b/src/solaris/classes/sun/font/FontConfigManager.java --- a/src/solaris/classes/sun/font/FontConfigManager.java +++ b/src/solaris/classes/sun/font/FontConfigManager.java @@ -348,6 +348,8 @@ initFontConfigFonts(false); + if(fontConfigFonts==null) return null; // init failed + FcCompFont fcInfo = null; for (int i=0; i -phil. > > On 7/18/2011 3:12 PM, Phil Race wrote: >> Steve, >> >> There's no attachment .. and this should be discussed on 2d-dev, not >> core-libs. >> >> I do see in the code where the null de-ref can happen. This is some >> new JDK 7 code. >> Although a system where the library is missing is basically DOA for >> client use. >> I'd suspect you are running 32 bit JDK on a 64 bit Linux which hasn't >> had >> the 32 bit libs installed. If so, likely you'll run into other >> problems too. >> >> -phil. >> >> >> On 7/18/2011 2:37 PM, Steve Poole wrote: >>> >>> Hi all, a problem was discovered on JDK7 when using the Nimbus L&F >>> on a system where libfontconfig.so was not installed (On AIX >>> actually but in theory on any unix system) >>> >>> Under the covers Nimbus uses the sun.font.FontConfigManager to >>> retrieve fonts. sun.font.FontConfigManager in turn is intended to >>> use (for a unix system) the libfontconfig.so system library if present. >>> >>> The code is intended to cope with the library being missing but it >>> unfortunately doesn't. A array is referenced without checking if it >>> is null. On systems where the system library is present this array >>> is never null but in this specific case the array is null and the >>> reference fails as follows. >>> >>> ? >>> Exception in thread "main" java.lang.NullPointerException >>> at >>> sun.font.FontConfigManager.getFontConfigFont(FontConfigManager.java:352) >>> >>> at sun.awt.X11FontManager.getFontConfigFUIR(X11FontManager.java:817) >>> at sun.font.FontUtilities.getFontConfigFUIR(FontUtilities.java:472) >>> at >>> javax.swing.plaf.nimbus.NimbusDefaults.(NimbusDefaults.java:138) >>> at >>> javax.swing.plaf.nimbus.NimbusLookAndFeel.(NimbusLookAndFeel.java:100) >>> at Nimbus.main(Nimbus.java:6) >>> ? >>> >>> The fix is trivial (see attached) and probably just tactical. >>> >>> >>> Cheers, >>> >>> Steve >>> >> > From philip.race at oracle.com Tue Jul 19 00:06:38 2011 From: philip.race at oracle.com (Phil Race) Date: Mon, 18 Jul 2011 17:06:38 -0700 Subject: [OpenJDK 2D-Dev] FontConfig fails when optional system library is missing In-Reply-To: <4E24BE12.50708@linux.vnet.ibm.com> References: <4E24A78F.40605@linux.vnet.ibm.com> <4E24AFE8.5030102@oracle.com> <4E24B043.102@oracle.com> <4E24BE12.50708@linux.vnet.ibm.com> Message-ID: <4E24CA8E.40404@oracle.com> On 7/18/11 4:13 PM, Steve Poole wrote: > On 18/07/11 23:14, Phil Race wrote: >> Ah you said it was AIX, not Linux. Still, it should have that >> library installed >> even if the de-ref is fixed. >> > Not on AIX - its completely optional - and as far we can tell (other > than this particular problem) nothing else bad happens. If that's optional I assume a lot more is optional that needs to be installed for a GUI app. But JDK on all unix flavours is very reliant on fontconfig to find font files. I suggest to make fontconfig a pre-requisite for Java on AIX. Even server apps use fonts more often than you'd expect. I didn't mean to just "cc" 2d, but to disconnect the discussion from core-libs since its not related to core-libs in way at all. Yes, its 2d because its font, I'm actually surprised that is a surprise ... -phil. > Having said that I would expect customers to install the package - > this fix is simply a belt and braces change. > I don't know why the attachment is missing - here it is inline: > --- > diff --git a/src/solaris/classes/sun/font/FontConfigManager.java > b/src/solaris/classes/sun/font/FontConfigManager.java > --- a/src/solaris/classes/sun/font/FontConfigManager.java > +++ b/src/solaris/classes/sun/font/FontConfigManager.java > @@ -348,6 +348,8 @@ > > initFontConfigFonts(false); > > + if(fontConfigFonts==null) return null; // init failed > + > FcCompFont fcInfo = null; > for (int i=0; i if (name.equals(fontConfigFonts[i].fcFamily) && > --- > > By the way - why is this 2d? because it's font? Anyway I've cc'd > 2d-dev as you suggest. Thanks for the quick response. > > >> -phil. >> >> On 7/18/2011 3:12 PM, Phil Race wrote: >>> Steve, >>> >>> There's no attachment .. and this should be discussed on 2d-dev, not >>> core-libs. >>> >>> I do see in the code where the null de-ref can happen. This is some >>> new JDK 7 code. >>> Although a system where the library is missing is basically DOA for >>> client use. >>> I'd suspect you are running 32 bit JDK on a 64 bit Linux which >>> hasn't had >>> the 32 bit libs installed. If so, likely you'll run into other >>> problems too. >>> >>> -phil. >>> >>> >>> On 7/18/2011 2:37 PM, Steve Poole wrote: >>>> >>>> Hi all, a problem was discovered on JDK7 when using the Nimbus L&F >>>> on a system where libfontconfig.so was not installed (On AIX >>>> actually but in theory on any unix system) >>>> >>>> Under the covers Nimbus uses the sun.font.FontConfigManager to >>>> retrieve fonts. sun.font.FontConfigManager in turn is intended to >>>> use (for a unix system) the libfontconfig.so system library if >>>> present. >>>> >>>> The code is intended to cope with the library being missing but it >>>> unfortunately doesn't. A array is referenced without checking if it >>>> is null. On systems where the system library is present this array >>>> is never null but in this specific case the array is null and the >>>> reference fails as follows. >>>> >>>> ? >>>> Exception in thread "main" java.lang.NullPointerException >>>> at >>>> sun.font.FontConfigManager.getFontConfigFont(FontConfigManager.java:352) >>>> >>>> at sun.awt.X11FontManager.getFontConfigFUIR(X11FontManager.java:817) >>>> at sun.font.FontUtilities.getFontConfigFUIR(FontUtilities.java:472) >>>> at >>>> javax.swing.plaf.nimbus.NimbusDefaults.(NimbusDefaults.java:138) >>>> at >>>> javax.swing.plaf.nimbus.NimbusLookAndFeel.(NimbusLookAndFeel.java:100) >>>> at Nimbus.main(Nimbus.java:6) >>>> ? >>>> >>>> The fix is trivial (see attached) and probably just tactical. >>>> >>>> >>>> Cheers, >>>> >>>> Steve >>>> >>> >> > From herve.girod at gmail.com Tue Jul 19 00:43:06 2011 From: herve.girod at gmail.com (Herve Girod) Date: Tue, 19 Jul 2011 02:43:06 +0200 Subject: [OpenJDK 2D-Dev] Hardware-Accelerated Rendering Using OpenGL Message-ID: Hello, I hope it is the correct list for this kind of problem. If not, don't bother to read the rest of the message ;) I am using OpenGL acceleration in a "soft real-time" Java program by using JOGL, drawing in an external OpenGL context (coming from a master C app which set it's OpenGL context and then calls the Java app by JNI). The Java application is based on Swing rendering, but I redirect the rendering on a Graphics2D context to draw in this external context. I am able to have a not so bad performance by drawing the low-level Swing content on a texture which in turn is put on the external OpenGL context. However, the performance and the quality of the resulting image could be much better if the Java app really processed the low level OpenGL orders rather than drawing a huge texture. I know how to code an OpenGL "Graphics2D" renderer, but it's a lot of work and a lot of possibilities to create bugs, and I'm thinking that Java2D has already internally an OpenGL-based pipeline. Would it be possible for me to leverage this pipeline instead of recreating a new (less good) one? Again sorry if it's not the right list. Herve -------------- next part -------------- An HTML attachment was scrubbed... URL: From roman at kennke.org Tue Jul 19 07:11:27 2011 From: roman at kennke.org (Roman Kennke) Date: Tue, 19 Jul 2011 09:11:27 +0200 Subject: [OpenJDK 2D-Dev] Hardware-Accelerated Rendering Using OpenGL In-Reply-To: References: Message-ID: <1311059487.2314.2.camel@moonlight> Hi Herve, > I hope it is the correct list for this kind of problem. If not, don't > bother to read the rest of the message ;) Seems perfect. > I am using OpenGL acceleration in a "soft real-time" Java program by > using JOGL, drawing in an external OpenGL context (coming from a > master C app which set it's OpenGL context and then calls the Java app > by JNI). The Java application is based on Swing rendering, but I > redirect the rendering on a Graphics2D context to draw in this > external context. > > I am able to have a not so bad performance by drawing the low-level > Swing content on a texture which in turn is put on the external OpenGL > context. However, the performance and the quality of the resulting > image could be much better if the Java app really processed the low > level OpenGL orders rather than drawing a huge texture. I know how to > code an OpenGL "Graphics2D" renderer, but it's a lot of work and a lot > of possibilities to create bugs, and I'm thinking that Java2D has > already internally an OpenGL-based pipeline. Would it be possible for > me to leverage this pipeline instead of recreating a new (less good) > one? This should be possible. Have a look at the sun.java2d.opengl package. It should be possible to pass your context to the OGLSurfaceData. Regards, Roman From herve.girod at gmail.com Tue Jul 19 07:46:34 2011 From: herve.girod at gmail.com (=?utf-8?Q?Herv=C3=A9_Girod?=) Date: Tue, 19 Jul 2011 09:46:34 +0200 Subject: [OpenJDK 2D-Dev] Hardware-Accelerated Rendering Using OpenGL In-Reply-To: <1311059487.2314.2.camel@moonlight> References: <1311059487.2314.2.camel@moonlight> Message-ID: <54F8A1C4-36DB-4834-9FC0-B9923E2DFCEC@gmail.com> Thanks, I will try this ASAP !! Herve Sent from my iPhone On 19 juil. 2011, at 09:11, Roman Kennke wrote: > Hi Herve, > > >> I hope it is the correct list for this kind of problem. If not, don't >> bother to read the rest of the message ;) > > Seems perfect. > >> I am using OpenGL acceleration in a "soft real-time" Java program by >> using JOGL, drawing in an external OpenGL context (coming from a >> master C app which set it's OpenGL context and then calls the Java app >> by JNI). The Java application is based on Swing rendering, but I >> redirect the rendering on a Graphics2D context to draw in this >> external context. >> >> I am able to have a not so bad performance by drawing the low-level >> Swing content on a texture which in turn is put on the external OpenGL >> context. However, the performance and the quality of the resulting >> image could be much better if the Java app really processed the low >> level OpenGL orders rather than drawing a huge texture. I know how to >> code an OpenGL "Graphics2D" renderer, but it's a lot of work and a lot >> of possibilities to create bugs, and I'm thinking that Java2D has >> already internally an OpenGL-based pipeline. Would it be possible for >> me to leverage this pipeline instead of recreating a new (less good) >> one? > > This should be possible. Have a look at the sun.java2d.opengl package. > It should be possible to pass your context to the OGLSurfaceData. > > Regards, Roman > > > > From neugens.limasoftware at gmail.com Tue Jul 19 07:46:40 2011 From: neugens.limasoftware at gmail.com (=?utf-8?B?bmV1Z2Vucy5saW1hc29mdHdhcmVAZ21haWwuY29t?=) Date: Tue, 19 Jul 2011 09:46:40 +0200 Subject: [OpenJDK 2D-Dev] =?utf-8?q?Hardware-Accelerated_Rendering_Using_O?= =?utf-8?q?penGL?= Message-ID: <4e253674.cccce30a.083b.ffffe63b@mx.google.com> I agree with Roman, although there are still some issues to solve. Last time I used the OGL pipeline I got an amazing result of a gray rectangle on screen in place of the swing content, and it seems quite common problem. I also doubt that the challenges that a 2d drawing api poses can be solved efficiently with OGL; when working on a similar project, we used to render on a texture all the content using the software pipelines, and only render the (sub)texture when needed, which looks similar to what you do, and performance were very good for Swing rendering. I would still give a try at using the OGLSurface directly, though, perhaps this will help track down the current issues and fix what is needed. Mario -- Sent from HTC Desire... pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 40CF http://www.icedrobot.org Proud GNU Classpath developer: http://www.classpath.org/ Read About us at: http://planet.classpath.org OpenJDK: http://openjdk.java.net/projects/caciocavallo/ Please, support open standards: http://endsoftpatents.org/ ----- Reply message ----- Da: "Herve Girod" Data: mar, lug 19, 2011 02:43 Oggetto: [OpenJDK 2D-Dev] Hardware-Accelerated Rendering Using OpenGL A: <2d-dev at openjdk.java.net> Hello, I hope it is the correct list for this kind of problem. If not, don't bother to read the rest of the message ;) I am using OpenGL acceleration in a "soft real-time" Java program by using JOGL, drawing in an external OpenGL context (coming from a master C app which set it's OpenGL context and then calls the Java app by JNI). The Java application is based on Swing rendering, but I redirect the rendering on a Graphics2D context to draw in this external context. I am able to have a not so bad performance by drawing the low-level Swing content on a texture which in turn is put on the external OpenGL context. However, the performance and the quality of the resulting image could be much better if the Java app really processed the low level OpenGL orders rather than drawing a huge texture. I know how to code an OpenGL "Graphics2D" renderer, but it's a lot of work and a lot of possibilities to create bugs, and I'm thinking that Java2D has already internally an OpenGL-based pipeline. Would it be possible for me to leverage this pipeline instead of recreating a new (less good) one? Again sorry if it's not the right list. Herve -------------- next part -------------- An HTML attachment was scrubbed... URL: From philip.race at oracle.com Tue Jul 19 16:29:19 2011 From: philip.race at oracle.com (Phil Race) Date: Tue, 19 Jul 2011 09:29:19 -0700 Subject: [OpenJDK 2D-Dev] FontConfig fails when optional system library is missing In-Reply-To: <4E24CA8E.40404@oracle.com> References: <4E24A78F.40605@linux.vnet.ibm.com> <4E24AFE8.5030102@oracle.com> <4E24B043.102@oracle.com> <4E24BE12.50708@linux.vnet.ibm.com> <4E24CA8E.40404@oracle.com> Message-ID: <4E25B0DF.4070608@oracle.com> PS .. are you running a pure openjdk build or are you running a build which includes the proprietary Lucida fonts. Do you have a fontconfig.properties which is customised for AIX ? If you eliminate both of those, as would be the typical Linux OpenJDK case, I think it quite likely that without libfontconfig you'll see JDK fall flat on its face due to not being able to locate any fonts at all. -phil. On 7/18/2011 5:06 PM, Phil Race wrote: > On 7/18/11 4:13 PM, Steve Poole wrote: >> On 18/07/11 23:14, Phil Race wrote: >>> Ah you said it was AIX, not Linux. Still, it should have that >>> library installed >>> even if the de-ref is fixed. >>> >> Not on AIX - its completely optional - and as far we can tell (other >> than this particular problem) nothing else bad happens. > If that's optional I assume a lot more is optional that needs to be > installed > for a GUI app. But JDK on all unix flavours is very reliant on > fontconfig to find > font files. I suggest to make fontconfig a pre-requisite for Java on > AIX. Even server > apps use fonts more often than you'd expect. > > I didn't mean to just "cc" 2d, but to disconnect the discussion from > core-libs > since its not related to core-libs in way at all. > Yes, its 2d because its font, I'm actually surprised that is a > surprise ... > > -phil. > >> Having said that I would expect customers to install the package - >> this fix is simply a belt and braces change. >> I don't know why the attachment is missing - here it is inline: >> --- >> diff --git a/src/solaris/classes/sun/font/FontConfigManager.java >> b/src/solaris/classes/sun/font/FontConfigManager.java >> --- a/src/solaris/classes/sun/font/FontConfigManager.java >> +++ b/src/solaris/classes/sun/font/FontConfigManager.java >> @@ -348,6 +348,8 @@ >> >> initFontConfigFonts(false); >> >> + if(fontConfigFonts==null) return null; // init failed >> + >> FcCompFont fcInfo = null; >> for (int i=0; i> if (name.equals(fontConfigFonts[i].fcFamily) && >> --- >> >> By the way - why is this 2d? because it's font? Anyway I've cc'd >> 2d-dev as you suggest. Thanks for the quick response. >> >> >>> -phil. >>> >>> On 7/18/2011 3:12 PM, Phil Race wrote: >>>> Steve, >>>> >>>> There's no attachment .. and this should be discussed on 2d-dev, >>>> not core-libs. >>>> >>>> I do see in the code where the null de-ref can happen. This is some >>>> new JDK 7 code. >>>> Although a system where the library is missing is basically DOA for >>>> client use. >>>> I'd suspect you are running 32 bit JDK on a 64 bit Linux which >>>> hasn't had >>>> the 32 bit libs installed. If so, likely you'll run into other >>>> problems too. >>>> >>>> -phil. >>>> >>>> >>>> On 7/18/2011 2:37 PM, Steve Poole wrote: >>>>> >>>>> Hi all, a problem was discovered on JDK7 when using the Nimbus L&F >>>>> on a system where libfontconfig.so was not installed (On AIX >>>>> actually but in theory on any unix system) >>>>> >>>>> Under the covers Nimbus uses the sun.font.FontConfigManager to >>>>> retrieve fonts. sun.font.FontConfigManager in turn is intended to >>>>> use (for a unix system) the libfontconfig.so system library if >>>>> present. >>>>> >>>>> The code is intended to cope with the library being missing but it >>>>> unfortunately doesn't. A array is referenced without checking if >>>>> it is null. On systems where the system library is present this >>>>> array is never null but in this specific case the array is null >>>>> and the reference fails as follows. >>>>> >>>>> ? >>>>> Exception in thread "main" java.lang.NullPointerException >>>>> at >>>>> sun.font.FontConfigManager.getFontConfigFont(FontConfigManager.java:352) >>>>> >>>>> at sun.awt.X11FontManager.getFontConfigFUIR(X11FontManager.java:817) >>>>> at sun.font.FontUtilities.getFontConfigFUIR(FontUtilities.java:472) >>>>> at >>>>> javax.swing.plaf.nimbus.NimbusDefaults.(NimbusDefaults.java:138) >>>>> at >>>>> javax.swing.plaf.nimbus.NimbusLookAndFeel.(NimbusLookAndFeel.java:100) >>>>> at Nimbus.main(Nimbus.java:6) >>>>> ? >>>>> >>>>> The fix is trivial (see attached) and probably just tactical. >>>>> >>>>> >>>>> Cheers, >>>>> >>>>> Steve >>>>> >>>> >>> >> > From philip.race at oracle.com Tue Jul 19 18:05:34 2011 From: philip.race at oracle.com (Phil Race) Date: Tue, 19 Jul 2011 11:05:34 -0700 Subject: [OpenJDK 2D-Dev] FontConfig fails when optional system library is missing In-Reply-To: <4E25B0DF.4070608@oracle.com> References: <4E24A78F.40605@linux.vnet.ibm.com> <4E24AFE8.5030102@oracle.com> <4E24B043.102@oracle.com> <4E24BE12.50708@linux.vnet.ibm.com> <4E24CA8E.40404@oracle.com> <4E25B0DF.4070608@oracle.com> Message-ID: <4E25C76E.8060909@oracle.com> PPS SFAIK all JDK7 supported configs have libfontconfig so I've in fact contemplated for JDk 8 making libfontconfig a compile time dependency. Would that be a major problem ? We really are that dependent on it now, and its such an integral part of the way Gnome and KDE desktops work we should be able to assume its there just like libX11.so .. Anyway I filed 7068471: NPE in sun.font.FontConfigManager.getFontConfigFont() when libfontconfig.so is not installed -phil. On 7/19/2011 9:29 AM, Phil Race wrote: > PS .. are you running a pure openjdk build or are you running a build > which > includes the proprietary Lucida fonts. > Do you have a fontconfig.properties which is customised for AIX ? > > If you eliminate both of those, as would be the typical Linux OpenJDK > case, > I think it quite likely that without libfontconfig you'll see JDK fall > flat on > its face due to not being able to locate any fonts at all. > > -phil. > > On 7/18/2011 5:06 PM, Phil Race wrote: >> On 7/18/11 4:13 PM, Steve Poole wrote: >>> On 18/07/11 23:14, Phil Race wrote: >>>> Ah you said it was AIX, not Linux. Still, it should have that >>>> library installed >>>> even if the de-ref is fixed. >>>> >>> Not on AIX - its completely optional - and as far we can tell (other >>> than this particular problem) nothing else bad happens. >> If that's optional I assume a lot more is optional that needs to be >> installed >> for a GUI app. But JDK on all unix flavours is very reliant on >> fontconfig to find >> font files. I suggest to make fontconfig a pre-requisite for Java on >> AIX. Even server >> apps use fonts more often than you'd expect. >> >> I didn't mean to just "cc" 2d, but to disconnect the discussion from >> core-libs >> since its not related to core-libs in way at all. >> Yes, its 2d because its font, I'm actually surprised that is a >> surprise ... >> >> -phil. >> >>> Having said that I would expect customers to install the package - >>> this fix is simply a belt and braces change. >>> I don't know why the attachment is missing - here it is inline: >>> --- >>> diff --git a/src/solaris/classes/sun/font/FontConfigManager.java >>> b/src/solaris/classes/sun/font/FontConfigManager.java >>> --- a/src/solaris/classes/sun/font/FontConfigManager.java >>> +++ b/src/solaris/classes/sun/font/FontConfigManager.java >>> @@ -348,6 +348,8 @@ >>> >>> initFontConfigFonts(false); >>> >>> + if(fontConfigFonts==null) return null; // init failed >>> + >>> FcCompFont fcInfo = null; >>> for (int i=0; i>> if (name.equals(fontConfigFonts[i].fcFamily) && >>> --- >>> >>> By the way - why is this 2d? because it's font? Anyway I've cc'd >>> 2d-dev as you suggest. Thanks for the quick response. >>> >>> >>>> -phil. >>>> >>>> On 7/18/2011 3:12 PM, Phil Race wrote: >>>>> Steve, >>>>> >>>>> There's no attachment .. and this should be discussed on 2d-dev, >>>>> not core-libs. >>>>> >>>>> I do see in the code where the null de-ref can happen. This is >>>>> some new JDK 7 code. >>>>> Although a system where the library is missing is basically DOA >>>>> for client use. >>>>> I'd suspect you are running 32 bit JDK on a 64 bit Linux which >>>>> hasn't had >>>>> the 32 bit libs installed. If so, likely you'll run into other >>>>> problems too. >>>>> >>>>> -phil. >>>>> >>>>> >>>>> On 7/18/2011 2:37 PM, Steve Poole wrote: >>>>>> >>>>>> Hi all, a problem was discovered on JDK7 when using the Nimbus >>>>>> L&F on a system where libfontconfig.so was not installed (On AIX >>>>>> actually but in theory on any unix system) >>>>>> >>>>>> Under the covers Nimbus uses the sun.font.FontConfigManager to >>>>>> retrieve fonts. sun.font.FontConfigManager in turn is intended to >>>>>> use (for a unix system) the libfontconfig.so system library if >>>>>> present. >>>>>> >>>>>> The code is intended to cope with the library being missing but >>>>>> it unfortunately doesn't. A array is referenced without checking >>>>>> if it is null. On systems where the system library is present >>>>>> this array is never null but in this specific case the array is >>>>>> null and the reference fails as follows. >>>>>> >>>>>> ? >>>>>> Exception in thread "main" java.lang.NullPointerException >>>>>> at >>>>>> sun.font.FontConfigManager.getFontConfigFont(FontConfigManager.java:352) >>>>>> >>>>>> at sun.awt.X11FontManager.getFontConfigFUIR(X11FontManager.java:817) >>>>>> at sun.font.FontUtilities.getFontConfigFUIR(FontUtilities.java:472) >>>>>> at >>>>>> javax.swing.plaf.nimbus.NimbusDefaults.(NimbusDefaults.java:138) >>>>>> at >>>>>> javax.swing.plaf.nimbus.NimbusLookAndFeel.(NimbusLookAndFeel.java:100) >>>>>> at Nimbus.main(Nimbus.java:6) >>>>>> ? >>>>>> >>>>>> The fix is trivial (see attached) and probably just tactical. >>>>>> >>>>>> >>>>>> Cheers, >>>>>> >>>>>> Steve >>>>>> >>>>> >>>> >>> >> > From roman at kennke.org Tue Jul 19 19:12:51 2011 From: roman at kennke.org (Roman Kennke) Date: Tue, 19 Jul 2011 21:12:51 +0200 Subject: [OpenJDK 2D-Dev] FontConfig fails when optional system library is missing In-Reply-To: <4E25C76E.8060909@oracle.com> References: <4E24A78F.40605@linux.vnet.ibm.com> <4E24AFE8.5030102@oracle.com> <4E24B043.102@oracle.com> <4E24BE12.50708@linux.vnet.ibm.com> <4E24CA8E.40404@oracle.com> <4E25B0DF.4070608@oracle.com> <4E25C76E.8060909@oracle.com> Message-ID: <1311102771.2314.5.camel@moonlight> IIRC, libfontconfig is also fairly standalone and portable, so when it's not there, it shouldn't be too hard to compile it. A while ago I contemplated and started to implement fontconfig in pure Java, which is not rocket science either, but then lost interest or time or both. Cheers, Roman Am Dienstag, den 19.07.2011, 11:05 -0700 schrieb Phil Race: > PPS SFAIK all JDK7 supported configs have libfontconfig so > I've in fact contemplated for JDk 8 making libfontconfig a compile time > dependency. > Would that be a major problem ? > We really are that dependent on it now, and its such an integral part > of the > way Gnome and KDE desktops work we should be able to assume its > there just like libX11.so .. > > Anyway I filed > 7068471: NPE in sun.font.FontConfigManager.getFontConfigFont() when > libfontconfig.so is not installed > > -phil. > > On 7/19/2011 9:29 AM, Phil Race wrote: > > PS .. are you running a pure openjdk build or are you running a build > > which > > includes the proprietary Lucida fonts. > > Do you have a fontconfig.properties which is customised for AIX ? > > > > If you eliminate both of those, as would be the typical Linux OpenJDK > > case, > > I think it quite likely that without libfontconfig you'll see JDK fall > > flat on > > its face due to not being able to locate any fonts at all. > > > > -phil. > > > > On 7/18/2011 5:06 PM, Phil Race wrote: > >> On 7/18/11 4:13 PM, Steve Poole wrote: > >>> On 18/07/11 23:14, Phil Race wrote: > >>>> Ah you said it was AIX, not Linux. Still, it should have that > >>>> library installed > >>>> even if the de-ref is fixed. > >>>> > >>> Not on AIX - its completely optional - and as far we can tell (other > >>> than this particular problem) nothing else bad happens. > >> If that's optional I assume a lot more is optional that needs to be > >> installed > >> for a GUI app. But JDK on all unix flavours is very reliant on > >> fontconfig to find > >> font files. I suggest to make fontconfig a pre-requisite for Java on > >> AIX. Even server > >> apps use fonts more often than you'd expect. > >> > >> I didn't mean to just "cc" 2d, but to disconnect the discussion from > >> core-libs > >> since its not related to core-libs in way at all. > >> Yes, its 2d because its font, I'm actually surprised that is a > >> surprise ... > >> > >> -phil. > >> > >>> Having said that I would expect customers to install the package - > >>> this fix is simply a belt and braces change. > >>> I don't know why the attachment is missing - here it is inline: > >>> --- > >>> diff --git a/src/solaris/classes/sun/font/FontConfigManager.java > >>> b/src/solaris/classes/sun/font/FontConfigManager.java > >>> --- a/src/solaris/classes/sun/font/FontConfigManager.java > >>> +++ b/src/solaris/classes/sun/font/FontConfigManager.java > >>> @@ -348,6 +348,8 @@ > >>> > >>> initFontConfigFonts(false); > >>> > >>> + if(fontConfigFonts==null) return null; // init failed > >>> + > >>> FcCompFont fcInfo = null; > >>> for (int i=0; i >>> if (name.equals(fontConfigFonts[i].fcFamily) && > >>> --- > >>> > >>> By the way - why is this 2d? because it's font? Anyway I've cc'd > >>> 2d-dev as you suggest. Thanks for the quick response. > >>> > >>> > >>>> -phil. > >>>> > >>>> On 7/18/2011 3:12 PM, Phil Race wrote: > >>>>> Steve, > >>>>> > >>>>> There's no attachment .. and this should be discussed on 2d-dev, > >>>>> not core-libs. > >>>>> > >>>>> I do see in the code where the null de-ref can happen. This is > >>>>> some new JDK 7 code. > >>>>> Although a system where the library is missing is basically DOA > >>>>> for client use. > >>>>> I'd suspect you are running 32 bit JDK on a 64 bit Linux which > >>>>> hasn't had > >>>>> the 32 bit libs installed. If so, likely you'll run into other > >>>>> problems too. > >>>>> > >>>>> -phil. > >>>>> > >>>>> > >>>>> On 7/18/2011 2:37 PM, Steve Poole wrote: > >>>>>> > >>>>>> Hi all, a problem was discovered on JDK7 when using the Nimbus > >>>>>> L&F on a system where libfontconfig.so was not installed (On AIX > >>>>>> actually but in theory on any unix system) > >>>>>> > >>>>>> Under the covers Nimbus uses the sun.font.FontConfigManager to > >>>>>> retrieve fonts. sun.font.FontConfigManager in turn is intended to > >>>>>> use (for a unix system) the libfontconfig.so system library if > >>>>>> present. > >>>>>> > >>>>>> The code is intended to cope with the library being missing but > >>>>>> it unfortunately doesn't. A array is referenced without checking > >>>>>> if it is null. On systems where the system library is present > >>>>>> this array is never null but in this specific case the array is > >>>>>> null and the reference fails as follows. > >>>>>> > >>>>>> ? > >>>>>> Exception in thread "main" java.lang.NullPointerException > >>>>>> at > >>>>>> sun.font.FontConfigManager.getFontConfigFont(FontConfigManager.java:352) > >>>>>> > >>>>>> at sun.awt.X11FontManager.getFontConfigFUIR(X11FontManager.java:817) > >>>>>> at sun.font.FontUtilities.getFontConfigFUIR(FontUtilities.java:472) > >>>>>> at > >>>>>> javax.swing.plaf.nimbus.NimbusDefaults.(NimbusDefaults.java:138) > >>>>>> at > >>>>>> javax.swing.plaf.nimbus.NimbusLookAndFeel.(NimbusLookAndFeel.java:100) > >>>>>> at Nimbus.main(Nimbus.java:6) > >>>>>> ? > >>>>>> > >>>>>> The fix is trivial (see attached) and probably just tactical. > >>>>>> > >>>>>> > >>>>>> Cheers, > >>>>>> > >>>>>> Steve > >>>>>> > >>>>> > >>>> > >>> > >> > > > > From neugens.limasoftware at gmail.com Tue Jul 19 20:09:43 2011 From: neugens.limasoftware at gmail.com (Mario Torre) Date: Tue, 19 Jul 2011 22:09:43 +0200 Subject: [OpenJDK 2D-Dev] FontConfig fails when optional system library is missing In-Reply-To: <1311102771.2314.5.camel@moonlight> References: <4E24A78F.40605@linux.vnet.ibm.com> <4E24AFE8.5030102@oracle.com> <4E24B043.102@oracle.com> <4E24BE12.50708@linux.vnet.ibm.com> <4E24CA8E.40404@oracle.com> <4E25B0DF.4070608@oracle.com> <4E25C76E.8060909@oracle.com> <1311102771.2314.5.camel@moonlight> Message-ID: <1311106184.2734.1.camel@galactica> Il giorno mar, 19/07/2011 alle 21.12 +0200, Roman Kennke ha scritto: > IIRC, libfontconfig is also fairly standalone and portable, so when it's > not there, it shouldn't be too hard to compile it. > > A while ago I contemplated and started to implement fontconfig in pure > Java, which is not rocket science either, but then lost interest or time > or both. > > Cheers, Roman > Yep, and we've used fontconfig basically on all the funny platforms we supported at Aicas: if it works on VxWorks and OS9, you bet it works on AIX :) Cheers, Mario From dlila at redhat.com Tue Jul 19 21:01:53 2011 From: dlila at redhat.com (Denis Lila) Date: Tue, 19 Jul 2011 17:01:53 -0400 (EDT) Subject: [OpenJDK 2D-Dev] Pisces AA renderer performance improvement. In-Reply-To: <524331978.724846.1311107325514.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com> Message-ID: <276956464.725405.1311109313614.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com> Hi Jim. We spoke about this a while ago and I started working on it. This is what I have so far: http://icedtea.classpath.org/~dlila/webrevs/RendererPerf/ My main intention was to remove some stages from the renderer (like you suggested) because what we were doing was: 1. Transform curves to lines and put the lines in a buffer. 2. Iterate through scanlines, get crossings with the lines, compute alphas, and store them into an array. 3. Compress the alpha array using RLE. 4. When asked, use the RLE encoding to generate alpha tiles. and I was hoping to be able to go directly from curves to crossings, and then generate the tiles from the crossing data. This would reduce the intermediate storage and would move around much less data. At first, I implemented this with an int[][] where each inner array represented the crossings in one pixel row, and the crossings themselves packed 3 chunks of data into one int: the x coordinate of the crossing, the orientation, the scanline within the pixel row where the crossing was located (this was a number in [0:1< References: <276956464.725405.1311109313614.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com> Message-ID: <1311109933.2314.13.camel@moonlight> Hi Denis, > The version in the webrev is the fastest yet, and it uses > a class similar to the ScanlineIterator for the sorting > (but now it iterates through pixel rows, not scanlines). > Unfortunately this means that there still are two levels > of intermediate storage (edges and crossings, analogous > to edges and RLE elements in the old version), but the > only way I can think of how to get rid of one of them > and still take use an average linear time sort is if we > start outputting alphas pixelrow by pixelrow, rather than > in 32x32 tiles. - What speaks against doing that? E.g. outputting pixelrow by pixelrow? I was implementing a pure Java AA scanline converter for GNU Classpath some years ago and this is exactly what I did. I found that useful because drawing horizontal lines is often very cheap (i.e. filling adjacent bits/bytes in framebuffers). - What about writing 32 pixelrows into an intermediate buffer and then outputting those in 32x32 blocks when done? Or is this what you are currently doing? Cheers, Roman From philip.race at oracle.com Tue Jul 19 21:12:16 2011 From: philip.race at oracle.com (philip.race at oracle.com) Date: Tue, 19 Jul 2011 21:12:16 +0000 Subject: [OpenJDK 2D-Dev] hg: jdk8/2d/jdk: 7068471: NPE in sun.font.FontConfigManager.getFontConfigFont() when libfontconfig.so is not installed Message-ID: <20110719211226.3AF7B47549@hg.openjdk.java.net> Changeset: 77d5cc943286 Author: prr Date: 2011-07-19 14:09 -0700 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/77d5cc943286 7068471: NPE in sun.font.FontConfigManager.getFontConfigFont() when libfontconfig.so is not installed Reviewed-by: jgodinez, prr Contributed-by: spoole at linux.vnet.ibm.com ! src/solaris/classes/sun/font/FontConfigManager.java From patrick at reini.net Tue Jul 19 21:39:01 2011 From: patrick at reini.net (Patrick Reinhart) Date: Tue, 19 Jul 2011 23:39:01 +0200 Subject: [OpenJDK 2D-Dev] Question about the relation of PrintService and PrinterJob Message-ID: <4E25F975.5060308@reini.net> Hi there, I have a question considering the relation between the "old" PrinterJob and the "new" PrintService: Should the job settings (for example amount of copies or the job name) be held only within the PrinterJob and not be passed to the PrinterService as set by PrinterJob.setPrintService(PrintService)? Here's a small szenario for my question: The following code is beeing executed by the customer: > PrintService ps = xx //lookup thru PrintServiceLookup.lookupPrintServices() method > PrinterJob pj = PrinterJob.getPrinterJob(); > pj.setPrinterService(ps); > pj.setCopies(2); > pj.setJobName("theTestJob"); > pj.print(); When the print() method is called, the following methods where called on the PrintService returned by the lookup: > ps.createDocPrintJob() and finally on the DocPrintJob: > dpj.print(Doc, PrintJRequestAttributeSet) Now: Why does the print request attribute set not contain the Copies attribute? Is this not intended or a bug? Thanks for some more explanation, I would like to help as soon I understand the correct behavior.. Regards Patrick -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4487 bytes Desc: S/MIME Kryptografische Unterschrift URL: From philip.race at oracle.com Tue Jul 19 22:17:10 2011 From: philip.race at oracle.com (Phil Race) Date: Tue, 19 Jul 2011 15:17:10 -0700 Subject: [OpenJDK 2D-Dev] Question about the relation of PrintService and PrinterJob In-Reply-To: <4E25F975.5060308@reini.net> References: <4E25F975.5060308@reini.net> Message-ID: <4E260266.7060801@oracle.com> A PrinterJob is a job and a DocPrintJob is a job So you created a PrinterJob, set some properties on that job and then a DocPrinterJob and expect the job properties to migrate from one to the other ? I would not expect that to work as they are distinct jobs. Moreover dpj.print(Doc, PrintJRequestAttributeSet) clearly provides the properties such as copies in that second argument. Are you expecting (hoping) that " pj.setCopies(2)" some how sets printer defaults ? Sorry, bu that has to be done through an administration dialog somewhere in Windows. -phil. On 7/19/2011 2:39 PM, Patrick Reinhart wrote: > Hi there, > > I have a question considering the relation between the "old" > PrinterJob and the "new" PrintService: > > Should the job settings (for example amount of copies or the job name) > be held only within the PrinterJob and not be passed to the > PrinterService as set by PrinterJob.setPrintService(PrintService)? > > Here's a small szenario for my question: > > The following code is beeing executed by the customer: > > > PrintService ps = xx //lookup thru > PrintServiceLookup.lookupPrintServices() method > > PrinterJob pj = PrinterJob.getPrinterJob(); > > pj.setPrinterService(ps); > > pj.setCopies(2); > > pj.setJobName("theTestJob"); > > pj.print(); > > When the print() method is called, the following methods where called > on the PrintService returned by the lookup: > > > ps.createDocPrintJob() > > and finally on the DocPrintJob: > > > dpj.print(Doc, PrintJRequestAttributeSet) > > Now: Why does the print request attribute set not contain the Copies > attribute? Is this not intended or a bug? > > Thanks for some more explanation, I would like to help as soon I > understand the correct behavior.. > > Regards > > Patrick > > From patrick at reini.net Wed Jul 20 08:37:53 2011 From: patrick at reini.net (patrick at reini.net) Date: Wed, 20 Jul 2011 10:37:53 +0200 Subject: [OpenJDK 2D-Dev] Question about the relation of PrintService and PrinterJob In-Reply-To: <4E260266.7060801@oracle.com> References: <4E25F975.5060308@reini.net> <4E260266.7060801@oracle.com> Message-ID: <20110720103753.65053ywv1nmoknhd@webmail.nine.ch> Hi Phil, > So you created a PrinterJob, set some properties on that job and > then a DocPrinterJob and expect > the job properties to migrate from one to the other ? No, the first part of code is actually part in vendor software, which I can not change. > I would not expect that to work as they are distinct jobs. Moreover > dpj.print(Doc, PrintJRequestAttributeSet) > clearly provides the properties such as copies in that second argument. This fact I'm aware of. It seems that my explanation was not clear enough, I give it a other try: The vendor code operates on the PrinterJob and does set the different parameter as for example amount of copies and job name as described in my first code part. The createDocPrintJob() method is then called by the PrinterJob object on which the vendor code has set those job parameters before. On my returned DocPrintJob object the same PrinterJob instance later calls the method print(Doc, PrintRequestAttributeSet). Now, is my DocPrintJob object only aware of those print request attributes as they are passed in the print method within the attribute set right? But now the copies and job name attributes are now missing. I would expect that they should be contained in the request attribute set. My intention was to write only a additional PrintService... Regards Patrick From andrew.brygin at oracle.com Wed Jul 20 12:39:45 2011 From: andrew.brygin at oracle.com (andrew.brygin at oracle.com) Date: Wed, 20 Jul 2011 12:39:45 +0000 Subject: [OpenJDK 2D-Dev] hg: jdk8/2d/jdk: 7044285: 64 bit VM crashes in Java_sun_java2d_loops_MaskFill_MaskFill Message-ID: <20110720124008.D4D294756D@hg.openjdk.java.net> Changeset: ae05aa9ede7b Author: bae Date: 2011-07-20 16:18 +0400 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/ae05aa9ede7b 7044285: 64 bit VM crashes in Java_sun_java2d_loops_MaskFill_MaskFill Reviewed-by: jgodinez, prr ! src/share/native/sun/java2d/loops/GraphicsPrimitiveMgr.h From dlila at redhat.com Wed Jul 20 13:00:18 2011 From: dlila at redhat.com (Denis Lila) Date: Wed, 20 Jul 2011 09:00:18 -0400 (EDT) Subject: [OpenJDK 2D-Dev] Pisces AA renderer performance improvement. In-Reply-To: <1311109933.2314.13.camel@moonlight> Message-ID: <163250029.762818.1311166818166.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com> Hi Roman. > - What speaks against doing that? E.g. outputting pixelrow by > pixelrow? > I was implementing a pure Java AA scanline converter for GNU Classpath > some years ago and this is exactly what I did. I found that useful > because drawing horizontal lines is often very cheap (i.e. filling > adjacent bits/bytes in framebuffers). I think it would require changing around some interfaces, but other than that, not much. In fact, it is a TODO in the webrev I sent and, time permitting, I'll try to implement it. > - What about writing 32 pixelrows into an intermediate buffer and then > outputting those in 32x32 blocks when done? Or is this what you are > currently doing? No, but I actually implemented that about half a year ago, and it slowed things down. Then again, there are a lot of optimizations in this version that I didn't have back then, so maybe it's worth trying this idea again. Regards, Denis. ----- Original Message ----- > Hi Denis, > > > > The version in the webrev is the fastest yet, and it uses > > a class similar to the ScanlineIterator for the sorting > > (but now it iterates through pixel rows, not scanlines). > > Unfortunately this means that there still are two levels > > of intermediate storage (edges and crossings, analogous > > to edges and RLE elements in the old version), but the > > only way I can think of how to get rid of one of them > > and still take use an average linear time sort is if we > > start outputting alphas pixelrow by pixelrow, rather than > > in 32x32 tiles. > > > Cheers, Roman From james.graham at oracle.com Wed Jul 20 16:59:01 2011 From: james.graham at oracle.com (Jim Graham) Date: Wed, 20 Jul 2011 09:59:01 -0700 Subject: [OpenJDK 2D-Dev] Pisces AA renderer performance improvement. In-Reply-To: <1311109933.2314.13.camel@moonlight> References: <276956464.725405.1311109313614.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com> <1311109933.2314.13.camel@moonlight> Message-ID: <4E270955.7000309@oracle.com> That's a good intermediate suggestion to consider, but I'd love to move beyond that (eventually) and not be held back by the need to support 32x32 tiles for legacy reasons. It would be nice to hand back whatever kind of tiles makes sense for the rasterizer, but I think that Dmitri mentioned that the D3D pipeline sort of hard-codes a 32x32 assumption in a few places. It might be worth investigating how hard it would be to fix those dependencies so that we aren't held back with Pisces. I can't imagine it can be that daunting a task (unfortunately I'm heavily committed to another project right now, or I'd investigate it myself). I'm guessing it would involve changing the tile sizes from constants on the rasterizer to a method call on the tile generator and making the tile handlers more flexible to changes in tile sizes inside the renderers. And, for that matter, if there is some alternate way of delivering the coverage information that makes Pisces work much faster we should start thinking along those lines. If we let Ductus' design constraints (which were penned over a decade ago) hold Pisces back then we may never get to the point where Pisces can become our default renderer... :-( ...jim On 7/19/2011 2:12 PM, Roman Kennke wrote: > Hi Denis, > > >> The version in the webrev is the fastest yet, and it uses >> a class similar to the ScanlineIterator for the sorting >> (but now it iterates through pixel rows, not scanlines). >> Unfortunately this means that there still are two levels >> of intermediate storage (edges and crossings, analogous >> to edges and RLE elements in the old version), but the >> only way I can think of how to get rid of one of them >> and still take use an average linear time sort is if we >> start outputting alphas pixelrow by pixelrow, rather than >> in 32x32 tiles. > > - What speaks against doing that? E.g. outputting pixelrow by pixelrow? > I was implementing a pure Java AA scanline converter for GNU Classpath > some years ago and this is exactly what I did. I found that useful > because drawing horizontal lines is often very cheap (i.e. filling > adjacent bits/bytes in framebuffers). > - What about writing 32 pixelrows into an intermediate buffer and then > outputting those in 32x32 blocks when done? Or is this what you are > currently doing? > > Cheers, Roman > > From dlila at redhat.com Wed Jul 20 18:05:45 2011 From: dlila at redhat.com (Denis Lila) Date: Wed, 20 Jul 2011 14:05:45 -0400 (EDT) Subject: [OpenJDK 2D-Dev] Pisces AA renderer performance improvement. In-Reply-To: <4E270955.7000309@oracle.com> Message-ID: <370993960.788806.1311185145149.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com> > It might be worth investigating how hard it would be to fix those > dependencies so that we aren't held back with Pisces. I can't imagine > it can be that daunting a task (unfortunately I'm heavily committed to > another project right now, or I'd investigate it myself) I'll try looking into this. > If we let Ductus' design constraints (which were penned over a > decade ago) hold Pisces back then we may never get to > the point where Pisces can become our default renderer... :-( Actually, according to some J2DBench tests I ran on bezier curves, the version of Pisces in the webrev I sent out is already faster than Ductus on many inputs (mainly fill operations, and stroke operations performed on large curves. AA stroking smaller curves is still slower, but maybe that's because we're producing unnecessarily many edges in the curve->edge conversion. Or perhaps we need to integrate the stroker and renderer more closely). Regards, Denis. ----- Original Message ----- > That's a good intermediate suggestion to consider, but I'd love to > move > beyond that (eventually) and not be held back by the need to support > 32x32 tiles for legacy reasons. It would be nice to hand back whatever > kind of tiles makes sense for the rasterizer, but I think that Dmitri > mentioned that the D3D pipeline sort of hard-codes a 32x32 assumption > in > a few places. > >. I'm guessing > it would involve changing the tile sizes from constants on the > rasterizer to a method call on the tile generator and making the tile > handlers more flexible to changes in tile sizes inside the renderers. > > And, for that matter, if there is some alternate way of delivering the > coverage information that makes Pisces work much faster we should > start > thinking along those lines. > > ...jim > > On 7/19/2011 2:12 PM, Roman Kennke wrote: > > Hi Denis, > > > > > >> The version in the webrev is the fastest yet, and it uses > >> a class similar to the ScanlineIterator for the sorting > >> (but now it iterates through pixel rows, not scanlines). > >> Unfortunately this means that there still are two levels > >> of intermediate storage (edges and crossings, analogous > >> to edges and RLE elements in the old version), but the > >> only way I can think of how to get rid of one of them > >> and still take use an average linear time sort is if we > >> start outputting alphas pixelrow by pixelrow, rather than > >> in 32x32 tiles. > > > > - What speaks against doing that? E.g. outputting pixelrow by > > pixelrow? > > I was implementing a pure Java AA scanline converter for GNU > > Classpath > > some years ago and this is exactly what I did. I found that useful > > because drawing horizontal lines is often very cheap (i.e. filling > > adjacent bits/bytes in framebuffers). > > - What about writing 32 pixelrows into an intermediate buffer and > > then > > outputting those in 32x32 blocks when done? Or is this what you are > > currently doing? > > > > Cheers, Roman > > > > From james.graham at oracle.com Wed Jul 20 21:18:18 2011 From: james.graham at oracle.com (Jim Graham) Date: Wed, 20 Jul 2011 14:18:18 -0700 Subject: [OpenJDK 2D-Dev] Pisces AA renderer performance improvement. In-Reply-To: <370993960.788806.1311185145149.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com> References: <370993960.788806.1311185145149.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com> Message-ID: <4E27461A.40701@oracle.com> That's awesome! I'll look into reviewing the changes soon... ...jim On 7/20/2011 11:05 AM, Denis Lila wrote: >> If we let Ductus' design constraints (which were penned over a >> decade ago) hold Pisces back then we may never get to >> the point where Pisces can become our default renderer... :-( > > Actually, according to some J2DBench tests I ran on bezier curves, > the version of Pisces in the webrev I sent out is already faster > than Ductus on many inputs (mainly fill operations, and stroke > operations performed on large curves. AA stroking smaller curves is > still slower, but maybe that's because we're producing unnecessarily > many edges in the curve->edge conversion. Or perhaps we need to > integrate the stroker and renderer more closely). > > Regards, > Denis. From dlila at redhat.com Thu Jul 21 14:51:57 2011 From: dlila at redhat.com (Denis Lila) Date: Thu, 21 Jul 2011 10:51:57 -0400 (EDT) Subject: [OpenJDK 2D-Dev] Pisces AA renderer performance improvement. In-Reply-To: <4E27461A.40701@oracle.com> Message-ID: <1482237499.852365.1311259917350.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com> > That's awesome! I'll look into reviewing the changes soon... Nice :D Thanks, Denis. ----- Original Message ----- > > ...jim > > On 7/20/2011 11:05 AM, Denis Lila wrote: > >> If we let Ductus' design constraints (which were penned over a > >> decade ago) hold Pisces back then we may never get to > >> the point where Pisces can become our default renderer... :-( > > > > Actually, according to some J2DBench tests I ran on bezier curves, > > the version of Pisces in the webrev I sent out is already faster > > than Ductus on many inputs (mainly fill operations, and stroke > > operations performed on large curves. AA stroking smaller curves is > > still slower, but maybe that's because we're producing unnecessarily > > many edges in the curve->edge conversion. Or perhaps we need to > > integrate the stroker and renderer more closely). > > > > Regards, > > Denis. From ml at logemann.org Thu Jul 21 15:58:55 2011 From: ml at logemann.org (ml at logemann.org) Date: Thu, 21 Jul 2011 17:58:55 +0200 (CEST) Subject: [OpenJDK 2D-Dev] com.sun.image.codec.jpeg.JPEGImageEncoder with OpenJDK Message-ID: <4bfd4000d00641573a4524b55b201587.squirrel@isp2.logentis.net> Hi, can anyone tell me the status of com.sun.image.codec.jpeg.JPEGImageEncoder with OpenJDK 7 ? We tried running OpenJDK6 on Linux and werent able to use it since one project of ours use com.sun.image.codec.jpeg.JPEGImageEncoder. it seems that with OpenJDK6 this is an interface where the project expects it to be a class (or vice versa, dont know anymore). Or do we need to get a replacement for it? Marc From alexlamsl at gmail.com Thu Jul 21 17:24:19 2011 From: alexlamsl at gmail.com (Alex Lam S.L.) Date: Thu, 21 Jul 2011 18:24:19 +0100 Subject: [OpenJDK 2D-Dev] com.sun.image.codec.jpeg.JPEGImageEncoder with OpenJDK In-Reply-To: <4bfd4000d00641573a4524b55b201587.squirrel@isp2.logentis.net> References: <4bfd4000d00641573a4524b55b201587.squirrel@isp2.logentis.net> Message-ID: Hi there, com.sun.* are not part of the public API, IIRC. What exactly do you want to do with JPEGImageEncoder? I have been running an application which saves PNGs: ImageIO.write(destination, "PNG", new File(...)); And as far as I can tell, it works perfectly on Kubuntu with OpenJDK. So try replacing "PNG" with "JPEG" if that's what you need. HTH, Alex. On Thu, Jul 21, 2011 at 4:58 PM, wrote: > Hi, > > can anyone tell me the status of com.sun.image.codec.jpeg.JPEGImageEncoder > with OpenJDK 7 ? We tried running OpenJDK6 on Linux and werent able to use > it since one project of ours use > com.sun.image.codec.jpeg.JPEGImageEncoder. > > it seems that with OpenJDK6 this is an interface where the project expects > it to be a class (or vice versa, dont know anymore). > > Or do we need to get a replacement for it? > > Marc > > From philip.race at oracle.com Thu Jul 21 17:29:19 2011 From: philip.race at oracle.com (Phil Race) Date: Thu, 21 Jul 2011 10:29:19 -0700 Subject: [OpenJDK 2D-Dev] com.sun.image.codec.jpeg.JPEGImageEncoder with OpenJDK In-Reply-To: <4bfd4000d00641573a4524b55b201587.squirrel@isp2.logentis.net> References: <4bfd4000d00641573a4524b55b201587.squirrel@isp2.logentis.net> Message-ID: <4E2861EF.4050800@oracle.com> This does not exist in OpenJDK. It was proprietary code that we could not open source. Also it was never part of the Java SE spec. Just "co-bundled". If you want to use it you need to use the Sun/Oracle "product" JDK although we'd like to rip it out even from that in JDK8. The standard replacement is "javax.imagio" which has been there since 1.4 -phil. On 7/21/2011 8:58 AM, ml at logemann.org wrote: > Hi, > > can anyone tell me the status of com.sun.image.codec.jpeg.JPEGImageEncoder > with OpenJDK 7 ? We tried running OpenJDK6 on Linux and werent able to use > it since one project of ours use > com.sun.image.codec.jpeg.JPEGImageEncoder. > > it seems that with OpenJDK6 this is an interface where the project expects > it to be a class (or vice versa, dont know anymore). > > Or do we need to get a replacement for it? > > Marc > From omajid at redhat.com Thu Jul 21 18:22:00 2011 From: omajid at redhat.com (Omair Majid) Date: Thu, 21 Jul 2011 14:22:00 -0400 Subject: [OpenJDK 2D-Dev] com.sun.image.codec.jpeg.JPEGImageEncoder with OpenJDK In-Reply-To: <4bfd4000d00641573a4524b55b201587.squirrel@isp2.logentis.net> References: <4bfd4000d00641573a4524b55b201587.squirrel@isp2.logentis.net> Message-ID: <4E286E48.3050907@redhat.com> Hi, (CC'ing distro-pkg-dev as this looks like an IcedTea6 issue) On 07/21/2011 11:58 AM, ml at logemann.org wrote: > can anyone tell me the status of com.sun.image.codec.jpeg.JPEGImageEncoder > with OpenJDK 7 ? I will echo the thoughts of others: this is a legacy API. You should not be using it when developing new applications. For existing projects though, you may not have much choice. > We tried running OpenJDK6 on Linux and werent able to use > it since one project of ours use > com.sun.image.codec.jpeg.JPEGImageEncoder. > > it seems that with OpenJDK6 this is an interface where the project expects > it to be a class (or vice versa, dont know anymore). > IcedTea6 (which is what most Linux distributions package as OpenJDK6) provides an implementation of com.sun.image.codec.jpeg*. It seems you are running into specific bugs with that implementation. There have been a number of fixes [1][2] recently to the com.sun.image.codec.jpeg.* classes in IcedTea6. I would suggest that you build a recent version of IcedTea6 from source (see [3] for details and please use the the 'bleeding-edge' version from http://icedtea.classpath.org/hg/icedtea6), and run the program with that. If you are still running into issues, you might want to file specific bugs against IcedTea6 in the icedtea bugzilla [4]. Thanks, Omair [1] http://icedtea.classpath.org/hg/icedtea6/rev/8720a7df46e3 [2] http://icedtea.classpath.org/hg/icedtea6/rev/944778c61e3c [3] http://icedtea.classpath.org/wiki/Main_Page#Quickstart_.26_Building [4] http://icedtea.classpath.org/bugzilla/ From spoole at linux.vnet.ibm.com Thu Jul 21 19:05:12 2011 From: spoole at linux.vnet.ibm.com (Steve Poole) Date: Thu, 21 Jul 2011 20:05:12 +0100 Subject: [OpenJDK 2D-Dev] FontConfig fails when optional system library is missing In-Reply-To: <1311106184.2734.1.camel@galactica> References: <4E24A78F.40605@linux.vnet.ibm.com> <4E24AFE8.5030102@oracle.com> <4E24B043.102@oracle.com> <4E24BE12.50708@linux.vnet.ibm.com> <4E24CA8E.40404@oracle.com> <4E25B0DF.4070608@oracle.com> <4E25C76E.8060909@oracle.com> <1311102771.2314.5.camel@moonlight> <1311106184.2734.1.camel@galactica> Message-ID: <4E287868.4070101@linux.vnet.ibm.com> On 19/07/11 21:09, Mario Torre wrote: > Il giorno mar, 19/07/2011 alle 21.12 +0200, Roman Kennke ha scritto: >> IIRC, libfontconfig is also fairly standalone and portable, so when it's >> not there, it shouldn't be too hard to compile it. >> >> A while ago I contemplated and started to implement fontconfig in pure >> Java, which is not rocket science either, but then lost interest or time >> or both. >> >> Cheers, Roman >> > Yep, and we've used fontconfig basically on all the funny platforms we > supported at Aicas: if it works on VxWorks and OS9, you bet it works on > AIX :) > It works on AIX -it just not necessarily installed (it doesn't come with AIX as standard but as an unsupported package). Since the JDK code using fontconfig indicates that the presence of the library is optional, it seemed sensible to ensure that the JDK worked with and without the library being present. I'm happy to explore alternatives. I don't like the idea of making the presence of libfontconfig a prereq unless the java code using it is modularised so I could use a different implementation that didn't rely on the lib in the first place. Maybe the 100% Java approach is the way to go? > Cheers, > Mario > From neugens.limasoftware at gmail.com Fri Jul 22 20:17:23 2011 From: neugens.limasoftware at gmail.com (Mario Torre) Date: Fri, 22 Jul 2011 22:17:23 +0200 Subject: [OpenJDK 2D-Dev] Small patch for multi-catch :) Message-ID: Hi all! I was getting a refresh of some of the 2D code, and I thought I could use this opportunity to also refresh how the whole patch contribution process works (last patch I pushed was almost one year ago!) Here is a very simple refactoring to introduce the new multi-catch in the RenderingEngine http://cr.openjdk.java.net/~neugens/jdk8_pisces_multi_catch/ I tried with some of the demos in the jdk workspace (trying to load ductus) and things work as expected. What do you think? Cheers, Mario -- pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF Fingerprint: BA39 9666 94EC 8B73 27FA? FC7C 4086 63E3 80F2 40CF IcedRobot: www.icedrobot.org Proud GNU Classpath developer: http://www.classpath.org/ Read About us at: http://planet.classpath.org OpenJDK: http://openjdk.java.net/projects/caciocavallo/ Please, support open standards: http://endsoftpatents.org/ From philip.race at oracle.com Fri Jul 22 23:50:28 2011 From: philip.race at oracle.com (Phil Race) Date: Fri, 22 Jul 2011 16:50:28 -0700 Subject: [OpenJDK 2D-Dev] Small patch for multi-catch :) In-Reply-To: References: Message-ID: <4E2A0CC4.4020007@oracle.com> Looks OK .. you'll need to generate yourself a bug id. -phil. On 7/22/11 1:17 PM, Mario Torre wrote: > Hi all! > > I was getting a refresh of some of the 2D code, and I thought I could > use this opportunity to also refresh how the whole patch contribution > process works (last patch I pushed was almost one year ago!) > > Here is a very simple refactoring to introduce the new multi-catch in > the RenderingEngine > > http://cr.openjdk.java.net/~neugens/jdk8_pisces_multi_catch/ > > I tried with some of the demos in the jdk workspace (trying to load > ductus) and things work as expected. > > What do you think? > > Cheers, > Mario From neugens.limasoftware at gmail.com Sat Jul 23 11:35:27 2011 From: neugens.limasoftware at gmail.com (Mario Torre) Date: Sat, 23 Jul 2011 13:35:27 +0200 Subject: [OpenJDK 2D-Dev] Small patch for multi-catch :) In-Reply-To: <4E2A0CC4.4020007@oracle.com> References: <4E2A0CC4.4020007@oracle.com> Message-ID: 2011/7/23 Phil Race : > Looks OK .. you'll need to generate yourself a bug id. > > -phil. > Hello Phil, Thanks for the quick answer. I filed a new bug report, the ID is 100195: https://bugs.openjdk.java.net/show_bug.cgi?id=100195 I could not set the target release as JDK8, though. Cheers, Mario -- pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF Fingerprint: BA39 9666 94EC 8B73 27FA? FC7C 4086 63E3 80F2 40CF IcedRobot: www.icedrobot.org Proud GNU Classpath developer: http://www.classpath.org/ Read About us at: http://planet.classpath.org OpenJDK: http://openjdk.java.net/projects/caciocavallo/ Please, support open standards: http://endsoftpatents.org/ From philip.race at oracle.com Sat Jul 23 16:17:44 2011 From: philip.race at oracle.com (Phil Race) Date: Sat, 23 Jul 2011 09:17:44 -0700 Subject: [OpenJDK 2D-Dev] Small patch for multi-catch :) In-Reply-To: References: <4E2A0CC4.4020007@oracle.com> Message-ID: <4E2AF428.7080304@oracle.com> I forwarded on the lack of JDk 8 but this is so trivial I'd really just meant to file a bug at bugs.sun.com so you can get a bugster bug ID which is what is needed to push. If you mark it as subcat classes_2d you should get a bugster ID right away -phil. On 7/23/11 4:35 AM, Mario Torre wrote: > 2011/7/23 Phil Race: >> Looks OK .. you'll need to generate yourself a bug id. >> >> -phil. >> > Hello Phil, > > Thanks for the quick answer. I filed a new bug report, the ID is 100195: > > https://bugs.openjdk.java.net/show_bug.cgi?id=100195 > > I could not set the target release as JDK8, though. > > Cheers, > Mario From neugens.limasoftware at gmail.com Sat Jul 23 16:40:57 2011 From: neugens.limasoftware at gmail.com (Mario Torre) Date: Sat, 23 Jul 2011 18:40:57 +0200 Subject: [OpenJDK 2D-Dev] Small patch for multi-catch :) In-Reply-To: <4E2AF428.7080304@oracle.com> References: <4E2A0CC4.4020007@oracle.com> <4E2AF428.7080304@oracle.com> Message-ID: 2011/7/23 Phil Race : > I forwarded on the lack of JDk 8 but this is so trivial I'd really just > meant to file a bug at bugs.sun.com so you can get a bugster > bug ID which is what is needed to push. If you mark it as subcat classes_2d > you should get ?a bugster ID right away > > -phil. Hi Phil, I created a small RFE, I got the bug ID 7070155: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7070155 I also updated the bugs.openjdk.java.net version [1]. Cheers, Mario [1] That's plenty of bug reports for that simple patch, but maybe for completeness I should also add it to the IcedTea bugzilla ;) -- pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF Fingerprint: BA39 9666 94EC 8B73 27FA? FC7C 4086 63E3 80F2 40CF IcedRobot: www.icedrobot.org Proud GNU Classpath developer: http://www.classpath.org/ Read About us at: http://planet.classpath.org OpenJDK: http://openjdk.java.net/projects/caciocavallo/ Please, support open standards: http://endsoftpatents.org/ From Ulf.Zibis at gmx.de Sat Jul 23 20:19:55 2011 From: Ulf.Zibis at gmx.de (Ulf Zibis) Date: Sat, 23 Jul 2011 22:19:55 +0200 Subject: [OpenJDK 2D-Dev] Fwd: Re: Small patch for multi-catch :) In-Reply-To: <4E2AF3C2.5060609@oracle.com> References: <4E2AF3C2.5060609@oracle.com> Message-ID: <4E2B2CEB.30609@gmx.de> Hi, couldn't you use ReflectiveOperationException instead? Additionally you could better profit from generics: public static synchronized RenderingEngine getInstance() { if (reImpl == null) { reImpl = AccessController.doPrivileged( new PrivilegedAction() { public RenderingEngine run() { String reClass = System.getProperty("sun.java2d.renderer"); if ("sun.dc.DuctusRenderingEngine".equals(reClass)) { try { return (RenderingEngine)Class.forName(reClass).newInstance(); } catch (ReflectiveOperationException ignored) { } // not found } for (RenderingEngine re : ServiceLoader.loadInstalled( RenderingEngine.class)) { if (re.getClass().getName().equals(reClass)) { return re; } } return null; } }); if (reImpl == null) { throw new InternalError("No RenderingEngine module found"); } if(AccessController.doPrivileged(new GetPropertyAction( "sun.java2d.renderer.trace")) != null) { reImpl = new Tracer(reImpl); } } return reImpl; } And again more simple just use (no need for try...catch): public RenderingEngine run() { String reClass = System.getProperty("sun.java2d.renderer"); if ("sun.dc.DuctusRenderingEngine".equals(reClass)) { return new sun.dc.DuctusRenderingEngine(); } for (RenderingEngine re : ServiceLoader.loadInstalled( RenderingEngine.class)) { if (re.getClass().getName().equals(reClass)) { return re; } } return null; } -Ulf Am 23.07.2011 18:16, schrieb Phil Race: > Apparently bugs.openjdk.java.net hasn't heard of JDK 8 > > -phil. > > -------- Original Message -------- > Subject: Re: [OpenJDK 2D-Dev] Small patch for multi-catch :) > Date: Sat, 23 Jul 2011 13:35:27 +0200 > From: Mario Torre > To: Phil Race > CC: 2d-dev at openjdk.java.net > > > > 2011/7/23 Phil Race: >> Looks OK .. you'll need to generate yourself a bug id. >> >> -phil. >> > > Hello Phil, > > Thanks for the quick answer. I filed a new bug report, the ID is 100195: > > https://bugs.openjdk.java.net/show_bug.cgi?id=100195 > > I could not set the target release as JDK8, though. > > Cheers, > Mario From Ulf.Zibis at gmx.de Sat Jul 23 22:10:37 2011 From: Ulf.Zibis at gmx.de (Ulf Zibis) Date: Sun, 24 Jul 2011 00:10:37 +0200 Subject: [OpenJDK 2D-Dev] Fwd: Re: Small patch for multi-catch :) In-Reply-To: References: <4E2AF3C2.5060609@oracle.com> <4E2B2CEB.30609@gmx.de> Message-ID: <4E2B46DD.70504@gmx.de> Am 23.07.2011 22:35, schrieb Mario Torre: > 2011/7/23 Ulf Zibis: >> Hi, >> >> couldn't you use ReflectiveOperationException instead? > That's a good point, right. > >> Additionally you could better profit from generics: > Yeah, but I don't want to change more than needed. Hm, but is your change *needed* at all? > >> And again more simple just use (no need for try...catch): >> >> public RenderingEngine run() { >> String reClass = >> System.getProperty("sun.java2d.renderer"); >> if ("sun.dc.DuctusRenderingEngine".equals(reClass)) { >> return new sun.dc.DuctusRenderingEngine(); >> } >> for (RenderingEngine re : ServiceLoader.loadInstalled( >> RenderingEngine.class)) { >> if (re.getClass().getName().equals(reClass)) { >> return re; >> } >> } >> return null; >> } >> >> -Ulf > Again, I don't want to change more than needed. In this case, however, > I miss your point; as far as I know sun.dc.DuctusRenderingEngine() > cannot be instantiated, is not part of the OpenJDK distribution, so > this would not work on OpenJDK. In build b104 it's part of OpenJDK distribution. Just try it in your build. ;-) -Ulf > > Cheers, > Mario From neugens.limasoftware at gmail.com Mon Jul 25 10:27:23 2011 From: neugens.limasoftware at gmail.com (Mario Torre) Date: Mon, 25 Jul 2011 12:27:23 +0200 Subject: [OpenJDK 2D-Dev] Fwd: Re: Small patch for multi-catch :) In-Reply-To: <4E2B46DD.70504@gmx.de> References: <4E2AF3C2.5060609@oracle.com> <4E2B2CEB.30609@gmx.de> <4E2B46DD.70504@gmx.de> Message-ID: 2011/7/24 Ulf Zibis : > In build b104 it's part of OpenJDK distribution. > Just try it in your build. ;-) > > -Ulf > Well, not really, Ductus is not part of the Free Software verision AFAIK, and this is what happens when I try to include it: ../../../src/share/classes/sun/dc/DuctusRenderingEngine.java:39: error: package sun.dc.pr does not exist import sun.dc.pr.Rasterizer; ^ ../../../src/share/classes/sun/dc/DuctusRenderingEngine.java:40: error: package sun.dc.pr does not exist import sun.dc.pr.PathStroker; ^ ../../../src/share/classes/sun/dc/DuctusRenderingEngine.java:41: error: package sun.dc.pr does not exist import sun.dc.pr.PathDasher; ^ ../../../src/share/classes/sun/dc/DuctusRenderingEngine.java:42: error: package sun.dc.pr does not exist import sun.dc.pr.PRException; What is available is the entry point, DuctusRenderingEngine itself, so the RenderingEngine class would compile, but a full build would fail, unless I'm really missing something obvious of course. Cheers, Mario -- pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF Fingerprint: BA39 9666 94EC 8B73 27FA? FC7C 4086 63E3 80F2 40CF IcedRobot: www.icedrobot.org Proud GNU Classpath developer: http://www.classpath.org/ Read About us at: http://planet.classpath.org OpenJDK: http://openjdk.java.net/projects/caciocavallo/ Please, support open standards: http://endsoftpatents.org/ From philip.race at oracle.com Tue Jul 26 17:49:33 2011 From: philip.race at oracle.com (Phil Race) Date: Tue, 26 Jul 2011 10:49:33 -0700 Subject: [OpenJDK 2D-Dev] Fwd: Re: Small patch for multi-catch :) In-Reply-To: References: <4E2AF3C2.5060609@oracle.com> <4E2CD332.4070604@oracle.com> <4E2CDDBD.5030602@oracle.com> <4E2CE6C1.2070705@oracle.com> <4E2E0F2B.8060505@oracle.com> Message-ID: <4E2EFE2D.9060304@oracle.com> Yes that's fine. I didn't know myself about ReflectiveOperationException as its new in JDK 7. -phil. On 7/26/2011 9:24 AM, Mario Torre wrote: > >> Looks like it's already been added to bugster. >> >> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7070155 > Yeah, I did so. > > @Phil, is the patch ok to commit? I updated the webrev here: > > http://cr.openjdk.java.net/~neugens/7070155/webrev.01/ > > Cheers, > Mario From neugens.limasoftware at gmail.com Tue Jul 26 18:10:31 2011 From: neugens.limasoftware at gmail.com (Mario Torre) Date: Tue, 26 Jul 2011 20:10:31 +0200 Subject: [OpenJDK 2D-Dev] Fwd: Re: Small patch for multi-catch :) In-Reply-To: <4E2EFE2D.9060304@oracle.com> References: <4E2AF3C2.5060609@oracle.com> <4E2CD332.4070604@oracle.com> <4E2CDDBD.5030602@oracle.com> <4E2CE6C1.2070705@oracle.com> <4E2E0F2B.8060505@oracle.com> <4E2EFE2D.9060304@oracle.com> Message-ID: 2011/7/26 Phil Race : > Yes that's fine. I didn't know myself about ReflectiveOperationException ?as > its new in JDK 7. > > -phil. Hi Phil, Yeah, same for me :) Now, to commit, I need to grab the java2d branch, I need the bug id and the commit message, is this one ok? (sorry, I got some rust on the process :) 7070155: A small refactoring patch for the abstract RenderingEngine. Summary: Simplify code by using ReflectiveOperationException instead of 3 ignored catch blocks Reviewed-by: prr Cheers, Mario -- pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF Fingerprint: BA39 9666 94EC 8B73 27FA? FC7C 4086 63E3 80F2 40CF IcedRobot: www.icedrobot.org Proud GNU Classpath developer: http://www.classpath.org/ Read About us at: http://planet.classpath.org OpenJDK: http://openjdk.java.net/projects/caciocavallo/ Please, support open standards: http://endsoftpatents.org/ From neugens.limasoftware at gmail.com Tue Jul 26 18:19:50 2011 From: neugens.limasoftware at gmail.com (Mario Torre) Date: Tue, 26 Jul 2011 20:19:50 +0200 Subject: [OpenJDK 2D-Dev] Fwd: Re: Small patch for multi-catch :) In-Reply-To: References: <4E2AF3C2.5060609@oracle.com> <4E2CD332.4070604@oracle.com> <4E2CDDBD.5030602@oracle.com> <4E2CE6C1.2070705@oracle.com> <4E2E0F2B.8060505@oracle.com> <4E2EFE2D.9060304@oracle.com> Message-ID: 2011/7/26 Mario Torre : > 2011/7/26 Phil Race : >> Yes that's fine. I didn't know myself about ReflectiveOperationException ?as >> its new in JDK 7. >> >> -phil. > > Hi Phil, > > Yeah, same for me :) > > Now, to commit, I need to grab the java2d branch, I need the bug id > and the commit message, is this one ok? (sorry, I got some rust on the > process :) And that means: http://hg.openjdk.java.net/jdk8/2d/ for reading and http://hg.openjdk.java.net/jdk8/2d-gate as push repository, correct? > 7070155: A small refactoring patch for the abstract RenderingEngine. > Summary: Simplify code by using ReflectiveOperationException instead > of 3 ignored catch blocks > Reviewed-by: prr Cheers, Mario -- pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF Fingerprint: BA39 9666 94EC 8B73 27FA? FC7C 4086 63E3 80F2 40CF IcedRobot: www.icedrobot.org Proud GNU Classpath developer: http://www.classpath.org/ Read About us at: http://planet.classpath.org OpenJDK: http://openjdk.java.net/projects/caciocavallo/ Please, support open standards: http://endsoftpatents.org/ From philip.race at oracle.com Tue Jul 26 18:30:46 2011 From: philip.race at oracle.com (Phil Race) Date: Tue, 26 Jul 2011 11:30:46 -0700 Subject: [OpenJDK 2D-Dev] Fwd: Re: Small patch for multi-catch :) In-Reply-To: References: <4E2AF3C2.5060609@oracle.com> <4E2CD332.4070604@oracle.com> <4E2CDDBD.5030602@oracle.com> <4E2CE6C1.2070705@oracle.com> <4E2E0F2B.8060505@oracle.com> <4E2EFE2D.9060304@oracle.com> Message-ID: <4E2F07D6.6070602@oracle.com> Yes. -phil. On 7/26/2011 11:19 AM, Mario Torre wrote: > 2011/7/26 Mario Torre: >> 2011/7/26 Phil Race: >>> Yes that's fine. I didn't know myself about ReflectiveOperationException as >>> its new in JDK 7. >>> >>> -phil. >> Hi Phil, >> >> Yeah, same for me :) >> >> Now, to commit, I need to grab the java2d branch, I need the bug id >> and the commit message, is this one ok? (sorry, I got some rust on the >> process :) > And that means: > > http://hg.openjdk.java.net/jdk8/2d/ > > for reading and > > http://hg.openjdk.java.net/jdk8/2d-gate > > as push repository, correct? > >> 7070155: A small refactoring patch for the abstract RenderingEngine. >> Summary: Simplify code by using ReflectiveOperationException instead >> of 3 ignored catch blocks >> Reviewed-by: prr > Cheers, > Mario > From neugens.limasoftware at gmail.com Tue Jul 26 19:34:43 2011 From: neugens.limasoftware at gmail.com (neugens.limasoftware at gmail.com) Date: Tue, 26 Jul 2011 19:34:43 +0000 Subject: [OpenJDK 2D-Dev] hg: jdk8/2d/jdk: 7070155: A small refactoring patch for the abstract RenderingEngine. Message-ID: <20110726193454.33CF147739@hg.openjdk.java.net> Changeset: 40d0dea5d0fc Author: neugens Date: 2011-07-26 21:34 +0200 URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/40d0dea5d0fc 7070155: A small refactoring patch for the abstract RenderingEngine. Summary: Simplify code by using ReflectiveOperationException instead of 3 ignored catch blocks Reviewed-by: prr ! src/share/classes/sun/java2d/pipe/RenderingEngine.java From neugens.limasoftware at gmail.com Tue Jul 26 19:45:05 2011 From: neugens.limasoftware at gmail.com (Mario Torre) Date: Tue, 26 Jul 2011 21:45:05 +0200 Subject: [OpenJDK 2D-Dev] Fwd: Re: Small patch for multi-catch :) In-Reply-To: <4E2F07D6.6070602@oracle.com> References: <4E2AF3C2.5060609@oracle.com> <4E2CD332.4070604@oracle.com> <4E2CDDBD.5030602@oracle.com> <4E2CE6C1.2070705@oracle.com> <4E2E0F2B.8060505@oracle.com> <4E2EFE2D.9060304@oracle.com> <4E2F07D6.6070602@oracle.com> Message-ID: <1311709508.2752.0.camel@galactica> Il giorno mar, 26/07/2011 alle 11.30 -0700, Phil Race ha scritto: > Yes. > > -phil. Hi Phil, I've committed, Thanks, Mario