Make counter on FragmentDescriptor static so generated fragment names are unique.

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2870 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Jan Bartel 2011-03-08 00:42:08 +00:00
parent 917a5c7793
commit 5ae7e22bef
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
jetty-7.3.2-SNAPSHOT jetty-7.3.2-SNAPSHOT
+ 338819 Externally control Deployment Manager application lifecycle + 338819 Externally control Deployment Manager application lifecycle
+ Ensure generated fragment names are unique
jetty-7.3.1.v20110307 7 March 2011 jetty-7.3.1.v20110307 7 March 2011
+ 316382 Support a more strict SSL option with certificates + 316382 Support a more strict SSL option with certificates

View File

@ -30,9 +30,9 @@ import org.eclipse.jetty.xml.XmlParser;
public class FragmentDescriptor extends WebDescriptor public class FragmentDescriptor extends WebDescriptor
{ {
public static final String NAMELESS = "@@-NAMELESS-@@"; //prefix for nameless Fragments public static final String NAMELESS = "@@-NAMELESS-@@"; //prefix for nameless Fragments
public enum OtherType {None, Before, After}; protected static int _counter = 0;
protected int _counter = 0; public enum OtherType {None, Before, After};
protected OtherType _otherType = OtherType.None; protected OtherType _otherType = OtherType.None;