logo       

r1812 - izpack-src/trunk/src/lib/com/izforge/izpack/panels: msg#00012

Subject: r1812 - izpack-src/trunk/src/lib/com/izforge/izpack/panels
Author: bartzkau
Date: 2007-04-16 10:13:16 +0200 (Mon, 16 Apr 2007)
New Revision: 1812

Modified:
   izpack-src/trunk/src/lib/com/izforge/izpack/panels/JDKPathPanel.java
Log:
Bug at dismiss usage of a JDK with a wrong version.


Modified: izpack-src/trunk/src/lib/com/izforge/izpack/panels/JDKPathPanel.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/panels/JDKPathPanel.java        
2007-04-07 15:29:37 UTC (rev 1811)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/panels/JDKPathPanel.java        
2007-04-16 08:13:16 UTC (rev 1812)
@@ -30,7 +30,6 @@
 
 import com.coi.tools.os.win.MSWinConstants;
 import com.coi.tools.os.win.NativeLibException;
-import com.coi.tools.os.win.RegDataContainer;
 import com.izforge.izpack.installer.InstallData;
 import com.izforge.izpack.installer.InstallerFrame;
 import com.izforge.izpack.util.AbstractUIHandler;
@@ -99,25 +98,25 @@
      */
     public boolean isValidated()
     {
-        if(idata.getVariable("PANEL_LAYOUT_TEST") != null)
-            return(true);
+        boolean retval = false;
         if (super.isValidated())
         {
             switch( verifyVersionEx())
             {
             case OK:
                 idata.setVariable(getVariableName(), 
pathSelectionPanel.getPath());
-                return (true);
+                retval = true;
+                break;
             case BAD_REG_PATH:
                 if 
(askQuestion(parent.langpack.getString("installer.warning"), 
parent.langpack.getString("JDKPathPanel.nonValidPathInReg"),
                         AbstractUIHandler.CHOICES_YES_NO, 
AbstractUIHandler.ANSWER_NO) == AbstractUIHandler.ANSWER_YES)
                 {
                     idata.setVariable(getVariableName(), 
pathSelectionPanel.getPath());
-                    return (true);
+                    retval = true;
                 }
-                return(false);
+                break;
             case BAD_REAL_PATH:
-                return(false);
+                break;
             case BAD_VERSION:
                 String min = getMinVersion();
                 String max = getMaxVersion();
@@ -136,13 +135,14 @@
                         AbstractUIHandler.CHOICES_YES_NO, 
AbstractUIHandler.ANSWER_NO) == AbstractUIHandler.ANSWER_YES)
                 {
                     idata.setVariable(getVariableName(), 
pathSelectionPanel.getPath());
-                    return (true);
+                    retval = true;
                 }
+                break;
                 default: throw new RuntimeException("Internal error: unknown 
result of version verification.");
                 
             }
         }
-        return (false);
+        return (retval);
     }
 
     /** Called when the panel becomes active. */


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
web.pylons.gene...    hurd.l4/2002-10...    kernel.commits....    user-groups.lin...    yellowdog.gener...    java.drools.use...    security.openva...    package-managem...    linux.debian.us...    qnx.openqnx.dev...    genealogy.gramp...    file-systems.if...    voip.wengophone...    tex.context/200...    ietf.smime/2003...    audio.csound.de...    culture.region....    xfree86.devel/2...    mobile.kannel.u...    distributed.con...    education.engli...    org.user-groups...    bug-tracking.gn...    recreation.bicy...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe