Explorar o código

* CompilationSection.cs: TARGET_JVM on not supported features
* HttpModulesSection.cs: ctor should be static

svn path=/trunk/mcs/; revision=79262

Vladimir Krasnov %!s(int64=18) %!d(string=hai) anos
pai
achega
d60585f42d

+ 5 - 0
mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog

@@ -1,3 +1,8 @@
+2007-06-12  Vladimir Krasnov  <[email protected]>
+
+	* CompilationSection.cs: TARGET_JVM on not supported features
+	* HttpModulesSection.cs: ctor should be static
+
 2007-06-03  Adar Wesley <[email protected]>
 
 	* ProfilePropertySettingsCollection.cs: added missing method 

+ 4 - 0
mcs/class/System.Web/System.Web.Configuration_2.0/CompilationSection.cs

@@ -63,9 +63,11 @@ namespace System.Web.Configuration
 								    ConfigurationPropertyOptions.None);
 			assemblyPostProcessorTypeProp = new ConfigurationProperty ("assemblyPostProcessorType", typeof (string), "");
 			batchProp = new ConfigurationProperty ("batch", typeof (bool), true);
+#if !TARGET_JVM
 			buildProvidersProp = new ConfigurationProperty ("buildProviders", typeof (BuildProviderCollection), null,
 									null, PropertyHelper.DefaultValidator,
 									ConfigurationPropertyOptions.None);
+#endif
 			batchTimeoutProp = new ConfigurationProperty ("batchTimeout", typeof (TimeSpan), new TimeSpan (0, 15, 0),
 								      PropertyHelper.TimeSpanSecondsOrInfiniteConverter,
 								      PropertyHelper.PositiveTimeSpanValidator,
@@ -93,7 +95,9 @@ namespace System.Web.Configuration
 			properties.Add (assembliesProp);
 			properties.Add (assemblyPostProcessorTypeProp);
 			properties.Add (batchProp);
+#if !TARGET_JVM
 			properties.Add (buildProvidersProp);
+#endif
 			properties.Add (batchTimeoutProp);
 			properties.Add (codeSubDirectoriesProp);
 			properties.Add (compilersProp);

+ 1 - 1
mcs/class/System.Web/System.Web.Configuration_2.0/HttpModulesSection.cs

@@ -41,7 +41,7 @@ namespace System.Web.Configuration
 		static ConfigurationPropertyCollection properties;
 		static ConfigurationProperty modulesProp;
 
-		public HttpModulesSection ()
+		static HttpModulesSection ()
 		{
 			properties = new ConfigurationPropertyCollection ();
 			modulesProp = new ConfigurationProperty ("", typeof (HttpModuleActionCollection), null,