Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-13441

Changing vm for runtime from default to jdk1.7, then back to default, fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.1.0.Alpha1
    • 4.0.0.Final
    • server
    • None

      0) In workspace, ensure workspace has 1.7 jre, then add a 1.6 jre
      1) Create a web app with simple servlet, doGet() has logic: System.out.println(System.getProperty("java.version"));
      2) Create server and runtime, keep vm at default for exec env
      3) Start server, deploy web app, verify 1.6
      4) Shutdown server
      5) Switch runtime to use 1.7 jre, finish, then save server editor
      6) Start server, verify webapp prints to console 1.7
      7) Stop server
      8) Edit runtime to use default for 1.6 again
      9) finish wizard, save server editor
      10) start server, run webapp, verify text says 1.6
      FAIL

      Step 10 fails, the 1.7 server is still chosen. This is a bug in the UI which is not properly clearing the vm flag, and is only setting it when one is chosen.

            rob.stryker Rob Stryker (Inactive)
            rob.stryker Rob Stryker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: