Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/expression/ast/IntegerLiteral.java')
-rw-r--r--plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/expression/ast/IntegerLiteral.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/expression/ast/IntegerLiteral.java b/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/expression/ast/IntegerLiteral.java
index 9e39efe0..00ff9323 100644
--- a/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/expression/ast/IntegerLiteral.java
+++ b/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/expression/ast/IntegerLiteral.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2007 committers of openArchitectureWare and others.
+ * Copyright (c) 2005, 2009 committers of openArchitectureWare and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -11,6 +11,7 @@
package org.eclipse.internal.xtend.expression.ast;
+import java.math.BigInteger;
import java.util.Set;
import org.eclipse.xtend.expression.AnalysationIssue;
@@ -20,6 +21,7 @@ import org.eclipse.xtend.typesystem.Type;
/**
* @author Sven Efftinge (http://www.efftinge.de)
* @author Arno Haase
+ * @author Heiko Behrens
*/
public class IntegerLiteral extends Literal {
@@ -29,7 +31,7 @@ public class IntegerLiteral extends Literal {
@Override
public Object evaluateInternal(final ExecutionContext ctx) {
- return new Long(getLiteralValue().getValue());
+ return new BigInteger(getLiteralValue().getValue());
}
public Type analyzeInternal(final ExecutionContext ctx, final Set<AnalysationIssue> issues) {

Back to the top