diff -Nru jcdf-1.2.3+dfsg/AttributeDescriptorRecord.java jcdf-1.2.4+dfsg/AttributeDescriptorRecord.java --- jcdf-1.2.3+dfsg/AttributeDescriptorRecord.java 2017-11-16 16:44:47.000000000 +0000 +++ jcdf-1.2.4+dfsg/AttributeDescriptorRecord.java 2021-12-15 11:28:41.000000000 +0000 @@ -40,11 +40,11 @@ this.num = buf.readInt( ptr ); this.nGrEntries = buf.readInt( ptr ); this.maxGrEntry = buf.readInt( ptr ); - this.rfuA = checkIntValue( buf.readInt( ptr ), 0 ); + this.rfuA = buf.readInt( ptr ); this.azEdrHead = buf.readOffset( ptr ); this.nZEntries = buf.readInt( ptr ); this.maxZEntry = buf.readInt( ptr ); - this.rfuE = checkIntValue( buf.readInt( ptr ), -1 ); + this.rfuE = buf.readInt( ptr ); this.name = buf.readAsciiString( ptr, nameLeng ); checkEndRecord( ptr ); } diff -Nru jcdf-1.2.3+dfsg/AttributeEntryDescriptorRecord.java jcdf-1.2.4+dfsg/AttributeEntryDescriptorRecord.java --- jcdf-1.2.3+dfsg/AttributeEntryDescriptorRecord.java 2017-11-16 16:44:47.000000000 +0000 +++ jcdf-1.2.4+dfsg/AttributeEntryDescriptorRecord.java 2021-12-15 11:28:41.000000000 +0000 @@ -41,11 +41,11 @@ this.dataType = buf.readInt( ptr ); this.num = buf.readInt( ptr ); this.numElems = buf.readInt( ptr ); - this.rfuA = checkIntValue( buf.readInt( ptr ), 0 ); - this.rfuB = checkIntValue( buf.readInt( ptr ), 0 ); - this.rfuC = checkIntValue( buf.readInt( ptr ), 0 ); - this.rfuD = checkIntValue( buf.readInt( ptr ), -1 ); - this.rfuE = checkIntValue( buf.readInt( ptr ), -1 ); + this.rfuA = buf.readInt( ptr ); + this.rfuB = buf.readInt( ptr ); + this.rfuC = buf.readInt( ptr ); + this.rfuD = buf.readInt( ptr ); + this.rfuE = buf.readInt( ptr ); valueOffset_ = ptr.get(); } diff -Nru jcdf-1.2.3+dfsg/CdfDescriptorRecord.java jcdf-1.2.4+dfsg/CdfDescriptorRecord.java --- jcdf-1.2.3+dfsg/CdfDescriptorRecord.java 2017-11-16 16:44:47.000000000 +0000 +++ jcdf-1.2.4+dfsg/CdfDescriptorRecord.java 2021-12-15 11:28:41.000000000 +0000 @@ -36,11 +36,11 @@ this.release = buf.readInt( ptr ); this.encoding = buf.readInt( ptr ); this.flags = buf.readInt( ptr ); - this.rfuA = checkIntValue( buf.readInt( ptr ), 0 ); - this.rfuB = checkIntValue( buf.readInt( ptr ), 0 ); + this.rfuA = buf.readInt( ptr ); + this.rfuB = buf.readInt( ptr ); this.increment = buf.readInt( ptr ); - this.rfuD = checkIntValue( buf.readInt( ptr ), -1 ); - this.rfuE = checkIntValue( buf.readInt( ptr ), -1 ); + this.rfuD = buf.readInt( ptr ); + this.rfuE = buf.readInt( ptr ); int crLeng = versionAtLeast( 2, 5 ) ? 256 : 1945; this.copyright = toLines( buf.readAsciiString( ptr, crLeng ) ); checkEndRecord( ptr ); diff -Nru jcdf-1.2.3+dfsg/CompressedCdfRecord.java jcdf-1.2.4+dfsg/CompressedCdfRecord.java --- jcdf-1.2.3+dfsg/CompressedCdfRecord.java 2017-11-16 16:44:47.000000000 +0000 +++ jcdf-1.2.4+dfsg/CompressedCdfRecord.java 2021-12-15 11:28:41.000000000 +0000 @@ -26,7 +26,7 @@ Pointer ptr = plan.createContentPointer(); this.cprOffset = buf.readOffset( ptr ); this.uSize = buf.readOffset( ptr ); - this.rfuA = checkIntValue( buf.readInt( ptr ), 0 ); + this.rfuA = buf.readInt( ptr ); dataOffset_ = ptr.get(); } diff -Nru jcdf-1.2.3+dfsg/CompressedParametersRecord.java jcdf-1.2.4+dfsg/CompressedParametersRecord.java --- jcdf-1.2.3+dfsg/CompressedParametersRecord.java 2017-11-16 16:44:47.000000000 +0000 +++ jcdf-1.2.4+dfsg/CompressedParametersRecord.java 2021-12-15 11:28:41.000000000 +0000 @@ -25,7 +25,7 @@ Buf buf = plan.getBuf(); Pointer ptr = plan.createContentPointer(); this.cType = buf.readInt( ptr ); - this.rfuA = checkIntValue( buf.readInt( ptr ), 0 ); + this.rfuA = buf.readInt( ptr ); this.pCount = buf.readInt( ptr ); this.cParms = readIntArray( buf, ptr, this.pCount ); checkEndRecord( ptr ); diff -Nru jcdf-1.2.3+dfsg/CompressedVariableValuesRecord.java jcdf-1.2.4+dfsg/CompressedVariableValuesRecord.java --- jcdf-1.2.3+dfsg/CompressedVariableValuesRecord.java 2017-11-16 16:44:47.000000000 +0000 +++ jcdf-1.2.4+dfsg/CompressedVariableValuesRecord.java 2021-12-15 11:28:41.000000000 +0000 @@ -24,7 +24,7 @@ super( plan, "CVVR", 13 ); Buf buf = plan.getBuf(); Pointer ptr = plan.createContentPointer(); - this.rfuA = checkIntValue( buf.readInt( ptr ), 0 ); + this.rfuA = buf.readInt( ptr ); this.cSize = buf.readOffset( ptr ); dataOffset_ = ptr.get(); } diff -Nru jcdf-1.2.3+dfsg/DataType.java jcdf-1.2.4+dfsg/DataType.java --- jcdf-1.2.3+dfsg/DataType.java 2017-11-16 16:44:47.000000000 +0000 +++ jcdf-1.2.4+dfsg/DataType.java 2021-12-15 11:28:41.000000000 +0000 @@ -296,7 +296,7 @@ buf.readDataBytes( offset, n, (byte[]) array ); } public Object getScalar( Object array, int index ) { - return new Byte( ((byte[]) array)[ index ] ); + return Byte.valueOf( ((byte[]) array)[ index ] ); } } @@ -312,7 +312,7 @@ buf.readDataShorts( offset, n, (short[]) array ); } public Object getScalar( Object array, int index ) { - return new Short( ((short[]) array)[ index ] ); + return Short.valueOf( ((short[]) array)[ index ] ); } } @@ -328,7 +328,7 @@ buf.readDataInts( offset, n, (int[]) array ); } public Object getScalar( Object array, int index ) { - return new Integer( ((int[]) array)[ index ] ); + return Integer.valueOf( ((int[]) array)[ index ] ); } } @@ -344,7 +344,7 @@ buf.readDataLongs( offset, n, (long[]) array ); } public Object getScalar( Object array, int index ) { - return new Long( ((long[]) array)[ index ] ); + return Long.valueOf( ((long[]) array)[ index ] ); } } @@ -366,7 +366,7 @@ } } public Object getScalar( Object array, int index ) { - return new Short( ((short[]) array)[ index ] ); + return Short.valueOf( ((short[]) array)[ index ] ); } } @@ -392,7 +392,7 @@ } } public Object getScalar( Object array, int index ) { - return new Integer( ((int[]) array)[ index ] ); + return Integer.valueOf( ((int[]) array)[ index ] ); } } @@ -421,7 +421,7 @@ } } public Object getScalar( Object array, int index ) { - return new Long( ((long[]) array )[ index ] ); + return Long.valueOf( ((long[]) array )[ index ] ); } } @@ -437,7 +437,7 @@ buf.readDataFloats( offset, n, (float[]) array ); } public Object getScalar( Object array, int index ) { - return new Float( ((float[]) array)[ index ] ); + return Float.valueOf( ((float[]) array)[ index ] ); } } @@ -453,7 +453,7 @@ buf.readDataDoubles( offset, n, (double[]) array ); } public Object getScalar( Object array, int index ) { - return new Double( ((double[]) array)[ index ] ); + return Double.valueOf( ((double[]) array)[ index ] ); } } diff -Nru jcdf-1.2.3+dfsg/debian/changelog jcdf-1.2.4+dfsg/debian/changelog --- jcdf-1.2.3+dfsg/debian/changelog 2020-02-15 20:06:24.000000000 +0000 +++ jcdf-1.2.4+dfsg/debian/changelog 2021-12-21 12:45:06.000000000 +0000 @@ -1,3 +1,17 @@ +jcdf (1.2.4+dfsg-1) unstable; urgency=medium + + [ Debian Janitor ] + * Set upstream metadata fields: Bug-Database, Bug-Submit. + + [ Ole Streicher ] + * New upstream version 1.2.4+dfsg + * Rediff patches + * Push dh compat to 13 + * Push Standards-Version to 4.6.0. No changes + * Remove source and target version (1.5) requirement + + -- Ole Streicher Tue, 21 Dec 2021 13:45:06 +0100 + jcdf (1.2.3+dfsg-2) unstable; urgency=low * Update VCS fields to use salsa.d.o diff -Nru jcdf-1.2.3+dfsg/debian/control jcdf-1.2.4+dfsg/debian/control --- jcdf-1.2.3+dfsg/debian/control 2020-02-15 20:06:24.000000000 +0000 +++ jcdf-1.2.4+dfsg/debian/control 2021-12-21 12:36:52.000000000 +0000 @@ -4,16 +4,16 @@ Section: java Priority: optional Build-Depends: ant, - debhelper-compat (= 12), + debhelper-compat (= 13), dh-exec, javahelper Build-Depends-Indep: default-jdk, default-jdk-doc, libxml2-utils -Standards-Version: 4.5.0 -Homepage: http://www.star.bristol.ac.uk/~mbt/jcdf -Vcs-Git: https://salsa.debian.org/debian-astro-team/jcdf.git +Standards-Version: 4.6.0 Vcs-Browser: https://salsa.debian.org/debian-astro-team/jcdf +Vcs-Git: https://salsa.debian.org/debian-astro-team/jcdf.git +Homepage: http://www.star.bristol.ac.uk/~mbt/jcdf Package: libjcdf-java Architecture: all diff -Nru jcdf-1.2.3+dfsg/debian/patches/Disable-tests.patch jcdf-1.2.4+dfsg/debian/patches/Disable-tests.patch --- jcdf-1.2.3+dfsg/debian/patches/Disable-tests.patch 2020-02-15 20:02:56.000000000 +0000 +++ jcdf-1.2.4+dfsg/debian/patches/Disable-tests.patch 2021-12-21 12:45:01.000000000 +0000 @@ -8,10 +8,10 @@ 1 file changed, 1 deletion(-) diff --git a/makefile b/makefile -index 380497a..0c56538 100644 +index 31f10ed..7d23479 100644 --- a/makefile +++ b/makefile -@@ -119,7 +119,6 @@ $(WWW_DIR)/index.html: index.html +@@ -134,7 +134,6 @@ $(WWW_DIR)/index.html: index.html $(NASALEAPSECFILE): curl 'https://cdf.gsfc.nasa.gov/html/CDFLeapSeconds.txt' >$@ diff -Nru jcdf-1.2.3+dfsg/debian/patches/Remove-source-and-target-version-1.5-requirement.patch jcdf-1.2.4+dfsg/debian/patches/Remove-source-and-target-version-1.5-requirement.patch --- jcdf-1.2.3+dfsg/debian/patches/Remove-source-and-target-version-1.5-requirement.patch 1970-01-01 00:00:00.000000000 +0000 +++ jcdf-1.2.4+dfsg/debian/patches/Remove-source-and-target-version-1.5-requirement.patch 2021-12-21 12:45:01.000000000 +0000 @@ -0,0 +1,21 @@ +From: Ole Streicher +Date: Tue, 21 Dec 2021 13:44:57 +0100 +Subject: Remove source and target version (1.5) requirement + +--- + makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/makefile b/makefile +index 7d23479..1ee3b8f 100644 +--- a/makefile ++++ b/makefile +@@ -211,7 +211,7 @@ clean: + $(JARFILE): $(JSRC) + rm -rf tmp + mkdir -p tmp +- $(JAVAC) -Xlint:unchecked -source 1.5 -target 1.5 -d tmp $(JSRC) \ ++ $(JAVAC) -Xlint:unchecked -d tmp $(JSRC) \ + && echo "$(VERSION)" >tmp/uk/ac/bristol/star/cdf/jcdf.version \ + && $(JAR) cf $@ -C tmp . + rm -rf tmp diff -Nru jcdf-1.2.3+dfsg/debian/patches/series jcdf-1.2.4+dfsg/debian/patches/series --- jcdf-1.2.3+dfsg/debian/patches/series 2020-02-15 20:02:56.000000000 +0000 +++ jcdf-1.2.4+dfsg/debian/patches/series 2021-12-21 12:45:01.000000000 +0000 @@ -1 +1,2 @@ Disable-tests.patch +Remove-source-and-target-version-1.5-requirement.patch diff -Nru jcdf-1.2.3+dfsg/debian/upstream/metadata jcdf-1.2.4+dfsg/debian/upstream/metadata --- jcdf-1.2.3+dfsg/debian/upstream/metadata 1970-01-01 00:00:00.000000000 +0000 +++ jcdf-1.2.4+dfsg/debian/upstream/metadata 2021-12-21 12:35:32.000000000 +0000 @@ -0,0 +1,3 @@ +--- +Bug-Database: https://github.com/mbtaylor/jcdf/issues +Bug-Submit: https://github.com/mbtaylor/jcdf/issues/new diff -Nru jcdf-1.2.3+dfsg/EpochFormatter.java jcdf-1.2.4+dfsg/EpochFormatter.java --- jcdf-1.2.3+dfsg/EpochFormatter.java 2017-11-16 16:44:47.000000000 +0000 +++ jcdf-1.2.4+dfsg/EpochFormatter.java 2021-12-15 11:28:41.000000000 +0000 @@ -58,8 +58,16 @@ * field (YYYYMMDD, or -1 for unused, or 0 for no leap seconds) */ public EpochFormatter( int leapSecondLastUpdated ) { + + /* Add a half day on here to avoid leap-second-sensitive errors in + * working out what epoch the supplied date actually corresponds to. + * Leap second table epochs are not in any case sensitive to + * differences of less than a day (and are most unlikely to be + * issued with a frequency close to daily). If the accumulated + * number of leap seconds approaches half a day, this offset should + * be increased; also, Hi from the distant past! */ long lastDataLeapUnixMillis = - getLastDataLeapUnixMillis( leapSecondLastUpdated ); + getLastDataLeapUnixMillis( leapSecondLastUpdated ) + HALF_DAY; /* If we know about leap seconds later than the last known one * supplied (presumably acquired from a data file), diff -Nru jcdf-1.2.3+dfsg/GlobalDescriptorRecord.java jcdf-1.2.4+dfsg/GlobalDescriptorRecord.java --- jcdf-1.2.3+dfsg/GlobalDescriptorRecord.java 2017-11-16 16:44:47.000000000 +0000 +++ jcdf-1.2.4+dfsg/GlobalDescriptorRecord.java 2021-12-15 11:28:41.000000000 +0000 @@ -44,9 +44,9 @@ this.rNumDims = buf.readInt( ptr ); this.nzVars = buf.readInt( ptr ); this.uirHead = buf.readOffset( ptr ); - this.rfuC = checkIntValue( buf.readInt( ptr ), 0 ); + this.rfuC = buf.readInt( ptr ); this.leapSecondLastUpdated = buf.readInt( ptr ); - this.rfuE = checkIntValue( buf.readInt( ptr ), -1 ); + this.rfuE = buf.readInt( ptr ); this.rDimSizes = readIntArray( buf , ptr, this.rNumDims ); checkEndRecord( ptr ); } diff -Nru jcdf-1.2.3+dfsg/jcdf.xhtml jcdf-1.2.4+dfsg/jcdf.xhtml --- jcdf-1.2.3+dfsg/jcdf.xhtml 2017-11-16 16:44:47.000000000 +0000 +++ jcdf-1.2.4+dfsg/jcdf.xhtml 2021-12-15 11:28:41.000000000 +0000 @@ -157,15 +157,17 @@

