Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
[JENKINS-31458] Noting places where jenkinsci/jenkins#1936 might allo…
Browse files Browse the repository at this point in the history
…w for simplifications.
  • Loading branch information
jglick committed Nov 30, 2015
1 parent f0d2a74 commit 393aa3a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -205,7 +205,7 @@ public void doHelp(StaplerRequest req, StaplerResponse rsp) throws IOException,

@Restricted(DoNotUse.class) // accessed via REST API
public HttpResponse doGenerateSnippet(StaplerRequest req, @QueryParameter String json) throws Exception {
// TODO is there not an easier way to do this?
// TODO JENKINS-31458 is there not an easier way to do this?
JSONObject jsonO = JSONObject.fromObject(json);
Jenkins j = Jenkins.getActiveInstance();
Class<?> c = j.getPluginManager().uberClassLoader.loadClass(jsonO.getString("stapler-class"));
Expand Down
Expand Up @@ -127,7 +127,7 @@ public DescriptorImpl() {

@Override public Step newInstance(StaplerRequest req, JSONObject formData) throws FormException {
// A modified version of RequestImpl.TypePair.convertJSON.
// Works around the fact that Stapler does not call back into Descriptor.newInstance for nested objects.
// TODO JENKINS-31458 Works around the fact that Stapler does not call back into Descriptor.newInstance for nested objects.
List<JobProperty> properties = new ArrayList<JobProperty>();
ClassLoader cl = req.getStapler().getWebApp().getClassLoader();
@SuppressWarnings("unchecked") Set<Map.Entry<String,Object>> entrySet = formData.getJSONObject("propertiesMap").entrySet();
Expand Down
Expand Up @@ -86,7 +86,7 @@ public static final class StepBuilder extends Builder {
return "Test step builder";
}
@Override public Builder newInstance(StaplerRequest req, JSONObject formData) throws FormException {
// TODO f:dropdownDescriptorSelector does not seem to work sensibly: the super method uses RequestImpl.bindJSON and ignores any StepDescriptor.newInstance override.
// TODO JENKINS-31458 f:dropdownDescriptorSelector does not seem to work sensibly: the super method uses RequestImpl.bindJSON and ignores any StepDescriptor.newInstance override.
// Cf. Snippetizer.doGenerateSnippet, which also seems to lack a standard way of parsing part of a form using databinding.
JSONObject s = formData.getJSONObject("s");
Jenkins j = Jenkins.getActiveInstance();
Expand Down

0 comments on commit 393aa3a

Please sign in to comment.