CommonTools.cxx (9b5730f6) | CommonTools.cxx (24c56ab9) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 266 unchanged lines hidden (view full) --- 275 if ( _pJVM.is() ) 276 { 277 jvmaccess::VirtualMachine::AttachGuard aGuard(_pJVM); 278 JNIEnv* pEnv = aGuard.getEnvironment(); 279 if( pEnv ) 280 { 281 ::rtl::OString sClassName = ::rtl::OUStringToOString(_sClassName, RTL_TEXTENCODING_ASCII_US); 282 sClassName = sClassName.replace('.','/'); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 266 unchanged lines hidden (view full) --- 275 if ( _pJVM.is() ) 276 { 277 jvmaccess::VirtualMachine::AttachGuard aGuard(_pJVM); 278 JNIEnv* pEnv = aGuard.getEnvironment(); 279 if( pEnv ) 280 { 281 ::rtl::OString sClassName = ::rtl::OUStringToOString(_sClassName, RTL_TEXTENCODING_ASCII_US); 282 sClassName = sClassName.replace('.','/'); |
283 jobject out = pEnv->FindClass(sClassName); | 283 jobject out = pEnv->FindClass( sClassName.getStr()); |
284 bRet = out != NULL; 285 pEnv->DeleteLocalRef( out ); 286 } 287 } 288#endif 289 return bRet; 290 } 291 --- 74 unchanged lines hidden --- | 284 bRet = out != NULL; 285 pEnv->DeleteLocalRef( out ); 286 } 287 } 288#endif 289 return bRet; 290 } 291 --- 74 unchanged lines hidden --- |