7021650: fix Context issues

Reviewed-by: mcimadamore
This commit is contained in:
Jonathan Gibbons 2011-02-25 12:09:33 -08:00
parent 6d172a6a63
commit a51962066d
15 changed files with 310 additions and 65 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -46,10 +46,10 @@ class JavadocMemberEnter extends MemberEnter {
return (JavadocMemberEnter)instance;
}
public static void preRegister(final Context context) {
public static void preRegister(Context context) {
context.put(memberEnterKey, new Context.Factory<MemberEnter>() {
public MemberEnter make() {
return new JavadocMemberEnter(context);
public MemberEnter make(Context c) {
return new JavadocMemberEnter(c);
}
});
}