Pre-built copies of the jar file and documentation -for the current version (v1.2-3) can be found here: +for the current version (v1.2-4) can be found here:

Previous versions may be available at -ftp://andromeda.star.bris.ac.uk/pub/star/jcdf/. +http://andromeda.star.bris.ac.uk/releases/jcdf/.

History

@@ -246,6 +248,18 @@ by NASA copyright statement). No change to distributed library code. +
Version 1.2-4 (15 Dec 2021)
+
    +
  • Some runtime log warnings about unexpected field values removed. + These generally concerned fields marked "Reserved for future use" + in the CDF Internal Format Description, and reported on deviations + from a particular CDF version (currently 3.4), but which may have + legitimate use in later versions of the CDF format.
  • +
  • Fix an error in interpreting the leapSecondLastUpdated + field from the Global Descriptor Record; this could cause a + RuntimeException with a message about the library leap second table + being out of date during TT2000 date formatting.
  • +

Context

@@ -271,9 +285,9 @@ I can probably fix it.

-

My thanks to Michael Liu and Robert Candey at the NASA CDF office -for encouragement and help with some of the testing and implementation, -and to Jeremy Faden for discussions and help with testing. +

My thanks to several people who have helped with development and +testing, including Christophe Arviset, Robert Candey, Michael Liu, +Jeremy Faden and Bogdan Nicula.

