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 88985 Details for
Bug 201936
[Testsuite Failure] Testsuite Monitor.UI.ImportLog.Part1 is failing because of failure in multiple logs import, same logs are getting imported individually
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]
Patch
parserWrapper.txt (text/plain), 1.50 KB, created by
Rohit Shetty
on 2008-02-06 07:17:56 EST
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Rohit Shetty
Created:
2008-02-06 07:17:56 EST
Size:
1.50 KB
patch
obsolete
>Index: src.import/org/eclipse/hyades/logging/parsers/importer/ParserWrapper.java >=================================================================== >RCS file: /cvsroot/tptp/monitoring/org.eclipse.hyades.logging.parsers/src.import/org/eclipse/hyades/logging/parsers/importer/ParserWrapper.java,v >retrieving revision 1.23 >diff -u -r1.23 ParserWrapper.java >--- src.import/org/eclipse/hyades/logging/parsers/importer/ParserWrapper.java 24 Jan 2008 02:26:30 -0000 1.23 >+++ src.import/org/eclipse/hyades/logging/parsers/importer/ParserWrapper.java 6 Feb 2008 12:14:13 -0000 >@@ -18,6 +18,7 @@ > import java.io.InputStream; > import java.lang.reflect.Method; > import java.util.Hashtable; >+import java.util.Random; > > import javax.xml.parsers.DocumentBuilderFactory; > import javax.xml.parsers.ParserConfigurationException; >@@ -72,6 +73,9 @@ > // Hash table to store all active loggers > protected static Hashtable activeWrappers = new Hashtable(); > >+ // Random number generator for the key >+ protected static Random _randomGen = new Random(); >+ > /** > * Default constructor. Classes that extend ParserWrapper must > * override this constructor with one that calls super(); and >@@ -83,7 +87,7 @@ > */ > public ParserWrapper() { > // Generate a key for this instance >- key = String.valueOf(System.currentTimeMillis()); >+ key = String.valueOf(System.currentTimeMillis()) + "_" + String.valueOf(_randomGen.nextLong()); > adapter = new Adapter(); > > currentPlugin = "org.eclipse.hyades.logging.parsers";
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 201936
:
77489
|
77684
| 88985