Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 48713 Details for
Bug 154894
OutOfMemoryError while xpath analysis for 11K rules using IBMJDK 1.5
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Patch
Bugzilla_154894.txt (text/plain), 2.21 KB, created by
Alex Nan
on 2006-08-25 09:36:04 EDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Alex Nan
Created:
2006-08-25 09:36:04 EDT
Size:
2.21 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.tptp.platform.models >Index: src-fastxpath-common/org/eclipse/tptp/platform/provisional/fastxpath/compiler/EclipseCompiler.java >=================================================================== >RCS file: /home/tptp/platform/org.eclipse.tptp.platform.models/src-fastxpath-common/org/eclipse/tptp/platform/provisional/fastxpath/compiler/EclipseCompiler.java,v >retrieving revision 1.1 >diff -u -r1.1 EclipseCompiler.java >--- src-fastxpath-common/org/eclipse/tptp/platform/provisional/fastxpath/compiler/EclipseCompiler.java 4 May 2006 15:51:18 -0000 1.1 >+++ src-fastxpath-common/org/eclipse/tptp/platform/provisional/fastxpath/compiler/EclipseCompiler.java 25 Aug 2006 13:37:36 -0000 >@@ -51,6 +51,8 @@ > private char[] sourcecode; > > private Set classLoaders; >+ >+ private MyClassLoader classLoader = null; > > /** > * @see org.eclipse.tptp.platform.provisional.fastxpath.compiler.FastXPathClassGenerator#getBytes() >@@ -63,7 +65,8 @@ > * @see org.eclipse.tptp.platform.provisional.fastxpath.compiler.FastXPathClassGenerator#generateClass(byte[]) > */ > public Class generateClass(byte[] bArr) throws ClassNotFoundException, CodeGenerationError { >- return new MyClassLoader(getClass().getClassLoader()).defineClass(bArr); >+// return new MyClassLoader(getClass().getClassLoader()).defineClass(bArr); >+ return getClassLoader().defineClass(bArr); > } > > /** >@@ -75,7 +78,8 @@ > */ > public Class generateClass(final char[] source, final String targetClassName) throws ClassNotFoundException, CodeGenerationError { > >- final MyClassLoader classLoader = new MyClassLoader(getClass().getClassLoader()); >+// final MyClassLoader classLoader = new MyClassLoader(getClass().getClassLoader()); >+ final MyClassLoader classLoader = getClassLoader(); > final ArrayList problemList = new ArrayList(); > > final INameEnvironment env = new MyNameEnvironment(targetClassName, this.getClass().getClassLoader(), source); >@@ -364,4 +368,11 @@ > } > return is; > } >+ >+ protected MyClassLoader getClassLoader(){ >+ if(classLoader == null){ >+ classLoader = new MyClassLoader(getClass().getClassLoader()); >+ } >+ return classLoader; >+ } > } >\ No newline at end of file
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 154894
:
48713
|
48739