1 https://bugzilla.redhat.com/show_bug.cgi?id=998477
3 diff -up clucene-core-0.9.21b/src/CLucene/debug/lucenebase.h.gcc48 clucene-core-0.9.21b/src/CLucene/debug/lucenebase.h
4 --- clucene-core-0.9.21b/src/CLucene/debug/lucenebase.h.gcc48 2008-10-23 12:44:35.000000000 -0500
5 +++ clucene-core-0.9.21b/src/CLucene/debug/lucenebase.h 2013-08-27 13:17:35.754234297 -0500
6 @@ -58,7 +58,7 @@ public:
10 - virtual ~LuceneBase(){};
11 + virtual ~LuceneBase() throw(CLuceneError&) {};
15 diff -up clucene-core-0.9.21b/src/CLucene/index/CompoundFile.cpp.gcc48 clucene-core-0.9.21b/src/CLucene/index/CompoundFile.cpp
16 --- clucene-core-0.9.21b/src/CLucene/index/CompoundFile.cpp.gcc48 2013-08-27 13:17:35.754234297 -0500
17 +++ clucene-core-0.9.21b/src/CLucene/index/CompoundFile.cpp 2013-08-27 13:18:02.844949386 -0500
18 @@ -94,7 +94,7 @@ CompoundFileReader::CompoundFileReader(D
22 -CompoundFileReader::~CompoundFileReader(){
23 +CompoundFileReader::~CompoundFileReader() throw(CLuceneError&) {
27 diff -up clucene-core-0.9.21b/src/CLucene/index/CompoundFile.h.gcc48 clucene-core-0.9.21b/src/CLucene/index/CompoundFile.h
28 --- clucene-core-0.9.21b/src/CLucene/index/CompoundFile.h.gcc48 2008-10-23 12:44:37.000000000 -0500
29 +++ clucene-core-0.9.21b/src/CLucene/index/CompoundFile.h 2013-08-27 13:17:35.755234286 -0500
30 @@ -95,7 +95,7 @@ protected:
33 CompoundFileReader(CL_NS(store)::Directory* dir, char* name);
34 - ~CompoundFileReader();
35 + ~CompoundFileReader() throw(CLuceneError&);
36 CL_NS(store)::Directory* getDirectory();
37 const char* getName() const;
39 diff -up clucene-core-0.9.21b/src/CLucene/index/Term.cpp.gcc48 clucene-core-0.9.21b/src/CLucene/index/Term.cpp
40 --- clucene-core-0.9.21b/src/CLucene/index/Term.cpp.gcc48 2008-10-23 12:44:37.000000000 -0500
41 +++ clucene-core-0.9.21b/src/CLucene/index/Term.cpp 2013-08-27 13:17:35.755234286 -0500
42 @@ -81,7 +81,7 @@ Term::Term(const TCHAR* fld, const TCHAR
47 +Term::~Term() throw (CLuceneError&) {
50 //Post - The instance has been destroyed. field and text have been deleted if pre(intrn) is false
51 diff -up clucene-core-0.9.21b/src/CLucene/index/Term.h.gcc48 clucene-core-0.9.21b/src/CLucene/index/Term.h
52 --- clucene-core-0.9.21b/src/CLucene/index/Term.h.gcc48 2008-10-23 12:44:37.000000000 -0500
53 +++ clucene-core-0.9.21b/src/CLucene/index/Term.h 2013-08-27 13:17:35.755234286 -0500
54 @@ -68,7 +68,7 @@ class Term:LUCENE_REFBASE {
55 Term(const TCHAR* fld, const TCHAR* txt);
59 + ~Term() throw(CLuceneError&);
61 ///Returns the field of this term, an interned string. The field indicates
62 ///the part of a document which this term came from.
63 diff -up clucene-core-0.9.21b/src/CLucene/store/Directory.h.gcc48 clucene-core-0.9.21b/src/CLucene/store/Directory.h
64 --- clucene-core-0.9.21b/src/CLucene/store/Directory.h.gcc48 2008-10-23 12:44:36.000000000 -0500
65 +++ clucene-core-0.9.21b/src/CLucene/store/Directory.h 2013-08-27 13:17:35.756234276 -0500
66 @@ -41,7 +41,7 @@ CL_NS_DEF(store)
68 DEFINE_MUTEX(THIS_LOCK)
70 - virtual ~Directory(){ };
71 + virtual ~Directory() throw(CLuceneError&) { };
73 // Returns an null terminated array of strings, one for each file in the directory.
75 diff -up clucene-core-0.9.21b/src/CLucene/store/FSDirectory.cpp.gcc48 clucene-core-0.9.21b/src/CLucene/store/FSDirectory.cpp
76 --- clucene-core-0.9.21b/src/CLucene/store/FSDirectory.cpp.gcc48 2008-10-23 13:01:52.000000000 -0500
77 +++ clucene-core-0.9.21b/src/CLucene/store/FSDirectory.cpp 2013-08-27 13:17:35.756234276 -0500
78 @@ -368,7 +368,7 @@ void FSDirectory::FSIndexInput::readInte
82 - FSDirectory::~FSDirectory(){
83 + FSDirectory::~FSDirectory() throw(CLuceneError&) {
86 void FSDirectory::list(vector<string>* names) const{ //todo: fix this, ugly!!!
87 diff -up clucene-core-0.9.21b/src/CLucene/store/FSDirectory.h.gcc48 clucene-core-0.9.21b/src/CLucene/store/FSDirectory.h
88 --- clucene-core-0.9.21b/src/CLucene/store/FSDirectory.h.gcc48 2008-10-23 13:00:43.000000000 -0500
89 +++ clucene-core-0.9.21b/src/CLucene/store/FSDirectory.h 2013-08-27 13:17:35.756234276 -0500
91 ///Destructor - only call this if you are sure the directory
92 ///is not being used anymore. Otherwise use the ref-counting
93 ///facilities of _CLDECDELETE
95 + ~FSDirectory() throw(CLuceneError&);
97 /// Get a list of strings, one for each file in the directory.
98 void list(vector<string>* names) const;
99 diff -up clucene-core-0.9.21b/src/CLucene/store/RAMDirectory.cpp.gcc48 clucene-core-0.9.21b/src/CLucene/store/RAMDirectory.cpp
100 --- clucene-core-0.9.21b/src/CLucene/store/RAMDirectory.cpp.gcc48 2008-10-23 12:44:36.000000000 -0500
101 +++ clucene-core-0.9.21b/src/CLucene/store/RAMDirectory.cpp 2013-08-27 13:17:35.757234265 -0500
102 @@ -219,7 +219,7 @@ CL_NS_DEF(store)
106 - RAMDirectory::~RAMDirectory(){
107 + RAMDirectory::~RAMDirectory() throw(CLuceneError&) {
108 //todo: should call close directory?
111 diff -up clucene-core-0.9.21b/src/CLucene/store/RAMDirectory.h.gcc48 clucene-core-0.9.21b/src/CLucene/store/RAMDirectory.h
112 --- clucene-core-0.9.21b/src/CLucene/store/RAMDirectory.h.gcc48 2008-10-23 12:44:36.000000000 -0500
113 +++ clucene-core-0.9.21b/src/CLucene/store/RAMDirectory.h 2013-08-27 13:17:35.757234265 -0500
114 @@ -131,7 +131,7 @@ CL_NS_DEF(store)
115 ///Destructor - only call this if you are sure the directory
116 ///is not being used anymore. Otherwise use the ref-counting
117 ///facilities of dir->close
118 - virtual ~RAMDirectory();
119 + virtual ~RAMDirectory() throw(CLuceneError&);
120 RAMDirectory(Directory* dir);
123 diff -up clucene-core-0.9.21b/src/CLucene/store/TransactionalRAMDirectory.cpp.gcc48 clucene-core-0.9.21b/src/CLucene/store/TransactionalRAMDirectory.cpp
124 --- clucene-core-0.9.21b/src/CLucene/store/TransactionalRAMDirectory.cpp.gcc48 2008-10-23 12:44:36.000000000 -0500
125 +++ clucene-core-0.9.21b/src/CLucene/store/TransactionalRAMDirectory.cpp 2013-08-27 13:17:35.757234265 -0500
126 @@ -16,7 +16,7 @@ CL_NS_USE(util)
130 - TransactionalRAMDirectory::~TransactionalRAMDirectory(){
131 + TransactionalRAMDirectory::~TransactionalRAMDirectory() throw(CLuceneError&) {
134 bool TransactionalRAMDirectory::archiveOrigFileIfNecessary(const char* name) {
135 diff -up clucene-core-0.9.21b/src/CLucene/store/TransactionalRAMDirectory.h.gcc48 clucene-core-0.9.21b/src/CLucene/store/TransactionalRAMDirectory.h
136 --- clucene-core-0.9.21b/src/CLucene/store/TransactionalRAMDirectory.h.gcc48 2008-10-23 12:44:36.000000000 -0500
137 +++ clucene-core-0.9.21b/src/CLucene/store/TransactionalRAMDirectory.h 2013-08-27 13:17:35.757234265 -0500
138 @@ -44,7 +44,7 @@ CL_NS_DEF(store)
141 TransactionalRAMDirectory();
142 - virtual ~TransactionalRAMDirectory();
143 + virtual ~TransactionalRAMDirectory() throw(CLuceneError&);
145 bool transIsOpen() const;