Skip to content

Validation Processor: Processing fails for primitive types #100

@cwbriones

Description

@cwbriones

Example class:

package com.example;

import com.arpnetworking.commons.builder.OvalBuilder;
import net.sf.oval.constraint.Min;

public class MyClass {
    private final int _value;

    public MyClass(final Builder builder) {
        _value = builder._value;
    }

    public static class Builder extends OvalBuilder<MyClass> {
        @Min(1)
        private int _value = 1;

        public Builder() {
            super(MyClass::new);
        }

        public Builder setValue(final int value) {
            _value = value;
            return this;
        }
    }
}

This results in the following compile error during annotation processing:

Class processing failed: javassist.CannotCompileException: [source error] isSatisfied(com.example.MyClass$Builder,int,Object,Object) not found in net.sf.oval.constraint.MinCheck

Full Stack Trace

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions