Is this a valid Java (record) contruct?

public static record SecondaryMetrics(
}

Should it be:
public static record SecondaryMetrics() {
}

note I already have fixes coming for this generated construction.

Ray

On Sat, Feb 19, 2022 at 1:23 PM Romain Manni-Bucau <rmannibu...@gmail.com>
wrote:

> Hi
>
> Not sure, it is a resource used by tests so looks fine to me but maybe i
> didnt get the actual bug.
>
> Le sam. 19 févr. 2022 à 18:53, Raymond Augé
> <raymond.a...@liferay.com.invalid> a écrit :
>
> > Hey folks,
> >
> > This test resource [1] looks broken. Is it not?
> >
> > Ray
> >
> > [1]
> >
> >
> https://github.com/apache/johnzon/blob/master/johnzon-maven-plugin/src/test/resources/SomeValue.record.java#L58-L59
> >
>


-- 
*Raymond Augé* (@rotty3000)
Senior Software Architect *Liferay, Inc.* (@Liferay)
OSGi Fellow, Java Champion

Reply via email to