This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 4448 - Compiler and debugger do not switch paths when $JAVA_HOME variable is set differently in startup script.
Summary: Compiler and debugger do not switch paths when $JAVA_HOME variable is set dif...
Status: CLOSED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P1 major (vote)
Assignee: Jon Koplin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-10-11 23:37 UTC by Jon Koplin
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Koplin 1999-10-11 23:37:12 UTC
If I install the tool with JDK 1.2, then internal compiler`s classpath and debugger classpath are both set to JDK 1.2, even if I switch the $JAVA_HOME directory to JDK 1.3.

Take for example this file which will have compile error`s under JDK 1.2, but not under 1.3.  Won`t compile under internal compiler even if you switch $JAVA_HOME to 1.3.  Works from the command line.


  public class Foo {

    public Foo(long Handle){
      this.Handle=Handle;
    }
    // Foo`s private final variable
    private final long Handle;

    private  boolean Baz(){return false;};

    /* Inner Class Bar */

    public class Bar{
      public boolean EnumerateMsgAttrValues(){
        return Baz();           // return Baz() pukes the compiler
        //return false;         // return false does not
      }
    }
  }
Comment 1 Quality Engineering 2003-07-02 15:33:50 UTC
Resolved for 3.4.x or earlier, no new info since then -> verify.
Comment 2 Quality Engineering 2003-07-02 15:40:46 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.