This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Cannot set multiple options on Platform tab | ||
---|---|---|---|
Product: | serverplugins | Reporter: | rym002 |
Component: | WebLogic | Assignee: | Petr Hejl <phejl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.2 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
rym002
2012-06-05 01:52:20 UTC
I think this is the issue protected ExternalProcessBuilder initBuilder(ExternalProcessBuilder builder) { ExternalProcessBuilder result = builder; result = setJavaOptionsEnv( result ); String vendor = dm.getInstanceProperties().getProperty(WLPluginProperties.VENDOR); if (vendor != null && vendor.trim().length() >0) { result = builder.addEnvironmentVariable(JAVA_VENDOR_VARIABLE, vendor.trim()); } String memoryOptions = dm.getInstanceProperties().getProperty( WLPluginProperties.MEM_OPTS); if (memoryOptions != null && memoryOptions.trim().length() >0) { result = builder.addEnvironmentVariable(MEMORY_OPTIONS_VARIABLE, memoryOptions.trim()); } return result; } That should probably be protected ExternalProcessBuilder initBuilder(ExternalProcessBuilder builder) { ExternalProcessBuilder result = builder; result = setJavaOptionsEnv( result ); String vendor = dm.getInstanceProperties().getProperty(WLPluginProperties.VENDOR); if (vendor != null && vendor.trim().length() >0) { result = result.addEnvironmentVariable(JAVA_VENDOR_VARIABLE, vendor.trim()); } String memoryOptions = dm.getInstanceProperties().getProperty( WLPluginProperties.MEM_OPTS); if (memoryOptions != null && memoryOptions.trim().length() >0) { result = result.addEnvironmentVariable(MEMORY_OPTIONS_VARIABLE, memoryOptions.trim()); } return result; } Seems the builder returned from addEnvironmentVariable is not being referenced and result is being overwritten with the last variable set. Nice catch. Fixed in web-main 6e54f40f3088. Integrated into 'main-golden', will be available in build *201206090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/6e54f40f3088 User: Petr Hejl <phejl@netbeans.org> Log: #213570 - Cannot set multiple options on Platform tab |