Skip to content

Commit

Permalink
Fix javaparser bug that is untestable without deploying to server
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Jan 18, 2013
1 parent 72a5d42 commit 9fd3cf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ public String getStringInitializer()
@Override
public Field<O> setLiteralInitializer(final String value)
{
String stub = "public class Stub { private Field<O> stub = " + value + " }";
String stub = "public class Stub { private String stub = " + value + " }";
JavaClass temp = (JavaClass) JavaParser.parse(stub);
FieldDeclaration internal = (FieldDeclaration) temp.getFields().get(0).getInternal();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public JavaSource<?> parse(final String data)

parser.setSource(document.get().toCharArray());
Map options = JavaCore.getOptions();
options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_5);
options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_7);
options.put(CompilerOptions.OPTION_Encoding, "UTF-8");
parser.setCompilerOptions(options);

Expand Down

0 comments on commit 9fd3cf3

Please sign in to comment.