Skip to content

Commit

Permalink
revert back method to static. Fix calls to deprecated '_' method, rep…
Browse files Browse the repository at this point in the history
…laced by __loadClass because '_' is a reserved keyword from jdk9
  • Loading branch information
tomparle committed Aug 7, 2018
1 parent 056285d commit b6cf1f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion framework/src/play/templates/GroovyTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ public String __reverseWithCheck_absolute_false(String action) {
return __reverseWithCheck(action, false);
}

private static String __reverseWithCheck(String action, boolean absolute) {
private String __reverseWithCheck(String action, boolean absolute) {
return Router.reverseWithCheck(action, Play.getVirtualFile(action), absolute);
}

Expand Down
4 changes: 2 additions & 2 deletions modules/crud/app/views/tags/crud/form.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
%{
if(_object) {
currentObject = _object
currentType = _('controllers.CRUD$ObjectType').forClass(_object.getClass().getName())
currentType = __loadClass('controllers.CRUD$ObjectType').forClass(_object.getClass().getName())
} else if(_class) {
currentObject = null;
currentType = _('controllers.CRUD$ObjectType').forClass(_class)
currentType = __loadClass('controllers.CRUD$ObjectType').forClass(_class)
} else {
currentObject = _caller.object
currentType = _caller.type
Expand Down

0 comments on commit b6cf1f0

Please sign in to comment.