Bugs, questions, feedback, enhancement requests welcome to diff -Nru jcdf-1.2.3+dfsg/makefile jcdf-1.2.4+dfsg/makefile --- jcdf-1.2.3+dfsg/makefile 2017-11-16 16:44:47.000000000 +0000 +++ jcdf-1.2.4+dfsg/makefile 2021-12-15 11:28:41.000000000 +0000 @@ -1,12 +1,13 @@ -VERSION = 1.2-3 +VERSION = 1.2-4 +VERSION_ = 1.2.4 JAVAC = javac JAVA = java JAR = jar JAVADOC = javadoc # If you're building with java8, you can uncomment this to reduce warnings -# JAVADOC_FLAGS = -Xdoclint:all,-missing +JAVADOC_FLAGS = -Xdoclint:all,-missing JARFILE = jcdf.jar @@ -19,6 +20,18 @@ NASACDFJAR = nasa/cdfjava_3.6.0.4.jar NASALEAPSECFILE = nasa/CDFLeapSeconds.txt +ARTIFACT_PKG = jcdf-$(VERSION_) +ARTIFACTS = $(ARTIFACT_PKG).jar \ + $(ARTIFACT_PKG)-sources.jar \ + $(ARTIFACT_PKG)-javadoc.jar + +# See https://central.sonatype.org/publish/publish-manual/ +# Uses gpg and ~/.m2/settings.xml +SIGN_AND_DEPLOY = \ + mvn gpg:sign-and-deploy-file \ + -Durl=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ \ + -DrepositoryId=ossrh -DpomFile=pom.xml + JSRC = \ BankBuf.java \ Buf.java \ @@ -75,12 +88,14 @@ OtherTest.java \ BufTest.java \ -build: jar docs +build: jar docs artifacts jar: $(JARFILE) docs: $(WWW_FILES) +artifacts: artifacts.zip + javadocs: $(JSRC) package-info.java rm -rf javadocs mkdir javadocs @@ -172,14 +187,32 @@ should_have_failed; \ fi +pom.xml: + sed 's/__VERSION__/$(VERSION_)/g' $@ + +uploadmaven: $(ARTIFACTS) pom.xml + $(SIGN_AND_DEPLOY) -Dfile=$(ARTIFACT_PKG).jar + $(SIGN_AND_DEPLOY) -Dfile=$(ARTIFACT_PKG)-sources.jar \ + -Dclassifier=sources + $(SIGN_AND_DEPLOY) -Dfile=$(ARTIFACT_PKG)-javadoc.jar \ + -Dclassifier=javadoc + @echo + @echo "Now close and release from staging repository https://s01.oss.sonatype.org/" + @echo "see https://central.sonatype.org/publish/release/" + clean: rm -rf $(JARFILE) $(TEST_JARFILE) tmp \ - index.html javadocs cdflist.html cdfdump.html + index.html javadocs cdflist.html cdfdump.html \ + $(ARTIFACTS) artifacts.zip \ + $(ARTIFACT_PKG).jar.asc \ + $(ARTIFACT_PKG)-sources.jar.asc \ + $(ARTIFACT_PKG)-javadoc.jar.asc \ + pom.xml pom.xml.asc $(JARFILE): $(JSRC) rm -rf tmp mkdir -p tmp - $(JAVAC) -Xlint:unchecked -d tmp $(JSRC) \ + $(JAVAC) -Xlint:unchecked -source 1.5 -target 1.5 -d tmp $(JSRC) \ && echo "$(VERSION)" >tmp/uk/ac/bristol/star/cdf/jcdf.version \ && $(JAR) cf $@ -C tmp . rm -rf tmp @@ -191,3 +224,15 @@ && $(JAR) cf $@ -C tmp . rm -rf tmp +artifacts.zip: $(ARTIFACTS) + jar cfM $@ $(ARTIFACTS) + +$(ARTIFACT_PKG).jar: $(JARFILE) + cp $(JARFILE) $@ + +$(ARTIFACT_PKG)-sources.jar: $(JSRC) + $(JAR) cf $@ $(JSRC) + +$(ARTIFACT_PKG)-javadoc.jar: javadocs + $(JAR) cf $@ -C javadocs . + diff -Nru jcdf-1.2.3+dfsg/pom.xml.in jcdf-1.2.4+dfsg/pom.xml.in --- jcdf-1.2.3+dfsg/pom.xml.in 1970-01-01 00:00:00.000000000 +0000 +++ jcdf-1.2.4+dfsg/pom.xml.in 2021-12-15 11:28:41.000000000 +0000 @@ -0,0 +1,38 @@ + + + 4.0.0 + + uk.ac.starlink + jcdf + __VERSION__ + jar + + JCDF + Pure Java reader library for NASA CDF format + http://www.star.bristol.ac.uk/~mbt/jcdf/ + + + + GNU LGPLv3 + https://www.gnu.org/licenses/lgpl-3.0.en.html + + + + + + Mark Taylor + m.b.taylor@bristol.ac.uk + University of Bristol + http://www.star.bristol.ac.uk/~mbt/ + + + + scm:git:git://github.com/mbtaylor/jcdf.git + scm:git:ssh://github.com:mbtaylor/jcdf.git + https://github.com/mbtaylor/jcdf + + + diff -Nru jcdf-1.2.3+dfsg/Record.java jcdf-1.2.4+dfsg/Record.java --- jcdf-1.2.3+dfsg/Record.java 2017-11-16 16:44:47.000000000 +0000 +++ jcdf-1.2.4+dfsg/Record.java 2021-12-15 11:28:41.000000000 +0000 @@ -96,24 +96,6 @@ } /** - * Checks that an integer has a known fixed value. - * If not, a warning may be emitted. - * This performs an assertion-like function. - * The actual value is returned as a convenience. - * - * @param actualValue value to test - * @param fixedValue value to compare against - * @return actualValue - */ - protected int checkIntValue( int actualValue, int fixedValue ) { - if ( actualValue != fixedValue ) { - warnFormat( "Unexpected fixed value " + actualValue + " != " - + fixedValue ); - } - return actualValue; - } - - /** * Checks that a pointer is positioned at the end of this record. * If not, a warning may be emitted. * This performs an assertion-like function. diff -Nru jcdf-1.2.3+dfsg/SparsenessParametersRecord.java jcdf-1.2.4+dfsg/SparsenessParametersRecord.java --- jcdf-1.2.3+dfsg/SparsenessParametersRecord.java 2017-11-16 16:44:47.000000000 +0000 +++ jcdf-1.2.4+dfsg/SparsenessParametersRecord.java 2021-12-15 11:28:41.000000000 +0000 @@ -25,7 +25,7 @@ Buf buf = plan.getBuf(); Pointer ptr = plan.createContentPointer(); this.sArraysType = buf.readInt( ptr ); - this.rfuA = checkIntValue( buf.readInt( ptr ), 0 ); + this.rfuA = buf.readInt( ptr ); this.pCount = buf.readInt( ptr ); this.sArraysParms = readIntArray( buf, ptr, this.pCount ); checkEndRecord( ptr ); diff -Nru jcdf-1.2.3+dfsg/VariableDescriptorRecord.java jcdf-1.2.4+dfsg/VariableDescriptorRecord.java --- jcdf-1.2.3+dfsg/VariableDescriptorRecord.java 2017-11-16 16:44:47.000000000 +0000 +++ jcdf-1.2.4+dfsg/VariableDescriptorRecord.java 2021-12-15 11:28:41.000000000 +0000 @@ -57,9 +57,9 @@ this.vxrTail = buf.readOffset( ptr ); this.flags = buf.readInt( ptr ); this.sRecords = buf.readInt( ptr ); - this.rfuB = checkIntValue( buf.readInt( ptr ), 0 ); - this.rfuC = checkIntValue( buf.readInt( ptr ), -1 ); - this.rfuF = checkIntValue( buf.readInt( ptr ), -1 ); + this.rfuB = buf.readInt( ptr ); + this.rfuC = buf.readInt( ptr ); + this.rfuF = buf.readInt( ptr ); this.numElems = buf.readInt( ptr ); this.num = buf.readInt( ptr ); this.cprOrSprOffset = buf.readOffset( ptr );