Missing error for class extending package

Issue #192 resolved
Jesper Öqvist created an issue

ExtendJ 8.0.1-161-g2081568 Java SE 8

A class may not extend a package, however the following test case gives no error when compiled with ExtendJ:

// Package name used as a typename.
// A class may not extend a package.
// .result: COMPILE_FAIL
package org.extendj;

public class Test extends org.extendj {
}

Comments (1)

  1. Jesper Öqvist reporter

    Report errors for uses of unknown qualified types

    Improved error checking for type accesses to handle unknown qualified types.

    Adjusted the error messages for the inaccessible type error and the ambiguous type error.

    fixes #192 (bitbucket) fixes #193 (bitbucket) fixes #194 (bitbucket) fixes #195 (bitbucket) fixes #196 (bitbucket)

    → <<cset 53debda90fb3>>

  2. Log in to comment