summaryrefslogtreecommitdiff
path: root/xmlscript/test
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-08-23 14:25:41 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2012-08-30 05:27:01 +0200
commit3f8da6ae8b6584cf6a95fc9b1f4f9045270c0555 (patch)
treeea43842b9a9502d0c408881919de39ce8d972ccf /xmlscript/test
parent8c32e8758a2244174a533e045ff9e8113581ee7d (diff)
fdo#38791: Do not use java.awt, causes problems on Mac OS X
On Mac OS X, it apparently suffices to execute "new java.awt.Dimension()" to run into "Apple AWT Java VM was loaded on first thread -- can't start AWT" (see <http://developer.apple.com/library/mac/#technotes/tn2005/tn2147.html> "JNI Development on Mac OS X - Thread-Safe JNI Programming - Calling AWT/Swing From AppKit"). The solution here is simple, in that uses of java.awt.Dimension can be replaced with com.sun.star.awt.Size without loss of functionality. However, there are still occurrences of java.awt.Image and java.awt.Toolkit lurking (reportbuilder/java/com/sun/star/report/SOImageService.java, reportbuilder/java/com/sun/star/report/pentaho/output/ImageProducer.java, reportbuilder/java/com/sun/star/report/pentaho/output/OfficeDocumentReportTarget.java) for which it might be sheer luck that they do not seem to cause trouble yet. Change-Id: I33e9f74c50ebddc11bd1d9a48c55dc8f8700345d Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'xmlscript/test')
0 files changed, 0 insertions, 0 deletions