Project: aptanastudio
Issue APSTUD-4941: NumberFormatException in JSStyleValidator.enterNumber()
While attempting to run the JS Style validator against ext-debug-all.js, I get the following sequence of errors: {code} !ENTRY com.aptana.editor.js 4 0 2012-06-20 17:08:02.543 !MESSAGE (Build 0.0.0.qualifier) [ERROR] Error trying to parse JS number: '0x444444' !STACK 0 java.lang.NumberFormatException java.math.BigDecimal.(BigDecimal.java:459) java.math.BigDecimal.(BigDecimal.java:728) com.aptana.editor.js.validator.JSStyleValidator.enterNumber(JSStyleValidator.java:1490) com.aptana.editor.js.validator.JSStyleValidator.enterNode(JSStyleValidator.java:654) com.aptana.editor.js.validator.JSStyleValidator.access$1(JSStyleValidator.java:573) com.aptana.editor.js.validator.JSStyleValidator$1.enterNode(JSStyleValidator.java:458) com.aptana.parsing.util.ParseUtil.treeApply(ParseUtil.java:251) com.aptana.parsing.util.ParseUtil.treeApply(ParseUtil.java:227) com.aptana.editor.js.validator.JSStyleValidator.buildFile(JSStyleValidator.java:447) com.aptana.core.internal.build.LazyBuildParticipant.buildFile(LazyBuildParticipant.java:72) com.aptana.core.build.UnifiedBuilder.buildFile(UnifiedBuilder.java:523) com.aptana.core.build.UnifiedBuilder.doBuildFiles(UnifiedBuilder.java:432) com.aptana.core.build.UnifiedBuilder.buildFiles(UnifiedBuilder.java:409) com.aptana.core.build.UnifiedBuilder.fullBuild(UnifiedBuilder.java:303) com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:149) org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199) org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239) org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295) org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351) org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374) org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143) org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241) org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code} Searching the code, it appears to be on this set of code: {code} chartStyle: { padding: 10, animationEnabled: true, font: { name: 'Tahoma', color: 0x444444, size: 11 }, dataTip: { padding: 5, border: { color: 0x99bbe8, size:1 }, background: { color: 0xDAE7F6, alpha: .9 }, font: { name: 'Tahoma', color: 0x15428B, size: 10, bold: true } } }, {code}
Story points: 2