Bug 394441 - NumberFormatExceptions running the eval test suite
Summary: NumberFormatExceptions running the eval test suite
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks: 412552
  Show dependency tree
 
Reported: 2012-11-16 01:56 EST by Michael Rennie CLA
Modified: 2022-10-11 18:47 EDT (History)
0 users

See Also:


Attachments
all failure traces (32.60 KB, text/plain)
2012-11-16 01:56 EST, Michael Rennie CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2012-11-16 01:56:47 EST
Created attachment 223641 [details]
all failure traces

code from master

There are a few number format exceptions and two variable declaration failures when the eval test suite is run using Java 7, for example:

org.eclipse.jdt.debug.tests.eval.TestsNumberLiteral
test0x80000000(org.eclipse.jdt.debug.tests.eval.TestsNumberLiteral)
java.lang.NumberFormatException: For input string: "80000000"

	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

	at java.lang.Integer.parseInt(Integer.java:495)

	at java.lang.Integer.valueOf(Integer.java:556)

	at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTInstructionCompiler.parseIntValue(ASTInstructionCompiler.java:3185)

	at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTInstructionCompiler.visit(ASTInstructionCompiler.java:3145)

	at org.eclipse.jdt.core.dom.NumberLiteral.accept0(NumberLiteral.java:135)

	at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)

	at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)

	at org.eclipse.jdt.core.dom.ReturnStatement.accept0(ReturnStatement.java:136)

	at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)

	at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585)

	at org.eclipse.jdt.core.dom.Block.accept0(Block.java:136)

	at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)

	at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)

	at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:504)

	at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)

	at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585)

	at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:484)

	at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)

	at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585)

	at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:219)

	at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)

	at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.createExpressionFromAST(ASTEvaluationEngine.java:565)

	at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.getCompiledExpression(ASTEvaluationEngine.java:348)

	at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.evaluate(ASTEvaluationEngine.java:133)

	at org.eclipse.jdt.debug.tests.eval.Tests.eval(Tests.java:438)

	at org.eclipse.jdt.debug.tests.eval.TestsNumberLiteral.test0x80000000(TestsNumberLiteral.java:140)

	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

	at java.lang.reflect.Method.invoke(Method.java:601)

	at junit.framework.TestCase.runTest(TestCase.java:168)

	at junit.framework.TestCase.runBare(TestCase.java:134)

	at org.eclipse.jdt.debug.tests.AbstractDebugTest.runBare(AbstractDebugTest.java:2343)

	at junit.framework.TestResult$1.protect(TestResult.java:110)

	at junit.framework.TestResult.runProtected(TestResult.java:128)

	at junit.framework.TestResult.run(TestResult.java:113)

	at junit.framework.TestCase.run(TestCase.java:124)

	at junit.framework.TestSuite.runTest(TestSuite.java:243)

	at junit.framework.TestSuite.run(TestSuite.java:238)

	at junit.framework.TestSuite.runTest(TestSuite.java:243)

	at org.eclipse.jdt.debug.tests.EvalTestSuite$1.run(EvalTestSuite.java:244)

	at java.lang.Thread.run(Thread.java:722)

The attachment has all of the failure traces.
Comment 1 Eclipse Genie CLA 2020-07-30 06:10:26 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 2 Eclipse Genie CLA 2022-10-11 18:47:01 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.