Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8185832

Constructor override compiler error

XMLWordPrintable

    • generic
    • generic

      FULL PRODUCT VERSION :
      java version "1.8.0_60"
      Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
      Java HotSpot(TM) Client VM (build 25.60-b23, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Windows 7 32 bit

      A DESCRIPTION OF THE PROBLEM :
      Getting compiler error while trying to override constructor in a class



      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      compilation error:

      Erasure of method Student(int, String, Address, List<Integer>) is the same as another method in type Student

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      public Student(int id, String name, Address address, List<String> subjects) {
      super();

      }

      public Student(int id, String name, Address address, List<Integer> lab) {
      super();

      }
      ---------- END SOURCE ----------

      SUPPORT :
      YES

            dlsmith Dan Smith
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: