summaryrefslogtreecommitdiff
path: root/jvmaccess
diff options
context:
space:
mode:
Diffstat (limited to 'jvmaccess')
-rw-r--r--jvmaccess/IwyuFilter_jvmaccess.yaml6
-rw-r--r--jvmaccess/source/classpath.cxx4
2 files changed, 8 insertions, 2 deletions
diff --git a/jvmaccess/IwyuFilter_jvmaccess.yaml b/jvmaccess/IwyuFilter_jvmaccess.yaml
new file mode 100644
index 000000000000..43e850e12f8f
--- /dev/null
+++ b/jvmaccess/IwyuFilter_jvmaccess.yaml
@@ -0,0 +1,6 @@
+---
+assumeFilename: jvmaccess/source/classpath.cxx
+blacklist:
+ jvmaccess/source/classpath.cxx:
+ # Needed to inherit linker visibility from function declaration
+ - jvmaccess/classpath.hxx
diff --git a/jvmaccess/source/classpath.cxx b/jvmaccess/source/classpath.cxx
index c1a0d165f397..b4d0ef3d6bfa 100644
--- a/jvmaccess/source/classpath.cxx
+++ b/jvmaccess/source/classpath.cxx
@@ -27,8 +27,6 @@
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <com/sun/star/uno/Reference.hxx>
-#include <com/sun/star/uno/RuntimeException.hpp>
-#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/uri/UriReferenceFactory.hpp>
#include <com/sun/star/uri/XVndSunStarExpandUrlReference.hpp>
@@ -39,6 +37,8 @@
#include <jni.h>
+namespace com::sun::star::uno { class XComponentContext; }
+
jobjectArray jvmaccess::ClassPath::translateToUrls(
css::uno::Reference< css::uno::XComponentContext > const & context,
JNIEnv * environment, OUString const & classPath)