Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] Something Like A Bug

Please use bugzilla to report bugs. Having said that, this problem has
already been fixed in 3.6.1, see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=321926 for details.

Dani

|------------>
| From:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |alipro <f123wj@xxxxxxxxx>                                                                                                                         |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |jdt-core-dev@xxxxxxxxxxx                                                                                                                          |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |26.11.2010 10:24                                                                                                                                  |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |[jdt-core-dev] Something Like A Bug                                                                                                               |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|





class MyException extends Exception
{
    private static final long serialVersionUID = 1L;
}

public class UnusedTest
{
    static boolean b = false;

    static void method() throws MyException
    {
        if (b)
        {
            throw new MyException();
        }
    }

    public static void main(String[] args)
    {
        Object o = null;
        try
        {
            while (true)
            {
                method();
                o = new Object();
                b = true;
            }
        }
        catch (MyException e)
        {
        }
        if (o != null)
        {
            System.out.println("After catch!");
        }
    }
}

The jdt version of my eclipse is 3.6.0.v_A58. When I compile this code
in eclipse, there is no output,but when I using javac ,it generates the
correct output!

_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jdt-core-dev





Back to the top