Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
93056481
Kaydet (Commit)
93056481
authored
Eki 16, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
java: when rethrowing exceptions, store the original
Change-Id: I8a2a264597d0b1ae06b08136fea36003682380b5
üst
03c7c26c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
41 deletions
+42
-41
OOoBean.java
bean/com/sun/star/comp/beans/OOoBean.java
+17
-15
BasicMacroTools.java
qadevOOo/runner/util/BasicMacroTools.java
+3
-8
_XPropertyWithState.java
qadevOOo/tests/java/ifc/beans/_XPropertyWithState.java
+1
-2
TableWindowAccessibility.java
...Oo/tests/java/mod/_dbaccess/TableWindowAccessibility.java
+1
-2
StrictResolver.java
...n/star/script/framework/provider/java/StrictResolver.java
+20
-14
No files found.
bean/com/sun/star/comp/beans/OOoBean.java
Dosyayı görüntüle @
93056481
...
...
@@ -894,28 +894,30 @@ public class OOoBean
NoDocumentException
,
java
.
io
.
IOException
,
com
.
sun
.
star
.
lang
.
IllegalArgumentException
{
{
// wrap byte arrray into UNO stream
com
.
sun
.
star
.
lib
.
uno
.
adapter
.
XOutputStreamToByteArrayAdapter
aStream
=
new
com
.
sun
.
star
.
lib
.
uno
.
adapter
.
XOutputStreamToByteArrayAdapter
(
aOutBuffer
);
com
.
sun
.
star
.
lib
.
uno
.
adapter
.
XOutputStreamToByteArrayAdapter
aStream
=
new
com
.
sun
.
star
.
lib
.
uno
.
adapter
.
XOutputStreamToByteArrayAdapter
(
aOutBuffer
);
// add stream to arguments
com
.
sun
.
star
.
beans
.
PropertyValue
[]
aExtendedArguments
=
addArgument
(
aArguments
,
new
com
.
sun
.
star
.
beans
.
PropertyValue
(
"OutputStream"
,
-
1
,
aStream
,
com
.
sun
.
star
.
beans
.
PropertyState
.
DIRECT_VALUE
)
);
com
.
sun
.
star
.
beans
.
PropertyValue
[]
aExtendedArguments
=
addArgument
(
aArguments
,
new
com
.
sun
.
star
.
beans
.
PropertyValue
(
"OutputStream"
,
-
1
,
aStream
,
com
.
sun
.
star
.
beans
.
PropertyState
.
DIRECT_VALUE
));
// call normal store method
storeToURL
(
"private:stream"
,
aExtendedArguments
);
storeToURL
(
"private:stream"
,
aExtendedArguments
);
// get byte array from document stream
try
{
aStream
.
closeOutput
();
}
catch
(
com
.
sun
.
star
.
io
.
NotConnectedException
aExc
)
{
/* TDB */
}
catch
(
com
.
sun
.
star
.
io
.
BufferSizeExceededException
aExc
)
{
/* TDB */
}
catch
(
com
.
sun
.
star
.
io
.
IOException
aExc
)
{
throw
new
java
.
io
.
IOException
();
}
try
{
aStream
.
closeOutput
();
}
catch
(
com
.
sun
.
star
.
io
.
NotConnectedException
aExc
)
{
/* TDB */
}
catch
(
com
.
sun
.
star
.
io
.
BufferSizeExceededException
aExc
)
{
/* TDB */
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ex1
)
{
java
.
io
.
IOException
ex2
=
new
java
.
io
.
IOException
();
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
return
aStream
.
getBuffer
();
}
...
...
qadevOOo/runner/util/BasicMacroTools.java
Dosyayı görüntüle @
93056481
...
...
@@ -109,14 +109,9 @@ public class BasicMacroTools {
private
static
XURLTransformer
makeParser
(
XMultiServiceFactory
mMSF
)
throws
java
.
lang
.
Exception
{
try
{
return
UnoRuntime
.
queryInterface
(
XURLTransformer
.
class
,
mMSF
.
createInstance
(
"com.sun.star.util.URLTransformer"
));
}
catch
(
Exception
e
)
{
throw
new
Exception
(
"could not create UTL-Transformer "
+
e
.
toString
());
}
return
UnoRuntime
.
queryInterface
(
XURLTransformer
.
class
,
mMSF
.
createInstance
(
"com.sun.star.util.URLTransformer"
));
}
public
void
loadLibrary
(
String
LibraryName
,
String
LibraryURL
)
...
...
qadevOOo/tests/java/ifc/beans/_XPropertyWithState.java
Dosyayı görüntüle @
93056481
...
...
@@ -56,8 +56,7 @@ public class _XPropertyWithState extends MultiMethodTest {
oObj
.
getDefaultAsProperty
();
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
e
){
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
Status
.
failed
(
"'com.sun.star.lang.WrappedTargetException' was thrown"
));
throw
new
StatusException
(
e
,
Status
.
failed
(
"'com.sun.star.lang.WrappedTargetException' was thrown"
));
}
tRes
.
tested
(
"getDefaultAsProperty()"
,
true
);
...
...
qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java
Dosyayı görüntüle @
93056481
...
...
@@ -164,8 +164,7 @@ public class TableWindowAccessibility extends TestCase {
store
.
storeAsURL
(
aFile
,
new
PropertyValue
[]{});
log
.
println
(
"... done"
);
}
catch
(
com
.
sun
.
star
.
uno
.
Exception
e
)
{
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
Status
.
failed
(
"Couldn't register object"
));
throw
new
StatusException
(
e
,
Status
.
failed
(
"Couldn't register object"
));
}
isolConnection
=
UnoRuntime
.
queryInterface
(
...
...
scripting/java/com/sun/star/script/framework/provider/java/StrictResolver.java
Dosyayı görüntüle @
93056481
...
...
@@ -57,14 +57,16 @@ public class StrictResolver implements Resolver {
try
{
m
=
resolveArguments
(
sd
,
c
);
}
catch
(
ClassNotFoundException
e
)
{
throw
new
NoSuchMethodException
(
"StrictResolver.getProxy: Can't find method: "
+
sd
.
getMethodName
()
+
":"
+
e
.
getMessage
());
}
catch
(
NoSuchMethodException
e
)
{
throw
new
NoSuchMethodException
(
"StrictResolver.getProxy: Can't find method: "
+
sd
.
getMethodName
()
+
":"
+
e
.
getMessage
());
}
catch
(
ClassNotFoundException
ex1
)
{
NoSuchMethodException
ex2
=
new
NoSuchMethodException
(
"StrictResolver.getProxy: Can't find method: "
+
sd
.
getMethodName
());
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
catch
(
NoSuchMethodException
ex1
)
{
NoSuchMethodException
ex2
=
new
NoSuchMethodException
(
"StrictResolver.getProxy: Can't find method: "
+
sd
.
getMethodName
());
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
ScriptProxy
sp
=
new
ScriptProxy
(
m
);
...
...
@@ -76,12 +78,16 @@ public class StrictResolver implements Resolver {
try
{
o
=
c
.
newInstance
();
}
catch
(
InstantiationException
ie
)
{
throw
new
NoSuchMethodException
(
"getScriptProxy: Can't instantiate: "
+
c
.
getName
());
}
catch
(
IllegalAccessException
iae
)
{
throw
new
NoSuchMethodException
(
"getScriptProxy: Can't access: "
+
c
.
getName
());
}
catch
(
InstantiationException
ex1
)
{
NoSuchMethodException
ex2
=
new
NoSuchMethodException
(
"getScriptProxy: Can't instantiate: "
+
c
.
getName
());
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
catch
(
IllegalAccessException
ex1
)
{
NoSuchMethodException
ex2
=
new
NoSuchMethodException
(
"getScriptProxy: Can't access: "
+
c
.
getName
());
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
sp
.
setTargetObject
(
o
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment