summaryrefslogtreecommitdiff
path: root/sysui/prj
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-08-23 14:25:41 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-08-23 14:34:56 +0200
commit86a60b36552d5785a33bc9eed1e082bd5c54100f (patch)
tree2af85231f9f7024392406b3f23785fa89c4530c0 /sysui/prj
parent8098a03d025a0c8fee90322e3835079edb45ade3 (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
Diffstat (limited to 'sysui/prj')
0 files changed, 0 insertions, 0 deletions