Package com.redhat.ceylon.compiler.java.test

Examples of com.redhat.ceylon.compiler.java.test.CompilerError


    }
   
    @Test
    public void testBug1743() {
        assertErrors("bug17xx/Bug1743",
                new CompilerError(22, "nothing to return from"),
                new CompilerError(22, "statement or initializer may not occur directly in interface body"));
    }
View Full Code Here


    }

    @Test
    public void testBug1761A() {
        assertErrors("bug17xx/Bug1761A",
                new CompilerError(2, "shared declaration is not a member of a class, interface, or package"));
    }
View Full Code Here

                new CompilerError(2, "shared declaration is not a member of a class, interface, or package"));
    }
    @Test
    public void testBug1761B() {
        assertErrors("bug17xx/Bug1761B",
                new CompilerError(1, "type of declaration anonymous function is not visible everywhere declaration is visible: 'Bar' involves an unshared type declaration"));
    }
View Full Code Here

    @Test
    public void testBug1768() {
        assertErrors("bug17xx/Bug1768",
                Arrays.asList("-continue"),
                null,
                new CompilerError(22, "declaration is not a value, and may not be annotated late"),
                new CompilerError(22, "value is not an uninitialized reference, and may not be annotated late"));
    }
View Full Code Here

        // make sure we only got one, do not trust actualErrors.size() for that since it's a Set so
        // two methods with same contents would count as one.
        Assert.assertEquals(1, exitState.errorCount);
   
        TreeSet<CompilerError> actualErrors = collector.get(Diagnostic.Kind.ERROR);
        compareErrors(actualErrors, new CompilerError(22, "dynamic is not yet supported on this platform"));
    }
View Full Code Here

    @Test
    public void testBug1779() {
        assertErrors("bug17xx/Bug1779",
                Arrays.asList("-continue"),
                null,
                new CompilerError(22, "missing class body or aliased class reference"),
                new CompilerError(23, "incorrect syntax: no viable alternative at token '}'"));
    }
View Full Code Here

    @Test
    public void testBug1789() {
        assertErrors("bug17xx/Bug1789",
                Arrays.asList("-continue"),
                null,
                new CompilerError(22, "could not determine type of function or value reference: 'd'"),
                new CompilerError(24, "does not definitely return: 'd' has branches which do not end in a return statement"),
                new CompilerError(24, "type declaration does not exist: 'Id'"));

    }
View Full Code Here

    public void testBug1852() {
        assertErrors(new String[]{"bug18xx/Bug1852.ceylon"},
                defaultOptions,
                null,
                new Diagnostic.Kind[]{Diagnostic.Kind.WARNING},
                new CompilerError(Kind.WARNING, "", 21, "declaration is never used: 's'"));
    }
View Full Code Here

    }
   
    @Test
    public void testBug1857() {
        assertErrors("bug18xx/Bug1857",
                new CompilerError(Kind.ERROR, "", 22, "function or value does not exist: 'ß'"));
    }
View Full Code Here

       
        // now try to compile the subpackage with a broken SHA1
        String carName = "/com/redhat/ceylon/compiler/java/test/cmr/modules/single/6.6.6/com.redhat.ceylon.compiler.java.test.cmr.modules.single-6.6.6.car";
        carName = carName.replace('/', File.separatorChar);
        assertErrors("modules/single/subpackage/Subpackage",
                new CompilerError(-1, "Module car " + carName
                        + " obtained from repository " + (new File(destDir).getAbsolutePath())
                        + " has an invalid SHA1 signature: you need to remove it and rebuild the archive, since it may be corrupted."));
    }
View Full Code Here

TOP

Related Classes of com.redhat.ceylon.compiler.java.test.CompilerError

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.