Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-4941

NumberFormatException in JSStyleValidator.enterNumber()

    Details

    • Story Points:
      2

      Description

      While attempting to run the JS Style validator against ext-debug-all.js, I get the following sequence of errors:

      !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
      	at java.math.BigDecimal.<init>(BigDecimal.java:459)
      	at java.math.BigDecimal.<init>(BigDecimal.java:728)
      	at com.aptana.editor.js.validator.JSStyleValidator.enterNumber(JSStyleValidator.java:1490)
      	at com.aptana.editor.js.validator.JSStyleValidator.enterNode(JSStyleValidator.java:654)
      	at com.aptana.editor.js.validator.JSStyleValidator.access$1(JSStyleValidator.java:573)
      	at com.aptana.editor.js.validator.JSStyleValidator$1.enterNode(JSStyleValidator.java:458)
      	at com.aptana.parsing.util.ParseUtil.treeApply(ParseUtil.java:251)
      	at com.aptana.parsing.util.ParseUtil.treeApply(ParseUtil.java:227)
      	at com.aptana.editor.js.validator.JSStyleValidator.buildFile(JSStyleValidator.java:447)
      	at com.aptana.core.internal.build.LazyBuildParticipant.buildFile(LazyBuildParticipant.java:72)
      	at com.aptana.core.build.UnifiedBuilder.buildFile(UnifiedBuilder.java:523)
      	at com.aptana.core.build.UnifiedBuilder.doBuildFiles(UnifiedBuilder.java:432)
      	at com.aptana.core.build.UnifiedBuilder.buildFiles(UnifiedBuilder.java:409)
      	at com.aptana.core.build.UnifiedBuilder.fullBuild(UnifiedBuilder.java:303)
      	at com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:149)
      	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
      	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
      	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
      	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
      	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
      	at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
      	at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      

      Searching the code, it appears to be on this set of 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
                  }
              }
          },
      

        Attachments

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              ingo Ingo Muschenetz
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration