Thanks Mac for your information.

FieldException is a customized exception class, which is extend Java 
Exception class.

I have cleaned and re build the package and attached java and class files.

One more question, In some class, package line showing yellow color or RED 
color. any idea.
Even, I have checked line number in the class file as well.



On Monday, May 28, 2018 at 3:13:19 PM UTC+5:30, Marc R. Hoffmann wrote:
>
> What is FieldException? And how do you execute this class? If even the 
> static initializer for field “MANDATORY” is shown in red this means the 
> class has not been loaded at all.
>
> Please provide a *executable* reproducer, i.e. a Java classes that can be 
> compiled and executed so we can reproduce your issue. Preferable a small 
> Github project that can be cloned.
>
>
> On 28. May 2018, at 09:04, Jagadeesan P <jagade...@gmail.com <javascript:>> 
> wrote:
>
> super(MessageKey.FIELD_PAST_WEEK_ERROR, notSetComponents);
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/754aa1a5-8231-4a79-8607-e2a8139e4bbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
import java.awt.Color;
import java.util.List;

import javax.swing.JComponent;

import com.volvo.protom.util.c.constants.MessageKey;

/**
 * Happens when the user has entered a week that is already past.
 */
public class PastWeekException extends FieldException {

    private static final long serialVersionUID = 1L;
    public static final Color MANDATORY = new Color(255, 231, 231);

    public PastWeekException(List<JComponent> notSetComponents) {
        super(MessageKey.FIELD_PAST_WEEK_ERROR, notSetComponents);
    }

    protected Color getMarkColor() {
        return MANDATORY;
    }

}
/ Compiled from PastWeekException.java (version 1.6 : 50.0, super bit)
public class com.xxx.xxxxx.dc.c.exceptions.PastWeekException extends 
com.xxx.xxxxx.dc.c.exceptions.FieldException {
  
  // Field descriptor #6 J
  private static final long serialVersionUID = 1L;
  
  // Field descriptor #11 Ljava/awt/Color;
  public static final java.awt.Color MANDATORY;
  
  // Method descriptor #13 ()V
  // Stack: 5, Locals: 0
  static {};
     0  new java.awt.Color [15]
     3  dup
     4  sipush 255
     7  sipush 231
    10  sipush 231
    13  invokespecial java.awt.Color(int, int, int) [17]
    16  putstatic com.xxx.xxxxx.dc.c.exceptions.PastWeekException.MANDATORY : 
java.awt.Color [21]
    19  return
      Line numbers:
        [pc: 0, line: 16]
  
  // Method descriptor #25 (Ljava/util/List;)V
  // Signature: (Ljava/util/List<Ljavax/swing/JComponent;>;)V
  // Stack: 3, Locals: 2
  public PastWeekException(java.util.List notSetComponents);
    0  aload_0 [this]
    1  getstatic 
com.xxx.xxxxx.util.c.constants.MessageKey.FIELD_PAST_WEEK_ERROR : 
com.xxx.xxxxx.util.c.constants.MessageKey [28]
    4  aload_1 [notSetComponents]
    5  invokespecial 
com.xxx.xxxxx.dc.c.exceptions.FieldException(com.xxx.xxxxx.util.c.constants.MessageKey,
 java.util.List) [34]
    8  return
      Line numbers:
        [pc: 0, line: 19]
        [pc: 8, line: 20]
      Local variable table:
        [pc: 0, pc: 9] local: this index: 0 type: 
com.xxx.xxxxx.dc.c.exceptions.PastWeekException
        [pc: 0, pc: 9] local: notSetComponents index: 1 type: java.util.List
      Local variable type table:
        [pc: 0, pc: 9] local: notSetComponents index: 1 type: 
java.util.List<javax.swing.JComponent>
  
  // Method descriptor #44 ()Ljava/awt/Color;
  // Stack: 1, Locals: 1
  protected java.awt.Color getMarkColor();
    0  getstatic com.xxx.xxxxx.dc.c.exceptions.PastWeekException.MANDATORY : 
java.awt.Color [21]
    3  areturn
      Line numbers:
        [pc: 0, line: 23]
      Local variable table:
        [pc: 0, pc: 4] local: this index: 0 type: 
com.xxx.xxxxx.dc.c.exceptions.PastWeekException
}

Reply via email to