diff -r 2c3cc4b01880 -r c16ac7a2eba4 src/jdk.jfr/share/classes/jdk/jfr/internal/MetadataDescriptor.java --- a/src/jdk.jfr/share/classes/jdk/jfr/internal/MetadataDescriptor.java Wed Oct 30 16:14:56 2019 +0100 +++ b/src/jdk.jfr/share/classes/jdk/jfr/internal/MetadataDescriptor.java Wed Oct 30 19:43:52 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -25,7 +25,6 @@ package jdk.jfr.internal; -import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import java.util.ArrayList; @@ -35,6 +34,7 @@ import java.util.TimeZone; import jdk.jfr.EventType; +import jdk.jfr.internal.consumer.RecordingInput; /** * Metadata about a chunk @@ -214,6 +214,7 @@ long gmtOffset; String locale; Element root; + public long metadataId; // package private MetadataDescriptor() { @@ -252,7 +253,7 @@ return locale; } - public static MetadataDescriptor read(DataInput input) throws IOException { + public static MetadataDescriptor read(RecordingInput input) throws IOException { MetadataReader r = new MetadataReader(input); return r.getDescriptor(); }